Page 1 of 3

I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:17 pm
by jomaiz
First of all, sorry for my English.

My pi 4 runs well booting from SD but it doesn´t from usb. I write the Raspbian Buster ISO into the HDD, then I plug it to the pi in a usb port, 2.0 or 3.0, same result, and then I turn it on, the screen shows absolutely nothing, no strings, no rainbow, nothing.

The hdd has its own power supply and I use the official power supply for the pi 4. I have tried with other hdds and the same result.

It works with my pi 3 b+, what's going on? Thanks.

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:21 pm
by plugwash
USB boot is not currently supported on pi4. It's on the list for a future firmware update (unlike earlier models the pi4 has updatable boot firmware).

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:27 pm
by jomaiz
A shame, thanks for your quick help

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:40 pm
by thagrol
plugwash wrote:
Tue Jun 25, 2019 8:21 pm
USB boot is not currently supported on pi4. It's on the list for a future firmware update (unlike earlier models the pi4 has updatable boot firmware).
Will the "SD card with just bootcode.bin" trick that works on pre Pi3 modesl work on the Pi 4?

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:41 pm
by HawaiianPi
You could probably do it the old school way with /boot on the SD card and / (rootfs) on the USB drive.

I wonder if the bootcode.bin only method will work? (EDIT: Ninja'd by thagrol)

I'll be testing this and other stuff when my back-ordered Pi4 computers arrive.

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 8:53 pm
by PeterO
HawaiianPi wrote:
Tue Jun 25, 2019 8:41 pm
You could probably do it the old school way with /boot on the SD card and / (rootfs) on the USB drive.

I wonder if the bootcode.bin only method will work? (EDIT: Ninja'd by thagrol)

I'll be testing this and other stuff when my back-ordered Pi4 computers arrive.
"Old school way" is working for me :-)
PeterO

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 9:28 pm
by LTolledo
PeterO wrote:
Tue Jun 25, 2019 8:53 pm
HawaiianPi wrote:
Tue Jun 25, 2019 8:41 pm
You could probably do it the old school way with /boot on the SD card and / (rootfs) on the USB drive.

I wonder if the bootcode.bin only method will work? (EDIT: Ninja'd by thagrol)

I'll be testing this and other stuff when my back-ordered Pi4 computers arrive.
"Old school way" is working for me :-)
PeterO
now that is quite re-assuring!
thanks for the info!

just to confirm, its still the "old" bootcode.bin from before (the old boodcode.bin that I used to "USB boot" my RPi1B+) or it is a "new version" bootcode.bin?

Re: I can´t boot from usb in pi 4

Posted: Tue Jun 25, 2019 10:11 pm
by thagrol
LTolledo wrote:
Tue Jun 25, 2019 9:28 pm
just to confirm, its still the "old" bootcode.bin from before (the old boodcode.bin that I used to "USB boot" my RPi1B+) or it is a "new version" bootcode.bin?
No idea my 4B hasn't arrived yet. I'd start with the one from the latest Raspbian Buster then try the one from stretch if buster doesn't work.

Edit:

Based on this: https://www.raspberrypi.org/forums/view ... 5#p1485530 it might be necessary to have your USB device connected via the USB C port. Which means you won't be able to use that for power.

And probably means network boot is out unless you can connect a LAN951X based adaptor.

Re: I can´t boot from usb in pi 4

Posted: Wed Jun 26, 2019 12:07 pm
by ShiftPlusOne
Pi 4 doesn't use bootcode.bin. The equivalent of bootcode.bin lives in the eeprom. You can't use the old bootcode.bin for this because it's entirely different hardware (USB3 and PCI controllers which didn't exist before).

Re: I can´t boot from usb in pi 4

Posted: Thu Jun 27, 2019 9:14 am
by HawaiianPi
LTolledo wrote:
Tue Jun 25, 2019 9:28 pm
just to confirm, its still the "old" bootcode.bin from before (the old boodcode.bin that I used to "USB boot" my RPi1B+) or it is a "new version" bootcode.bin?
Nope. Old-school way is all of /boot on the SD card and / (root file system) on the USB drive, with cmdline.txt pointing to that. You should also edit /etc/fstab to mount the SD card as /boot, so that kernel and firmware updates are properly applied.

Re: I can´t boot from usb in pi 4

Posted: Thu Jun 27, 2019 9:49 am
by PeterO
HawaiianPi wrote:
Thu Jun 27, 2019 9:14 am
Nope. Old-school way is all of /boot on the SD card and / (root file system) on the USB drive, with cmdline.txt pointing to that. You should also edit /etc/fstab to mount the SD card as /boot, so that kernel and firmware updates are properly applied.
I forgot about changing fstab for /boot. I just checked and my fstab is pointing at the sdcard for both / and /boot, but cmdline.txt is overriding the / mount.
I'm surprised the boot partition on the sdcard is so big. It seems to have gone up from ~40M to ~250M ! At some point I will have to repartition the USB HDD as I susspect it may run out of space once we have USB booting available.
PeterO

Re: I can´t boot from usb in pi 4

Posted: Thu Jun 27, 2019 8:17 pm
by angriest
Thanks - had horrible thoughts my brand new Pi 4 was fried and the USB ports were broken.

For reference, the instructions on the 'old old' method of booting from USB are https://www.raspberrypi.org/forums/view ... hp?t=44177, although note that doing it via sdx is not recommend - use partuuid instead. I'd got used to the convenience of being able to boot from USB without a care in the world, but at least I'll get a touch of nostalgia doing it this way again...

