Mictlantecuhtli
Posts: 4,049 +13
Ok.. here's how I installed kernel 2.6.2 to new Mandrake 9.2 installation.
Download the kernel source from www.kernel.org.
Uncompress it to somewhere you want. You might want to use GUI tools for uncompressing, I use tar:
tar jxf ~/Documents/linux-2.6.2.tar.bz2
Of course you need to replace ~/Documents with the appropriate directory if the package is elsewhere.
Now, from the kernel source directory, read Documentation/Changes, especially chapter "Current Minimal Requirements".
If you don't have the necessary tools for compiling, you need to install them (doh). Usually they come with "development" packages. Check with the suggested commands in console.
Next step is to configure the kernel.
make xconfig will give you a graphical screen to choose options from:
make menuconfig will do the same in textmode.
When you're done, save and exit.
make will then compile the kernel.
This will take a while, depending on your computer's speed.
Then follows the installation:
sudo make modules_install install
Or if you're already logged in as root, omit sudo.
Once that is done, it's time to check that bootloader configuration was successful. "make install" adds the new kernel automatically to /etc/lilo.conf and/or /boot/grub/menu.lst if those exist.
You should see something like this in /etc/lilo.conf:
The installer doesn't (always) update symlinks in /boot, so you might want to update them manually:
cd /boot
ln -sf config-2.6.2 config
ln -sf kernel.h-2.6.2 kernel.h
ln -sf System-map-2.6.2 System.map
initrd.img and vmlinuz symlinks should be correct already.
Then, if using LILO, run /sbin/lilo.
Reboot and enjoy.
Download the kernel source from www.kernel.org.
Uncompress it to somewhere you want. You might want to use GUI tools for uncompressing, I use tar:
tar jxf ~/Documents/linux-2.6.2.tar.bz2
Of course you need to replace ~/Documents with the appropriate directory if the package is elsewhere.
Now, from the kernel source directory, read Documentation/Changes, especially chapter "Current Minimal Requirements".
If you don't have the necessary tools for compiling, you need to install them (doh). Usually they come with "development" packages. Check with the suggested commands in console.
Next step is to configure the kernel.
make xconfig will give you a graphical screen to choose options from:
make menuconfig will do the same in textmode.
When you're done, save and exit.
make will then compile the kernel.
This will take a while, depending on your computer's speed.
Then follows the installation:
sudo make modules_install install
Or if you're already logged in as root, omit sudo.
Once that is done, it's time to check that bootloader configuration was successful. "make install" adds the new kernel automatically to /etc/lilo.conf and/or /boot/grub/menu.lst if those exist.
You should see something like this in /etc/lilo.conf:
Code:
image=/boot/vmlinuz-2.6.2
label=262
root=/dev/hda1
read-only
optional
vga=normal
append=" devfs=mount hdc=ide-scsi acpi=ht splash=silent"
The installer doesn't (always) update symlinks in /boot, so you might want to update them manually:
cd /boot
ln -sf config-2.6.2 config
ln -sf kernel.h-2.6.2 kernel.h
ln -sf System-map-2.6.2 System.map
initrd.img and vmlinuz symlinks should be correct already.
Then, if using LILO, run /sbin/lilo.
Reboot and enjoy.