-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X96MaxPlus5 no ethernet using mainline bootloader #857
Comments
When the box is Android. |
Under Android it can boot with SD card, ethernet is working. Haven't tried USB boot yet. |
Restore the box to Android, this will remove the mainline u-boot you wrote boot from sd and copy u-boot
|
Just tried. Yes.
Tried, did not work. |
try meson-sm1-sei610.dtb |
Not working either. |
Did you assign a value to The path of |
Sorry, forget to mention. The |
Use
|
The two commands above are just to showcasing the things I did, sorry if there has been a confusion. |
Thank you for the hard work! Right now I don't have a soldering iron at hand so can't access uart console. |
/usr/lib/u-boot/mybox-bootloader.img This is the file of the Android system, which can be dd restored to the original factory boot |
Some boot logs from serial console. Successful boot from sd card with android bootloaderSM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02L0:00000000 TE: 76174 BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz Board ID = 1 LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz dmc_version 0001 dmc_version 0001 dmc_version 0001 non-sec scramble use zero key 100bdlr_step_size ps== 407 U-Boot 2015.01 (Apr 08 2021 - 21:26:17) DRAM: 2 GiB CONFIG_AVB2: null store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820] store - STORE sub-system Usage: [burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0 store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000] Usage: Command: bcb uboot-command store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440] Usage: Executing script at 01020000reading u-boot.emmc Starting application at 0x01000000 ...U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus Model: AMedia X96 Max+ Device 0: unknown device L0:00000000 TE: 77903 BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz Board ID = 1 LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz dmc_version 0001 dmc_version 0001 dmc_version 0001 non-sec scramble use zero key 100bdlr_step_size ps== 412 U-Boot 2015.01 (Apr 08 2021 - 21:26:17) DRAM: 2 GiB CONFIG_AVB2: null store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820] store - STORE sub-system Usage: [burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0 store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000] Usage: Command: bcb uboot-command store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440] Usage: Executing script at 01020000start amlogic old u-boot Error: "bootfromsd" not definedreading boot_android Error: "aadmac" not definedlibfdt fdt_path_offset() returned FDT_ERR_NOTFOUND Loading init Ramdisk from Legacy Image at 13000000 ...Image Name: uInitrd Usage: amlmmc cmd failed Usage: No dtbo patitions found Flattened Device Tree blob at 01000000Booting using the fdt blob at 0x1000000 Starting kernel ... uboot time: 5929381 us Failed boot from emmc with android bootloaderSM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02L0:00000000 TE: 77544 BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz Board ID = 1 LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz dmc_version 0001 dmc_version 0001 dmc_version 0001 non-sec scramble use zero key 100bdlr_step_size ps== 418 U-Boot 2015.01 (Apr 08 2021 - 21:26:17) DRAM: 2 GiB CONFIG_AVB2: null store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820] store - STORE sub-system Usage: [burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0 store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000] Usage: Command: bcb uboot-command store - STORE sub-system Usage: [burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440] Usage: Executing script at 01020000reading u-boot.emmc Starting application at 0x01000000 ...U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus Model: AMedia X96 Max+ Device 0: unknown device When boot from emmc with Android bootloader as first stage u-boot, second-stage overload u-boot did not seem to be able to access emmc. |
After manually replacing first stage u-boot with mainline u-boot (#857 (comment)), ethernet stops working. No ethernet boot from sd card with mainline bootloaderSM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02L0:00000000 TE: 79913 BL2 Built : 19:17:49, Jul 31 2019. g12a ge9a9000 - zhiguang.ouyang@droid07-sz Board ID = 1 dmc_version 0001 dmc_version 0001 100bdlr_step_size ps== 415 U-Boot 2021.10-rc1-00012-gdad3de6c79 (Aug 10 2021 - 22:54:14 +0800) x96-max-plus Model: AMedia X96 Max+ Device 0: unknown device Executing script at 08000000Start AMLOGIC mainline U-boot Error: "bootfromsd" not definedCouldn't find partition usb 0 Error: "mac" not definedError: "eth_mac" not definedethaddr=91:1e:c3:23:71:33 Loading init Ramdisk from Legacy Image at 13000000 ...Image Name: uInitrd Flattened Device Tree blob at 08008000Booting using the fdt blob at 0x8008000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050] No ethernet boot from emmc with mainline bootloaderSM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02L0:00000000 TE: 78361 BL2 Built : 19:17:49, Jul 31 2019. g12a ge9a9000 - zhiguang.ouyang@droid07-sz Board ID = 1 dmc_version 0001 dmc_version 0001 100bdlr_step_size ps== 404 U-Boot 2021.10-rc1-00012-gdad3de6c79 (Aug 10 2021 - 22:54:14 +0800) x96-max-plus Model: AMedia X96 Max+ Device 0: unknown device Executing script at 08000000Start AMLOGIC mainline U-boot Error: "bootfromsd" not defined354 bytes read in 3 ms (115.2 KiB/s) Error: "mac" not definedError: "eth_mac" not definedethaddr=91:1e:c3:23:71:33 Loading init Ramdisk from Legacy Image at 13000000 ...Image Name: uInitrd Flattened Device Tree blob at 08008000Booting using the fdt blob at 0x8008000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050] |
Explain that this mainline u-boot is not suitable for you, do not use it. Restore the box to Android. Reinstall armbian after restoring android, don't use mainline. armbian-install |
Is there a way to boot from emmc yet still have ethernet? |
You use 5.15.y to test it. The premise is to restore the Android system. |
I tried both 5.15 and 6.0. I don't think the problem is kernel related. And multiple Android firmwares too. |
I'm looking into possible customization of the two u-boots. |
Can 5.15 and 6.0 use the wired network normally after booting from SD? |
Here is where I found the Android firmware. |
partitionsconsole:/ # cat /proc/ntd dev: size erasesize name console:/ # cat proc/partitions 1 0 4096 ram0 130|console:/ # ls -l /dev/block |
When booting with android bootloader, 5.15 has ethernet, and 6.0 has not. On the 6.0 kernel, I'm getting |
Similar to s905l3a, it inherits the configuration problem of meson-g12-common.dtsi of kernel 6.0. It is found that it has been corrected in 6.1。 ðmac { |
Have you downloaded the dedicated DTB for X96MaxPlus5? |
Can X96MaxPlus5 now be written to emmc? Which uboot and dtb should I use? |
Device Information | 设备信息
meson-sm1-x96-air.dtb
.Armbian Version | 系统版本
Describe the bug | 问题描述
It seems that ethernet will only work with stock Android bootloader.
The problem is that stock bootloader won't boot linux from emmc (blank screen after splash image, I haven't investigate serial output).
If I flash mainline bootloader to emmc, it will boot from emmc but ethernet will not work.
Errors be like:
Is there a way to get ethernet working?
Thanks.
The text was updated successfully, but these errors were encountered: