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

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.
 

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