Jeff Sipek 2.6 kernel handout
From LILUG
Compiling From Source:
1. module-init-tools
wget http://kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-0.9.14-pre2.tar.gz tar -xzf module-init-tools-0.9.14-pre2.tar.gz cd module-init-tools-0.9.14-pre2/ ./configure --prefix=/ make moveold(if installing for the first time) make make install ./generate-modprobe.conf /etc/modprobe.conf
if using devfs:
cp modprobe.devfs /etc
2. kernel
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.0-test4.tar.gz tar -xzf linux-2.6.0-test4.tar.gz cd linux-2.6.0-test4/
choose one of the following to create a .config from scratch or to modify one:
make xconfig(qt interface) make gconfig(gtk2 interface) make menuconfig(ncurses interface) make config(plain text "interface")
or, run this to upgrade your .config:
make oldconfig
NOTE: if you decide to use oldconfig on a 2.4 .config file, I recomend you go through xconfig/gconfig/menuconfig to make sure you have everything that's needed to make it run NOTE: make sure you enable CONFIG_VT, without it you will not be able to use your system
make(`make -jX` for parallel builds; X = number of instances) make modules_install cp System.map /boot/System.map-2.6.0-test4 cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.0-test4
update LILO/GRUB
Debian (Woody & Sid):
1. module-init-tools
apt-get install module-init-tools
2. kernel same as the compile from source up to (and excluding `make`)
make-kpkg
(note: kernel-package is required)
dpkg -i ../kernel-package.deb
NOTE: I did not test Sarge, however since both Woody and Sid work, it is safe to assume that there should be no problem on Sarge
Red Hat 9.0 (untested):
1. module-init-tools
wget http://kernel.org/pub/linux/kernel/people/rusty/modules/modutils-2.4.21-21.src.rpm export LD_ASSUME_KERNEL=2.2.5 rpmbuild --rebuild modutils-2.4.21-21.src.rpm rpm -U /usr/src/redhat/RPMS/i386/modutils-2.4.21-21.i386.rpm
2. kernel
same as the compile from source
