[SOLVED] pi 3b+ 64Bit U-Boot auto boot selection? ssd-boot?

Discussion about U-Boot and the kernel.

[SOLVED] pi 3b+ 64Bit U-Boot auto boot selection? ssd-boot?

Postby drchef » Mon Oct 05, 2020 9:23 am

Hey Community,

i'm using a raspberry pi 3 b+ with arch for arm linux. The installation is several years old but is still running without problems. The system is running entirely from sd card.

What i want to do is to move my data and files to an external usb ssd.
I have two partitions on the sd card:
- /dev/mmcblk0b1 -> /boot
- /dev/mmcblk0b2 -> /
(i'm not sure about the exact device names)

Here is what i have done so far:
- i created the two partitions on the usb ssd
- i copied all data using rsync
- i added program_usb_boot_mode=1 to /boot/config.xml
- i changed /etc/fstab for /boot mounting ( i don't have an entry for rootfs in /etc/fstab)

What is have _not_ done:
- i didn't change any uboot config like boot.txt (because in the boot.txt there is a comment saying there is a autorecognition for the rootfs)

When i remove my sd card -> the pi doesn't boot (it doesn't nothing except that the red led is on. nothing to see on screen)
When i insert my sd card -> pi boots but from old sd, not from usb ssd

When i insert my sd card + interrupt the uboot boot sequence with the any-key ("Hit any key to stop autoboot") and then i enter "run usb_boot" the pi successfully boots from usb ssd.

So why doesn't uboot boot from usb ssd when there is no sd card inserted? To me it seems like the "data movement" was correct, because the pi is bootable from usb ssd.

Do i have to set a env variable for this? And why does the pi nothing without sd card? Without sd card i cannot enter "run usb_boot" because there is no uboot prompt, there is nothing on screen ;(

Can someone help me? ;)

thanks in advance

(and sry for my bad englisch ;) )

EDIT:
I added a screenshot showing the boot process with inserted sd and succeesfully loaded kernel from usb ssd (you can see my run usb_boot command)
Attachments
Bildschirmfoto 2020-10-05 um 11.29.12.jpg
Bildschirmfoto 2020-10-05 um 11.29.12.jpg (221.06 KiB) Viewed 4354 times
Last edited by drchef on Fri Oct 09, 2020 3:10 pm, edited 1 time in total.
drchef
 
Posts: 2
Joined: Fri Oct 02, 2020 2:05 pm

Re: pi 3b+ 64Bit U-Boot auto boot selection broken? ssd-boot

Postby drchef » Fri Oct 09, 2020 3:09 pm

Hey Community,

i finally managed to boot from usb ssd without sdcard.

I had a corrupt /boot partition (wasn't unmounted properly). I just needed to run fsck.

Then the PI boots fine from this partition.
drchef
 
Posts: 2
Joined: Fri Oct 02, 2020 2:05 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 6 guests