[SOLVED] Uboot boots from wrong disk

This forum is for discussion about general software issues.

[SOLVED] Uboot boots from wrong disk

Postby hachel » Mon Jul 03, 2023 9:43 am

Hi,

I have my raspberry 4 set up to boot from USB. This works great, but since I've connected a second USB disk it always boots from that.

The setup is as follows:

/dev/sda
.../dev/sda1 - /home/...

/dev/sdb
... /dev/sdb1 - /boot
... /dev/sdb2 - /

I want it to boot from /dev/sdb1 but it naturally always boots from /dev/sda1. A workaround is booting with just "sdb" connected and then plugging in the data disk after a few seconds, but that needs me to be physically present.

I tried changing the uuid in the boot.txt but I'm not sure where (first line below or second) and how.
[code]
part uuid ${devtype} ${devnum}:2 uuid
setenv bootargs console=tty1 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"[/code]
Any help would be appreciated!
Last edited by hachel on Mon Jul 03, 2023 11:48 am, edited 1 time in total.
hachel
 
Posts: 26
Joined: Fri Mar 07, 2014 3:24 pm

Re: Uboot boots from wrong disk

Postby hachel » Mon Jul 03, 2023 11:47 am

Hi, i solved it. For future reference:

I changed PARTUUID=${uuid} to PARTUUID=745a7... (it's partuuid).
hachel
 
Posts: 26
Joined: Fri Mar 07, 2014 3:24 pm


Return to General

Who is online

Users browsing this forum: No registered users and 29 guests