Installing FreeBSD on Raspberry Pi using Linux

Identify your Raspberry Pi model

Download the image

Decompress the image

$ unxz path-to-the-downloaded-freebsd.img.xz --verbose
$ unxz path-to-the-downloaded-freebsd.img.xz --verbose --keep

Identify the device name for the SD card

$ dmesg | tail
The device name is /dev/mmcblk0
$ mount | grep '^/dev' 
$ findmnt -n -o SOURCE --target /path/to/files/on/sdcard
$ findmnt -n -o SOURCE --target /media/user/boot
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 119,2G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 488M 0 part /boot
└─sda3 8:3 0 118,3G 0 part
├─lubuntu--vg-root 252:0 0 112,4G 0 lvm /
└─lubuntu--vg-swap_1 252:1 0 5,9G 0 lvm [SWAP]
sdb 8:16 1 3,7G 0 disk
├─sdb1 8:17 1 56M 0 part /media/user/boot
└─sdb2 8:18 1 3G 0 part /media/user/3d81d9e2-7d1b-4015-8c2c-29ec0875f762

Write the image to the SD card

# dd if=path-to-the-downloaded-freebsd.img of=/dev/YOUR-SDCARD bs=1M status=progress
# dd if=path-to-the-downloaded-freebsd.img of=/dev/sdb bs=1M status=progress
# dd if=/dev/sdb of=path-to-save-file.img bs=1M status=progress
$ umount /dev/YOUR-SDCARD

Boot FreeBSD

$ passwd

What’s next?

$ kbdmap

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store