Re: I can´t boot from usb in pi 4

Posted: Thu Jun 27, 2019 8:33 pm
by Pitel
Just got hit by that. Brouight brand new Pi 4 and USB 3.0 flash drive home, prepared, USB, but not booting. Guess I'll wait for the new firmware then.

Does that also means, I'll still need some SD to do the boot firmware update?

Re: I can´t boot from usb in pi 4

Posted: Fri Jun 28, 2019 6:38 am
by kyliael
Received my Pi4 yesterday and tried several times to boot from USB like I do with my Pi 3B+ ... before I decided to come here. By the way I now understand that I have to stop trying :cry:

Thank you guys for opening this thread but I'm wondering why the foundation released a product with a such regression. Looks like releasing an early access app... :evil:

Re: I can´t boot from usb in pi 4

Posted: Fri Jun 28, 2019 6:53 am
by kyliael
plugwash wrote:
Tue Jun 25, 2019 8:21 pm
USB boot is not currently supported on pi4. It's on the list for a future firmware update (unlike earlier models the pi4 has updatable boot firmware).
Hi,
is there somewhere we can see and follow this kind of "future updates" ? I'm really disappointed with this regression :cry:

Thank you

Re: I can´t boot from usb in pi 4

Posted: Sat Jun 29, 2019 5:38 pm
by smadger
kyliael wrote:
Fri Jun 28, 2019 6:38 am
Received my Pi4 yesterday and tried several times to boot from USB like I do with my Pi 3B+ ... before I decided to come here. By the way I now understand that I have to stop trying :cry:

Thank you guys for opening this thread but I'm wondering why the foundation released a product with a such regression. Looks like releasing an early access app... :evil:
You guys need to calm down a little. I get it's little frustrating, but the feature is planned for development, it's not been taken away completely.

Given that there are (clunky) workarounds, and the hardware has a new firmware update feature - which is in itself a new feature I'm looking forward to seeing mature and perhaps the community get involved with - and, to be quite frank, this is a RPi not Apple, you have to give them a little leeway considering what they have just released. The 4 is an absolute beast, and it's £35!!

Please don't take this comment in an insulting manner, it's honestly not intended that way, but I think you guys need to need to chill, it's too hot to get angry, and by the sounds of it you still have other RPi's to play with in the meantime :)

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 8:50 am
by kyliael
Hi there,

I understand this has not been fixed yet, but is there a way to get an official update / progress on this topic ? Maybe on github, or somewehere else already ?

Thanks

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 9:25 am
by rpdom
Please be patient. An announcement will be made in the official Blog when it is ready.

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 10:25 am
by jamesh
kyliael wrote:
Mon Jul 08, 2019 8:50 am
Hi there,

I understand this has not been fixed yet, but is there a way to get an official update / progress on this topic ? Maybe on github, or somewehere else already ?

Thanks
Official report. No progress, we are busy on other stuff. I know some will be disappointed, this is a minority use case, but is not far from the top of the list.

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 11:05 am
by jdb
HawaiianPi wrote:
Thu Jun 27, 2019 9:14 am

Nope. Old-school way is all of /boot on the SD card and / (root file system) on the USB drive, with cmdline.txt pointing to that. You should also edit /etc/fstab to mount the SD card as /boot, so that kernel and firmware updates are properly applied.
^ Use this method to run the root filesystem from a USB attached storage device on Pi 4 until a native USB boot mode is implemented.

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 11:26 am
by Charles_M
I found this easy to follow guide on how to boot from SD then pass control to SSD / HD

https://www.tomshardware.co.uk/boot-ras ... 61081.html

It worked for me for a RasPi 4 although I was just playing around really; I'll use SD only for now.

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 11:52 am
by PeterO
One thing to note is that the boot partition on the latest raspbian images is now 250M rather that 40M in the older versions.

You might want to make sure there is space on any hard disk you use for a root file system to add a boot partition later when usb boot becomes available.

PeterO

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 12:19 pm
by DougieLawson
And that's a right proper PITA.

gparted can't resize FAT32 partitions smaller than 256MB. So you have to trash it or convert to ext4 before you can tinker with the disk layout.

That's why I'm leaving my two model 3Bs that boot from WD hard drives till last for the Buster upgrades.

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 12:19 pm
by k-pi
jamesh wrote:
Mon Jul 08, 2019 10:25 am
Official report. No progress, we are busy on other stuff. I know some will be disappointed, this is a minority use case, but is not far from the top of the list.
"A minor use case" - & yet this product is being advertised as a desktop system........ :lol:

Just wished you lot had told us that the software hadn't been written, when you launched the board, would have saved some annoyance. 8-)

Re: I can´t boot from usb in pi 4

Posted: Mon Jul 08, 2019 12:34 pm
by thagrol
k-pi wrote:
Mon Jul 08, 2019 12:19 pm
jamesh wrote:
Mon Jul 08, 2019 10:25 am
Official report. No progress, we are busy on other stuff. I know some will be disappointed, this is a minority use case, but is not far from the top of the list.
"A minor use case" - & yet this product is being advertised as a desktop system........ :lol:

Just wished you lot had told us that the software hadn't been written, when you launched the board, would have saved some annoyance. 8-)
Booting from USB is not a requirement of a desktop system. Neither is rotating rust or SSD storage. (lol or otherwise)

For my money I'd much rather see the lack of boot via GPIO 3 toggle fixed, though again that might be a minor use case so I'm not holding my breath.