Follow Slashdot blog updates by subscribing to our blog RSS feed

 



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

A computer scientist is someone who fixes things that aren't broken.

Working...