This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Blog About Dedicated Servers

« | »

2.4.22 Kernel upgrade from SOURCE on XEON

Luigi Ramone | 15 December, 2005 21:12

What is new:
1. Quota support
2. ACPI support -> "CONFIG_ACPI_HT_ONLY=y"
( I spent 1.5 hours to find out why we boot without HT )

1) cd /usr/src

2) wget kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2

3) bzcat linux-2.4.22.tar.bz2 | tar xv

4) rm linux

5) ln -s linux-2.4.22 linux

6) cd /usr/src/linux

7)
wget 64.246.63.172/conf2.txt <---- config file
mv conf2.txt .config
make dep
make clean
make bzImage
make modules
make modules_install
cp System.map /boot/System.map-2.4.22
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.22
cd /boot
ln -sf System.map-2.4.22 System.map
ln -sf vmlinuz-2.4.22 vmlinuz



8) edit /etc/lilo.conf

**** add following lines:

image=/boot/vmlinuz-2.4.22
label=linux2422
read-only
root=/dev/sda3

9) /sbin/lilo

Output:
Added newlinux *
Added linux
Added linux-up
Added linux2422

10) To test your first boot, run
/sbin/lilo -R linux2422

**** 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=newlinux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.21
label=newlinux
read-only
root=/dev/sda3
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.22
label=linux2422
read-only
root=/dev/sda3

11) /sbin/shutdown -r now

12) uname -a
Linux tiger.------.--- 2.4.22 #2 SMP Fri Aug 29 07:43:00 CDT 2003 i686 unknown

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

prompt
timeout=50
default=linux2422
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.21
label=newlinux
read-only
root=/dev/sda3
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.22
label=linux2422
read-only
root=/dev/sda3

14) /sbin/lilo

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

15) /sbin/shutdown -r now

16) uname -a
Linux tiger.--------.---- 2.4.22 #2 SMP Fri Aug 29 07:43:00 CDT 2003 i686 unknown


USE IT ON YOUR OWN RISK
...and be ready to pay Rackshack to fix your server

========================================
OLD HOWTO for 2.4.21 + RC2 patch

1) cd /usr/src

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

3) wget http://kernel.org/pub/linux/kernel/...-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) 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

Add comment

Topic

Text

Your name

Your email address (if any)

Your personal page (if any)


authimage




Powered by Boonic, Bloogo & pLog
This Blog does not have any affiliation nor relation with the mentioned companies. All the logotipos, trade names and images are property of the companies that registered them.