[HOWTO] 2.4.21 Kernel upgrade from source on DELL Xeon

Hi [HOWTO] 2.4.21 Kernel upgrade from source on DELL Xeon

I did it yesterday and posted the same howto on rackshack forum

1) cd /usr/src

2) wget http://kernel.org/pub/linux/kernel/v...2.4.21.tar.bz2

3) wget http://kernel.org/pub/linux/kernel/v...2.4.22-rc2.bz2

4) bzcat linux-2.4.21.tar.bz2 | tar xv

5) ln -s linux-2.4.21 linux

6) cd /usr/src/linux

7) bzip2 -dc /usr/src/patch-2.4.22-rc2.bz2 | patch -p1 --dry-run

8)
wget http://64.246.63.172/conf.txt <---- config file
mv conf.txt .config
make dep
make clean
make bzImage
make modules
make modules_install
cp System.map /boot/System.map-2.4.21
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.21
cd /boot
ln -sf System.map-2.4.21 System.map
ln -sf vmlinuz-2.4.21 vmlinuz

9) My server use LILO!, if your boot loader - grub, feel free to ask.

edit /etc/lilo.conf

**** add following lines:

image=/boot/vmlinuz-2.4.21
label=newlinux
read-only
root=/dev/sda3

10) /sbin/lilo

11) To test your boot run
/sbin/lilo -R newlinux

**** it will be one-time boot, so if anything is wrong, request to reboot the server and old kernel will be loaded

My /etc/lilo.conf:

prompt
timeout=50
default=linux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-27.7.xsmp
label=linux
initrd=/boot/initrd-2.4.18-27.7.xsmp.img
read-only
root=/dev/sda3
image=/boot/vmlinuz-2.4.18-27.7.x
label=linux-up
initrd=/boot/initrd-2.4.18-27.7.x.img
read-only
root=/dev/sda3
image=/boot/vmlinuz-2.4.21
label=newlinux
read-only
root=/dev/sda3


12) /sbin/shutdown -r now

13) If everything is ok, update lilo.conf :

prompt
timeout=50
default=newlinux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-27.7.xsmp
label=linux
initrd=/boot/initrd-2.4.18-27.7.xsmp.img
read-only
root=/dev/sda3
image=/boot/vmlinuz-2.4.18-27.7.x
label=linux-up
initrd=/boot/initrd-2.4.18-27.7.x.img
read-only
root=/dev/sda3
image=/boot/vmlinuz-2.4.21
label=newlinux
read-only
root=/dev/sda3


14) /sbin/lilo

Output:
Added newlinux * <-------- default kernel
Added linux
Added linux-up

15) /sbin/shutdown -r now

16) uname -a
Linux tiger.--------.---- 2.4.21 #1 SMP Tue Aug 19 22:31:52 CDT 2003 i686 unknown

17) Order pizza online


USE IT ON YOUR OWN RISK [HOWTO] 2.4.21 Kernel upgrade from source on DELL Xeon

 

 

 

 

Top