From time to time I hear people complain at how hard it is to build an image from the FreeBSD sources. This week, I’ll explain how I built a bootable i386 image on a USB flash device and also make some observations about the results.
Recently, I needed to create a bootable i386 image. The easiest way was to build one on my amd64. Here’s what I did. I setup my environment for the build (steps 1-3), built FreeBSD/i386 userland and kernel (steps 4 and 5), prepared the flash (steps 6-11), installed userland and the kernel (steps 12 and 13), added the extra files needed for boot (steps 14-18).
The detailed commands are here