Article View: comp.sys.raspberry-pi
Article #69Re: Pi 3B enable USB boot
From: Marco Moock
Date: Sun, 25 Oct 2026 15:58
Date: Sun, 25 Oct 2026 15:58
97 lines
5259 bytes
5259 bytes
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. >>>> 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. -- Gruß Marco Spam bitte an abfalleimer2001@stinkedores.dorfdsl.de
Technical Details
Message-ID:
<11bl8vn$b6aa$1@solani.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Marco Moock <mm@dorfdsl.de> Newsgroups: comp.sys.raspberry-pi Subject: Re: Pi 3B enable USB boot Date: Sun, 25 Oct 2026 16:58:47 +0100 Organization: keine vorhanden, alles chaotisch Message-ID: <11bl8vn$b6aa$1@solani.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 25 Oct 2026 15:58:47 -0000 (UTC) Injection-Info: solani.org; logging-data="366922"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2kNqXafRfB6KCbJJ9OOhEpuJ2xA= Content-Language: en-US, de-DE X-User-ID: eJwNycEBwCAIA8CVUEOUcQLo/iO09z1fHKwNOuHP3zWiFd03J/6iTVu1KUrzRIVBkp+RbqjEBxr+EOo= In-Reply-To: <11bl77a$3n6vj$1@dont-email.me>