[dundee] kernel compilation

Andrew Clayton dundee at lists.lug.org.uk
Mon Jul 21 23:21:01 2003


On Mon, 2003-07-21 at 22:07, keirlawson@btopenworld.com wrote:
> can somebody direct me to a site about kernel compilation (newbie) or email me some instructions as to how to recompile a kernel.  i need to have the latest one to fix the fuzzy sound.
> 
> 

Basically 


Get the latest kernel source.

In fact I would recommend using 2.4.22pre7 as it contains various IO
stall fix's and has reworked sound.

Get a 2.4.21.tar.bz2 from 

ftp://ftp.uk.kernel.org:/pub/linux/kernel/v2.4/linux-2.4.21.tar.bz2

Get the 2.4.22-pre7 patch from

ftp://ftp.uk.kernel.org:/pub/linux/kernel/v2.4/testing/patch-2.4.22-pre7.bz2


I would create a directory called src in your home dir. Put the above
files into there.

Then from src/

tar -xvjf linux-2.4.21.tar.bz2
cd linux-2.4.21
bzcat ../patch-2.4.22-pre7.bz2 | patch -p1

make menuconfig
make dep && make bzImage && make modules
su
make modules_install
cp System.map /boot/System.map-2.4.22-pre7
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.22-pre7
cd /boot
ln -sf System.map System.map-2.4.22-pre7


edit lilo or grub config to add in new kernel.

if using lilo, run lilo after you make the changes to lilo.conf. If
using grub, just edit menu.lst/grub.conf, then reboot.



> 
> keir


--
Andrew