Firefly Open Source Community

Title: Unable to boot from SATA [Print This Page]

Author: v.redin    Time: 8/23/2022 16:48
Title: Unable to boot from SATA
Last edited by v.redin In 8/23/2022 16:50 Editor

There is such a problem - by no means can we boot from external SATA. Perhaps we have something wrong with the launch line or with the disk layout, but the system hangs tightly when trying to boot and says that it cannot find such a UUID, although it definitely exists and this is the UUID of the disk on which the kernel, DTB and extlinux that we are running.
In u-boot I do:
scsi scan
scsi dev 0
sysboot scsi 0:1 any ${scriptaddr} /boot/extlinux/extlinux.conf
System start to booting and after kernel initialization, the system unable to find rootfs - does not find the UUID of the desired disk. Kernel startup line:
bootargs = "earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 irqchip.gicv3_pseudo_nmi=0 root=UUID=0cf25c02-214a-44b2-96a1-e8afedc1db87 rootfsgrouptype=ext4 rw rootwait coherent_pool=1m systemd.gpt_enauto swap=0 ";
Can you please tell me how to properly partition a SATA disk and what startup line should I use to successfully boot from an external SATA?
Author: v.redin    Time: 9/1/2022 15:22
I booted - if you obtained the same problem - you should previously done every "=m" in linux defconfig to "=y". And use such bootcmd:
bootargs = "earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 irqchip.gicv3_pseudo_nmi=0 root=/dev/sda2 rootfstype=ext4 rw rootwait coherent_pool=1m";
Author: int32    Time: 12/5/2022 19:45
Hello,

Could you please tell how did you obtain SATA device visible in uboot for RK3588J board?
For my config I can not see any devices after this command:
scsi scan

Maybe you have used specific uboot binaries/sources?

Thanks.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1