🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.raspberry-pi
Article #68

Re: Pi 3B enable USB boot

#68
From: bp
Date: Sun, 25 Oct 2026 15:28
91 lines
4926 bytes
Marco Moock <mm@dorfdsl.de> wrote:
> Am 25.10.26 um 05:03 schrieb bp@www.zefox.net:
>> Marco Moock <mm@dorfdsl.de> wrote:
>>> Am 24.10.26 um 18:58 schrieb bp@www.zefox.net:
>>>> Marco Moock <mm@dorfdsl.de> wrote:
>>>>> Am 21.10.26 um 20:36 schrieb Marco Moock:
>>>>>>
>>>>>> Although, it still does not boot from the USB thumb device.
>>>>>
>>>>> I now installed RPi OS on the SD card and checked the bit.
>>>>> It is set
>>>>> https://raspberry.tips/en/raspberrypi-tutorials/boot-raspberry-pi-from-usb-ssd-flash-drive-pi-4-5
>>>>> vcgencmd otp_dump | grep 17:
>>>>> gives 3020000a
>>>>>
>>>>> That means the Pi can boot from USB and it also does. The issue here is
>>>>> related to FreeBSD.
>>>>>
>>>>> I see U-Boot, which seems to be the bootloader used by FreeBSD here.
>>>>>
>>>>> I will ask at the FreeBSD mailing lists about the further issue.
>>>>>
>>>>> Thanks for all the suggestions.
>>>>
>>>> It's worth messing around at the u-boot prompt. If you hit spacebar within the
>>>> two-second uboot timeout you'll get a u-boot prompt, where commands can be
>>>> typed to learn what's going on.
>>>>
>>>> One very useful command sequence is printenv, which lets you see u-boot's
>>>> parameters, and editenv, which lets you change them.
>>>>
>>>> One that I've often tinkered with is usb_pgood_delay, which sets the time
>>>> in milliseconds that u-boot waits before turning on a disk before probing.
>>>
>>> The problem is that it says it does not detect the storage media.
>>> Although the media itself was used to boot.
>> 
>> The Pi's bootcode blob starts u-boot but u-boot then fails to notice
>> the hard disk. That's where tweaking things like usb_pgood_delay can
>> help. Hitting spacebar should stop autoboot and give you a
>> u-boot>
>> prompt.
> 
> Is my guess right that the Pi can access the USB thumb stick?

Yes, if I understand what you've done, it boots RasPiOS from a
thumb drive so it should boot FreeBSD from the same media.
 
>>> This seems to be an issue of the FreeBSD image.
>> Yes, but it's likely a configuration problem related
>> to the specifics of your USB hardware.
>>   
>>> I asked here:
>>> https://lists.freebsd.org/archives/freebsd-arm/2026-October/006172.html
>> 
>> Yes, I just found your post. You may get replies on the list
>> and I suspect the first response will be .... .what kind of storage
>> device and bridge?
> 
> I will add some context.
> 
>> Mechanical disks can be surprisingly fussy, solid-state storage usually
>> works better for detection. If you have a USB thumb drive that's worth
>> a try. You can also put a bootable microSD card in a usb adapter and
>> try that. If either of those work, it helps to know. If neither works
>> that's bad news.
>> good luck,
> 
> I only tried USB thumb devices, no USB- hard disks etc.

A thumb drive is a good "acid test" of whether a Pi can boot
from USB, but the process is somewhat different between RasPiOS
and FreeBSD:

On RasPiOS bootcode.bin finds and loads a Linux kernel and starts it.

On FreeBSD bootcode.bin finds and loads u-boot.bin in place of a kernel,
which then probes for bootable devices and starts that system's loader chain.
That loader chain inherits details from u-boot.

U-boot's search for devices isn't involved for RasPiOS at all. Thus my
emphasis on reaching a u-boot prompt and looking for tunable parameters.

I will say that not all FreeBSD images work equally well, sometimes they
don't and it's worth trying a few different examples from microSD first,
then thumb drive and finally an external HDD to feel your way along.

Hope this helps!

bob prohaska
 
Technical Details
Message-ID: <11bl77a$3n6vj$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bb0mi$3kla$1@solani.org> <11bifd6$appn$1@solani.org> <11bio4h$2srdo$1@dont-email.me> <11birbm$b3b2$1@solani.org> <11bjv3e$39mmj$1@dont-email.me> <11bkfjt$c5u9$1@solani.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: bp@www.zefox.net
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi 3B enable USB boot
Date: Sun, 25 Oct 2026 15:28:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 91
Message-ID: <11bl77a$3n6vj$1@dont-email.me>
References: <11bb0mi$3kla$1@solani.org> <11bifd6$appn$1@solani.org> <11bio4h$2srdo$1@dont-email.me> <11birbm$b3b2$1@solani.org> <11bjv3e$39mmj$1@dont-email.me> <11bkfjt$c5u9$1@solani.org>
Injection-Date: Sun, 25 Oct 2026 15:28:44 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3906547"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19TQ4rJFXezjQubtTEqke2VFPX02/Bt8Sc="; posting-host="15ad5461bed0c577d83eaa3b72e3aee5"
User-Agent: tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.4-STABLE (arm64))
Cancel-Lock: sha1:LAT5asFOtT9tessquQBjifiEPZw= sha256:AaZM1PwJR8KtxWk3OtkN9o4pbDsQD7s4WhfR9ViR6fs=
	sha1:5qr7BePmS59+SNCiT0yJrxRjayk= sha256:56dgutQa/jVv3gpWj0QHi8czf1uApaOtjyuVgmHdknw=