compile & install new kernel
basic notes for myself on compiling a new kernel
cd /usr/src/linux
make mrproper -- return src to original state
make xconfig -- graphical, needs X windows
or
make menuconfig -- needs ncurses
or
make config -- very simple, a pain if you want to change something because you have to got through the whole thing all over again (which is where xconfig is nice)
<Processor type and features>...select desired features (ie, the best cpu match)
..<Main Menu>...<Save and Exit>
<OK>
change new kernel label:
ie, vi the Makefile --> change the EXTRAVERSION setting to something other than the generic (-something). save changes: x!
compile kernel:
make dep -- indentify dependencies
make clean -- removes old files & ambiguities
make bzImage -- make compressed kernel image file (location will be something like /usr/src/linux/arch/i386/boot/bzImage/vmlinuz-2.6.18-something)
make modules -- compile modular components
install kernel:
move kernel image to /boot (cp -p /usr/src/linux/arch/i386/bzimage /boot/vmlinuz-2.6.18-something)
install kernel modules:
make modules_install -- installs modular components of kernel in correct directory.
cp System.map /boot/System.map-linux-2.6.18-something
alternate: make dep clean bzImage modules modules_install
|