🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Pi 3B enable USB boot

#70
From: bp
Date: Sun, 25 Oct 2026 16:24
109 lines
5873 bytes
Marco Moock <mm@dorfdsl.de> wrote:
> Am 25.10.26 um 16:28 schrieb bp@www.zefox.net:
>> 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.
> 
> I didn't boot RaspiOS from the USB thumb stick, but I should give it a try.

That's a critical first step. If RasPiOS won't boot from a USB device
there's little hope of making FreeBSD work. My understanding is that
later Pi3's do boot from USB "out of the box", certainly my Pi4 and 5
did. The V1.2 Pi3 should be new enough to do the same, but it's worth
checking against the documentation; the Pi3 is getting old. For some
of them it's possible to use the "bootcode.bin-only" method which works
on Pi2B as well, at least some of them.

hth,

bob prohaska
 




>>>>> 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.
> 
> Good to know, this confirms that the USB boot is working.
> 
Technical Details
Message-ID: <11blaft$3op1t$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> <11bl77a$3n6vj$1@dont-email.me> <11bl8vn$b6aa$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 16:24:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 109
Message-ID: <11blaft$3op1t$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> <11bl77a$3n6vj$1@dont-email.me> <11bl8vn$b6aa$1@solani.org>
Injection-Date: Sun, 25 Oct 2026 16:24:31 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3957821"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+LwDBVACl0GFgtn3CasJSgOYsuO6+DzIA="; posting-host="15ad5461bed0c577d83eaa3b72e3aee5"
User-Agent: tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.4-STABLE (arm64))
Cancel-Lock: sha1:QOEcytefRvfLtnDfDW3KMVIXtvQ= sha256:vIr+T3r3LJwLyb0XDRWoESBVYF5eV69K5CMIyAt6tVM=
	sha1:lBYfsPcG/hEnf4D2mqhucxISy1Y= sha256:lrGHpJXzbZtWH+pjARXrydiiNqjWdZvQVqaeLG74NAY=