The default image for Raspberry Pi's create this disklayout (on a 4 GB sdcard):
If you want to use your Pi as a "normal" FreeBSD machine, one of the things you will likely do is install ports on it. The layout above will make that difficult.
1. tmpfs is limited in size to 30M, this will make even installing ports-mgmt/pkg from ports fail.
2. there is no place for a swap partition on the sdcard (because autoexpand runs on first boot)
3. failures are silent; you get an error compilation, but no errors in logs (or
Point number 1 is easy to address; you can remove the tmpfs size limit from /etc/fstab as I learned from another thread. Unfortunately, a Raspberry Pi with only 256MB RAM still has a tmpfs filesystem that can run out of space during port compiles.
So, should the default image layout for Pi's be changed?
Details of FreeBSD image used:
memory size of my Pi:
Code:
root@rpi-b:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ufs/rootfs 3.6G 392M 2.9G 12% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/msdosfs/MSDOSBOOT 17M 3.8M 13M 23% /boot/msdos
tmpfs 30M 4.0K 30M 0% /tmp
1. tmpfs is limited in size to 30M, this will make even installing ports-mgmt/pkg from ports fail.
2. there is no place for a swap partition on the sdcard (because autoexpand runs on first boot)
3. failures are silent; you get an error compilation, but no errors in logs (or
dmesg
output), and no indication that a filesystem is (has been) full.Point number 1 is easy to address; you can remove the tmpfs size limit from /etc/fstab as I learned from another thread. Unfortunately, a Raspberry Pi with only 256MB RAM still has a tmpfs filesystem that can run out of space during port compiles.
So, should the default image layout for Pi's be changed?
Details of FreeBSD image used:
Code:
root@rpi-b# uname -a
FreeBSD rpi-b 10.2-STABLE FreeBSD 10.2-STABLE #0 r293802: Wed Jan 13 10:06:04 UTC 2016
root@releng1.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm
Code:
root@rpi-b# dmesg | grep memory
real memory = 234876928 (223 MB)
avail memory = 220667904 (210 MB)