woensdag 23 december 2015

Booting a Freebsd image on a usb stick with the Raspberry Pi

It took me some time to figure out how to do this, but it's actually very simple.

Create an USB stick (or disk) with the Freebsd image you want to boot and connect it to a USB port on your Pi.

Create a small standard Freebsd image on a small SD-card and place it in the Raspberry SD slot.

Boot it and create as superuser the file:
/boot/loader.conf
with the following content:
currdev=disk0s2a
vfs.root.mountfrom="ufs:/dev/da0s2a"
Now reboot and your Pi will boot the image on the USB stick.

Note that when you create a standard image on the stick, that it will have two partitions. The first FAT partition with the firmware and config.txt is not used in this setup. The firmware and config is always loaded from the SD card. You can remove this unused partition (and replace s2a by s1a in loader.conf) or replace it by a swap partition or just leave it as it is.

Geen opmerkingen:

Een reactie plaatsen