Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Unable to boot from SATA

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152

【Linux】 Unable to boot from SATA

Posted at 8/23/2022 16:48:22      View:1632 | Replies:2        Print      Only Author   [Copy Link] 1#
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?
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 9/1/2022 15:22:38        Only Author  2#
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";
Reply

Use props Report

51

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
51
Posted at 12/5/2022 19:45:29        Only Author  3#
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.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list