Am 25.10.26 um 16:28 schrieb b…@www.zefox.net:
> Marco Moock <m…@dorfdsl.de> wrote:
>> Am 25.10.26 um 05:03 schrieb b…@www.zefox.net:
>>> Marco Moock <m…@dorfdsl.de> wrote:
>>>> Am 24.10.26 um 18:58 schrieb b…@www.zefox.net:
>>>>> Marco Moock <m…@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 abfa…@stinkedores.dorfdsl.de