Jump to content

Recommended Posts

Posted (edited)

Activity:

1) 159-add-x96-q-lpddr3-v1.3-defconfig.patch has been tested both ways: with original parameters and with suggested (above) parameters;

2) The box boots but I am unable to set  IP addresses, even in wlan0, via Armbian-config (errors reported);

3) So far the best result is from  ~/build/patch/u-boot/u-boot-sunxi/board_x96q/arm64-sun50i-h313-add-x96q-lpddr3-defconfig.patch with the appropriate +CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y

    and secure-boot.patch. Armbian-config works as designed and IP addresses can be set.

 

Ideas

describes a similar problem (eth0) 

Suggested action plan: https://github.com/armbian/build/pull/6617/files       [Fix issue #6528 opi-zero2w, ethernet PHY not powered #6617]

 

Problem: I don't know how to implement it and/or if that proposed corrections will tamper with ~/build/patch/u-boot/u-boot-sunxi/board_x96q/sunsi-add-h616-internal-eth-phy-support.patch

 

As usual, suggestions will be welcome 🙂

Edited by Sergioclr
link
Posted (edited)

@Sergioclr 

You don't need patches to edit the kernel config:
config/kernel/linux-sunxi64-legacy.config

 

sicxnull already has this patch, but with a different name:
drv-pwm-sun50i-h616-enhance-pwm.patch
drivers-pwm-Add-pwm-sunxi-enhance-driver-for-h616.patch

 

To add Zero2W Ethernet settings to your DTS, you can create your own patch using git commands:

 

Run ./compile.sh

 

Press Ctrl+C in the middle of the kernel compilation.

 

Navigate to the directory:
cd cache/sources/linux-kernel-worktree/6.6*/

 

Use the following commands:
sudo git status
sudo git add .
sudo git commit -m "dummypatch"


sudo pico arch/arm64/boot/dts/allwinner/sun50i-h313-x96q-lpddr3.dts
sudo git add .
sudo git commit -m "Fix Ethernet"
sudo git format-patch -1   

 

1 for the first commit (0001-Fix-Ethernet.patch)...  2 for the first and second commit (0002-dummypatch.patch) )

 

The first "add" and "commit" cleans the kernel of previous patches, leaving you with a clean, patched kernel.

 

The format-patch command will create a patch in the root directory of the kernel. Copy it to your patch directory.

 

For original Armbian kernel patches, you must add them to series.armbian and series.conf.

Edited by Nick A
Posted

Help needed (previous update):

 

What should be edited is this file?  sudo pico arch/arm64/boot/dts/allwinner/sun50i-h313-x96q-lpddr3.dts

 

Thanks in advance.

Posted (edited)

@Sergioclr Can you post your boot logs? both android and armbian.

Try this. 
phy-supply = <&reg_dldo1>;  /* Try reg_dldo1 if aldo1 (1.8V) fails */

Edited by Nick A
Posted

Good evening.

 

Armbian for H313 X96-Q LPDDR3 TV-Box

sicXnull/armbian-build)

git clone --depth=1 --branch=main  https://github.com/armbian/build 

"+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" in ~/build/patch/u-boot/u-boot-sunxi/board_x96q/arm64-sun1-h313-addr-x96q-lpddr3-defconfig.patch , adding secure-boot.patch and

    ~/build/patch/u-boot/u-boot-sunxi/board_x96q/sunsi-add-h616-internal-eth-phy-support.patch left untouched  

 

Android-boot.txt  (normal boot sequence / eth & wlan=OK)

Armbian_image_reboot_dmesg.txt

Image reboot (sudo shutdown -r now) + dmesg log (wlan=OK, eth=not OK)

 

Thanks in advance.

Android-boot.txt Armbian_image_reboot_dmesg.txt

Posted

@Sergioclr looks like you are building armbian main branch. You are running the 6.18 kernel but old u-boot 2024.01. I don’t see the AC200/300 patch. 
 

Do you still have my build laying around. Can you show me the boot logs.
 

Posted

No, unfortunately, I don't have.

I will run your build and, possibly, have all required data by tomorrow morning.

 

Thanks for your prompt answer,

Posted

Update:

sicXnull/armbian-build (H96q) +  "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" and  "secure-boot.patch" solved the problem. 

Now, the ethernet interface is fully functional.

 

Thank you Nick & sicXnull.

Posted

Hi, I am assuming that you have a standard Q1 TV Box (Allwinner H313 based).

 

1) Download Armbian Imager here;

2) Install the version for your operating system;

3) After installing, choose "Manufacturer=ALLWINNER", Board="X96Q TV BOX", Operating system="minimal Trixie current" and Storage ( I suggest a good quality Class 10 SD card);

4) After writing the image, insert the SD card into the available SD slot;

5) Insert a wooden toothpick or a Q-tip  into AV/Reset input;

6) Click (kindly) and hold the toothpick and connect the TV Box power supply to the power entry;

7) Release the toothpick after 8-10 seconds.  if the HDMI connector is plugged you should see the Armbian initial boot process

 

Note: some TV Boxes don't need  items 5, 6 and 7.

 

I hope it helps.

 

Posted

no, it have secureboot, emcp 1,5gb instead 1 or 2gb ram, i tried to boot x96q lpddr3 + secure patch + orangepi zero3 1,5gb patch  but at uboot it allway say 2gb ram 0g  effective. uboot spl load 1,5gb ram correctly

Posted

Hi, I can suggest a general procedure but it is not guaranteed to work for every TV-Box.

 

1) Be sure of what TV-box you have (Allwinner, Ambian or Rockship);

2) download git clone --depth=1 --branch=main  https://github.com/armbian/build 

3) open downloaded git and search for /build/patch/u-boot

4) select the directory that corresponds to your TV-box. For example: /build/patch/u-boot/u-boot-sunxi

5) edit arm64-sun50i-H313-add-lpddr3-deconfig.patch,  if you have a secure image: add  +CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y and increment the counter to 32 (@@ -0,0 +1,32 @@) and  "secure-boot.patch" to

    /build/patch/u-boot/u-boot-sunxi. See procedure here  https://forum.armbian.com/profile/210518-nick-a/

6) ./compile.sh  observing Nick's instructions.

Posted (edited)

Nick's instructions:

You need to add this line to the bottom. "+CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y" and change "@@ -0,0 +1,31 @@" to @@ -0,0 +1,32 @@. 

 

./compile.sh

choose "Do not change kernel configuration"

choose "Show CSC/WIP/EOS/TVB"

choose "I understand and agree"

choose "X98H"

choose "edge"

rest is up to you.

 

Your image should be in output/images directory.

Edited by Sergioclr
clarification
Posted

Hi, my knowledge about Armbian is limited. For such a specific configuration/compilation I suggest that you open a new topic

under "Allwinner sunxi".

 

Best regards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines