Closed shawwwn closed 1 year ago
When the box is Android. Can it boot normally when using USB? Wired network working? meson-sm1-x96-air.dtb
Can it boot normally when using USB? Wired network working?
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
cd /boot
cp -f u-boot-x96maxplus.bin u-boot.ext
cp -f u-boot-x96maxplus.bin u-boot.emmc
chmod +x u-boot.ext u-boot.emmc
sync && reboot
armbian-install
installation option 517
Can it boot normally when using USB?
Just tried. Yes.
armbian-install installation option 517
Tried, did not work.
try meson-sm1-sei610.dtb
try meson-sm1-sei610.dtb
Not working either.
Did you assign a value to ${DEV_EMMC}
when you executed the dd
command? If you directly enter the 2-line dd command, ${DEV_EMMC}
is invalid.
The path of if=x96maxplus-u-boot.bin.sd.bin
is also wrong
Did you assign a value to ...
Sorry, forget to mention. The $DEV_EMMC
is just /dev/mmcblk1
or /dev/mmcblk0
, depending on the boot medium.
Use lsblk
to view the name of emmc
dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=1 count=444
dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=512 skip=1 seek=1
The path of if=x96maxplus-u-boot.bin.sd.bin is also wrong
The two commands above are just to showcasing the things I did, sorry if there has been a confusion. I manually flash the mainline bootloader to the head of the emmc memory.
Use
lsblk
to view the name of emmcdd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=1 count=444 dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=512 skip=1 seek=1
Still can't detect ethernet. Below is dmesg output
Possibly related #812 #503 #380
Thank you for the hard work!
Right now I don't have a soldering iron at hand so can't access uart console. Will investigate tomorrow.
/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.
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 (https://github.com/ophub/amlogic-s9xxx-armbian/issues/857#issuecomment-1364532304), ethernet stops working.
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 choose 517
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.
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. Is this https://github.com/unifreq/amlogic-boot-fip where the mainline u-boot coming from? And https://github.com/unifreq/u-boot the overload uboot as well?
Can 5.15 and 6.0 use the wired network normally after booting from SD?
Here is where I found the Android firmware. http://legion.name/upload/?dir=Smart-TV-Box/x96-max-Plus-5/
Can 5.15 and 6.0 use the wired network normally after booting from SD?
When booting with android bootloader, 5.15 has ethernet, and 6.0 has not. Earlier I also booted an official armbian 6.1 kernel that has ethernet. Strange.
On the 6.0 kernel, I'm getting meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
regardless of android/mainline bootloader I use.
When booting with android bootloader, 5.15 has ethernet, and 6.0 has not.
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 { /delete-property/ resets; /delete-property/ reset-names; };
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.