How to RECOMPILE your KERNEL under NetBSD There are two ways you can do this. The first would be to use union mounts and access the NetBSD source tree stored in the SIPB AFS cell. Union mounts let you transparently access a directory with modifications going somewhere else. To use union mounts, log in as root and do: mkdir /usr/src attach -n netbsd mount -t union /usr/src /mit/netbsd/release/athena-7.7.2/netbsd-1.2/src cd /usr/src/sys/arch/i386/conf/ At this point, you'll see several kernel configuration files (the ones in all CAPS). The two most useful ones will be ATHENAOTHER and ATHENAADP. ATHENAOTHER is all currently supported hardware except for Adaptec SCSI adapters. ATHENAADP is all currently supported hardware except non-Adaptec SCSI adapters. Choose the kernel confif file that's correct, and cp CONFIGFILE MYKERNELNAME where CONFIGFILE and MYKERNELNAME are replaced with the appropriate file names. Then, edit MYKERNELNAME and make the changes you need to make. When you have a kernel config file you'd like to compile for, type config MYKERNELNAME cd ../compile/MYKERNELNAME make depend make To install your new kernel after it it compiled, usethe following commands: mv /netbsd /netbsd.old cp netbsd /netbsd and then reboot your machine to test the new kernel. If you want to recompile, you'll have to redo the union mount each time, as it is broken when the machine is rebooted. You can only do a union mount to local disk; you can't do a union mount into your Athena home directory, for instance. The second way you could do this process would be to copy the source tree locally. At this time, it takes about 30 MB of disk space for the sources, although this can be reduced by removing all of the platform specific directories under arch/except for i386. To copy the source locally, log in as root and: attach -n netbsd cp -r /mit/netbsd/release/athena-7.7.2/netbsd-1.2/src /usr This will copy all of the sources locally. Then, to build a kernel, use a similar process to that discussed above: cd /usr/src/sys/arch/i386/conf/ Edit the appropriate config file. Then configure MYKERNELNAME cd ../compile/MYKERNELNAME make depend make When the build is finished, install the new kernel by mv /netbsd /netbsd.old cp netbsd /netbsd and rebooting.