Introduction

Today you will be compiling a customized version of the NetBSD Kernel.
First you will need to get the NetBSD Source Code, download it to /usr/local/srcfiles/ (create this directory)
the source tarfiles can be found on the FTP server at 10.100.1.150 (username ftp, no password)
the files are in the /pub/NetBSD/NetBSD-release-4-0/tar_files/src/ directory. use the "mget" command to download the entire set. then do the followed to extract them:

Commands:

	sh -c 'for file in *.tar.gz; do tar -xzf $file -C /usr;done'
    

This will loop through each of the tar files, and run the tar -xzf command with each file name in place of $file.
once you have this, change to /usr/src/sys/arch/i386/conf/ and make a copy of the 'GENERIC' kernel, name this copy your student number
strip this kernel and try to make it as small as possible, but still fully functional.
Save your kernel config file to CSUNIX, and attach a copy with this lab when you submit it.

Questions:

What is the path to the NetBSD kernel that is used at boot time?:


How large is the GENERIC NetBSD kernel that is installed by default?:


what is a 'LINT' kernel configuration file?:



What is the command to generate a 'LINT' kernel configuration file?:


What is the command to generate your own .iso from the source code?:


Last updated: 2008-01-21
Updated by: Allan Jude

Written by: Allan Jude (2007)