Building Wildboar kernel from Source patches

This documentation describes how to apply the patch and install the kernel. You probably don't need to do this unless you need to reconfigure the kernel.

Also note, running 'installfloppy' with the Utility disk is the most easiest way to setup the machine to run Wildboar. Please run ' installfloppy' first, and follow direction in this document to build kernel.

To configure the Wildboar kernel by yourself, you need following items:

* BSD/OS Kernel Source
The current Wildboar diff is made against BSD/OS 2.1 plus several patches. More precisely, Wildboar diff is made against the kernel tree:

2.1 Release patched with K201-001 through K210-023

Warning about K210-015 patch: BSDI release a version of K210-015 and later replaced it with same patch name: K210-015. Thus if you have problem applying patch, try to get latest K210-015 and try again.

* Wildboar source kit

.


Building Kernel

Install BSD/OS 2.1 BOTH binary and source packages

We assume kernel sources are installed in /usr/src/sys (/sys).

Unpack the Wildboar source kit

You'll found 'sys.diff' and 'utils.tar.gz' files in your source 'kit.tar.gz' archive.

Apply kernel patches

apply the patch 'sys.diff' comes from this kit by:

# cd /usr/src/sys # patch -p1 < SOMEWHERE/sys.diff

Create and install kernel.

The /usr/src/sys/i386/conf/WILDBOAR configuration file is provided for configuration baseline.

DON'T BOOT TILL YOU FINISH THE NEXT STEP

create and install boot

To activate APM, you should install /boot, in addition to /bsd. Type:

# cd /usr/src/sys/i386/stand # make boot # install -s -c boot /boot

Done

Now you can your source tree to build kernel!


Install utilities and make devices

If you want to have utilities sources handy, follow this step. If you don't need utilities source, it is not necessary. Binary is installed by running installfloppy on BOOT1 disk.

Extract wildboar utilities

# cd /usr/src # gzcat SOMEWHERE/utils.tar.gz | tar xpf -

Make /dev/apm, /dev/cs, /dev/fvc0 and /dev/tty0[23]

# cd /usr/src/contrib/wildboar # make devices

Make and install utilities and libraries

# cd /usr/src/contrib/wildboar # make all # make install

Make /sbin/apmstart run at boot.

Add following at end of the /etc/rc.local

if [ -f /sbin/apmstart ]; then /sbin/apmstart; fi

Currently, Wildboar does not configure cards on boot. (design choice) If you would like to configure all of the inserted cards at bootstrap time, add the following lines just after apmstart:

if [ -f /sbin/csconfig ]; then csconfig -a up fi

Reboot. Now system should work fine.