CSC 660: Lab #1: Kernel Build | |||||||
|
|||||||
All labs are done using a VMWare virtual machine. If you haven't set up your VM yet, follow the instructions in VMWare Setup.
To build a new kernel, use the following procedure:
startx
cd src
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2
tar -xjf linux-2.6.10.tar.bz2
cd linux-2.6.10
make tags
make xconfig
Code maturity level options
Y Prompt for development and/or incomplete code/drivers
Y Select only drivers expected to compile cleanly
Processor type and features
Y Pentium 4
N Math Emulation
Power management options
N Power Management support
Bus options
PCCARD
Y ISA support
N EISA support
N MCA support
N NatSemi SCx200 support
N PCI Hotplug support
Device Drivers
N Old CD-ROM drivers
N IEEE 1394 (FireWire) support
Networking support
N Amateur Radio
N IrDA (infrared)
N Bluetooth
N ISDN subsystem
N Telephony Support
N Sound
File systems
N Miscellaneous filesystems (disable all except cramfs)
Network File Systems
N SMB
N CIFS
N NCP
N Coda
N AFS
Kernel hacking
We'll want to turn on many of these later.
make bzImage
make modules
su -
make install make modules_install
vim /boot/grub/menu.lst
Add a new entry of the form before the two pre-existing Debian GNU/Linux entries:
title Test Kernel (2.6.10) root (hd0,0) kernel /boot/vmlinuz-2.6.10 root=/dev/sda ro savedefault boot
reboot