kernel compile
You can optionally compile a kernel at this point. For my first several attempts with miniBSD, I didn't bother since I wanted to save time. The GENERIC kernel works, though it's not optimal. You can compile a kernel now, do it later, or just plan on using the GENERIC kernel.

If you want to use the GENERIC kernel, type the following:

mkdir -p /usr/minibsd/boot/kernel
cp /boot/kernel/kernel /usr/minibsd/boot/kernel
cd /usr/minibsd/boot/kernel
gzip -9 kernel

If you are using the GENERIC kernel, you can proceed to the next section.

If you want to compile a new kernel, start by typing the following:

cd /usr/src/sys/i386/conf
cp GENERIC MINIBSD



(Note: If you are compiling for a Soekris net4801/net4826 and you want use my kernel config file, you can download it by typing the following:)

cd /usr/src/sys/i386/conf
fetch http://www.ultradesic.com/pub/miniBSD_Files/MINIBSD

(Note: I have not yet tested my MINIBSD kernel config file with FreeBSD 6.x)

(Note: If you are compiling for a Soekris net4521, you can download a kernel config file which was donated to me by Wadimoff by typing the following:)

cd /usr/src/sys/i386/conf
fetch http://www.ultradesic.com/pub/FreeBSD-6.2_Files/NET4521

(Note: I have not personally tested Wadimoff's kernel config file)

My config is probably not optimal, but it cuts out over 3MB of unneeded kernel modules for the Soekris net4801. If you have a more optimal kernel config, please send it to me and I'll use it instead.

Edit the config file as you desire. Type the necessary command to bring up the kernel config file in the editor of your choice:

vi MINIBSD

Then save the changes and exit the editor. Now type the following:

/usr/sbin/config MINIBSD
cd ../compile/MINIBSD
make clean && make cleandepend && make depend && make
gzip -9 kernel
mkdir -p /usr/minibsd/boot/kernel
cp kernel.gz /usr/minibsd/boot/kernel


That's it. Now continue to the next section.