It's not clear whether this applies to FreeBSD:-Raspberry Pi Documentation - Raspberry Pi hardware
The official documentation for Raspberry Pi computers and microcontrollerswww.raspberrypi.org
To enable the USB boot bit, the Raspberry Pi 3 needs to be booted from an SD card with a config option to enable USB boot mode.
The following boot sequence applies to the BCM2837-based models of Raspberry Pi only. On all other models, the Pi will try SD card boot, followed by USB device mode boot.
dmesg | grep 'bcm283'
I get:-bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> mem 0x7e980000-0x7e98ffff,0x7e006000-0x7e006fff irq 46,47 on simplebus0
usbus0 on bcm283x_dwcotg0
bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF
$ vcgencmd otp_dump | grep 17:
17:3020000a
echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
.I learned how to boot from USB using Raspbian....
First check if usb-boot-mode has been set. If it has you will see:-
Code:$ vcgencmd otp_dump | grep 17: 17:3020000a
If you get a different result and then you will need to run:-echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
.
Once you have it set you just copy your SD card to USB stick using usb-boot .
How do I do the same on FreeBSD?
$ vcgencmd otp_dump | grep 17:
17: 3020000a
vcgencmd
Mounting from ufs:/dev/ufs/rootfs failed with error 19
Loader variables:
vfs.root.mountfrom = ufs:/dev/ufs/rootfs
vfs.root.mountfrom.options = rw
mountroof>
ufs:/dev/da0s2a
where is the system in the USB it starts without any problem and works correctly./dev/ufs/rootfs
/dev/da0s2a
Mounting from ufs:/dev/da0s2a failed with error 19
Loader variables:
vfs.root.mountfrom = ufs:/dev/da0s2a
vfs.root.mountfrom.options = rw
mountroof>
ufs:/dev/da0s2a
the system starts correctly and again, without any problem.vfs.root.mountfrom="ufs:/dev/da0s2a"
sudo dd if=FreeBSD-12.1-RC2-arm64-aarch64-RPI3.img of=/dev/disk5 bs=2m
Net: No ethernet found.
starting USB...
Bus usb@7e980000: scanning bus usb@7e980000 for devices...
USB device not accepting new address (error=0)
4 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
MMC Device 0 not found
no mmc device at slot 0
Card did not respond to voltage select!
Device 0: unknown device
Waiting for Ethernet connection... unable to connect.
Missing environment variable: pxeuuid
Missing environment variable: bootfile
…
Topics about unsupported FreeBSD versionsI want to use 13-CURRENT
What's wrong with booting it in regular way ― off an SD card and still use a USB hard disk for storage, if the purpose IS storage?booting from hard disk via usb would help me a lot with storage size
Nothing wrong. Just saves the sd card. And helps with minimalismWhat's wrong with booting it in regular way ― off an SD card and still use a USB hard disk for storage, if the purpose IS storage?
Sir, I did try 13-CURRENT of around 28th May and they work fine in my case. I was using the most recent snapshot. Although I must accept I was unable to mount my FLASH USB. Anyways, I read the above post, I'll switch to 12.1-STABLE. Please let me know if anyone has managed to run FBSD through USB.Topics about unsupported FreeBSD versions
Stick to a -RELEASE version. Or, if you want to be more adventurous, use a -STABLE version.