Recompiling Kernel
I'm running kernel v 2.4.22 and i just downloaded a patch for v 2.4.23 .... i know this is gonna sound stupid and i'm really new to linux , but how do i recompile my kernel with this new patch.
thanks for the help! |
The below should work if you already have the 2.4.22 sources installed in /usr/src.
NOTE: if patch gives errors then you probably don't have a clean 2.4.22 source and you should just download 2.4.23. WARNING Not checked for typos or errors. mv patch-2.4.23.bz2 /usr/src cd /usr/src bzip2 -dc patch-2.4.23.bz2 | patch -p0 rm -f linux mv linux-2.4.22 linux-2.4.23 ln -s linux-2.4.23 linux cd linux make mrproper cp /boot/config-ide-2.4.22 .config #Your /boot/config may be different make oldconfig make dep make bzImage make modules make modules_install cat arch/i386/boot/bzImage >/boot/vmlinuz-2.4.23 cp .config /boot/config-ide-2.4.23 cp System.map /boot/System.map-2.4.23 cd /boot mkinitrd initrd-2.4.23.img 2.4.23 #May not be necessary Edit /etc/lilo.conf and add this: image=/boot/vmlinuz-2.4.23 label="2.4.23" initrd=/boot/initrd-2.4.23.img #May not be necessary append=" your standard append" root="your root partition" read-only Save lilo.conf lilo reboot |
thanks so much for your help
|
You're welcome. HTH.
|
All times are GMT -5. The time now is 05:50 PM. |