Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
User Journal

Journal wskellenger's Journal: Compiling a Linux kernel (Gentoo)

Become root
su

Switch to the source dir
cd /usr/src/linux

Use the kernel config tool
make menuconfig

Make dependencies (2.4)
make dep

Make the kernel (2.4)
make bzImage modules modules_install

Make the kernel/modules (2.6)
make && make modules_install

Mount the boot partition if you need to
mount /boot

Copy the kernel and other stuff there
cp arch/i386/boot/bzImage /boot/kernel-2.4.22
cp System.map /boot/System.map-2.4.22
cp .config /boot/config-2.4.22

Edit grub.conf
vi /boot/grub/grub.conf

The flow chart is a most thoroughly oversold piece of program documentation. -- Frederick Brooks, "The Mythical Man Month"

Working...