Click to See Complete Forum and Search --> : Installing the 2.6 Kernel (for Mepis)


hard candy
12-18-2003, 06:38 AM
Perhaps this could be added to to the Howtos in the library after some reviews?

Installing the 2.6 Kernel in Mepis (using apt-get/kpackage).
I used this method on Mepis linux, a debian-based distro. Using grub will be similiar and Fedora/Suse/etc may have some different configuration
tricks. Check their forums for info.
This will make your official nvidia and radeon drivers unavailable to use with this kernel You will have to use generic Xfree drivers. There are some web sites that tell how to install the nvidia driver with the 2.6 kernel but I haven't gotten that far yet. I don't know Radeon.
Using kpackage this is what I downloaded and installed (from apt-get Debian sources):
kernel-source-2.6.0-test9
kernel-image-2.6.0-test9-1-386 (this is to install the depends-initrd-tools >=0.1.53, coreutils >=4.0, module-init-tools >=0.9.13 , some may already be installed, and the kernel headers-2.6.0-test9-1
When kpackage asks if you want it to configure lilo, say "no".
Make sure the depends are installed as well as the kernel packages.
Look in /usr/src. There should be a file "kernel-source-2.6.0-test9.tar.bz2".
Log in as "root". Use ark/fileroller to uncompress the kernel source in "/usr/src" (Remember to have ark uncompress into "/usr/src".
Then "rm /usr/src/linux" as "su". And then "ln-s /usr/src/kernel-source-2.6.0-test9 /usr/src/linux". This is so when you "cd /usr/src/linux" you will be using the 2.6 source and not the 2.4 source.
Now for some reason, ncurses is installed but isn't available to run ?make menuconfig?. I used "make config" and "make xconfig". You can open "/usr/src/linux-2.4.22/.config"in kwrite and use that as a guideline to configuring the kernel. Use as a guideline only-it will not work to just copy it. Some things will be different. Read the help for each choice. When you finish configuring the kernel, save and exit.
Run "make" (that's it- no make dep, make clean, make bzImage, make modules, just "make"). Then "make install". Then "make modules_install".
Then "cp /usr/src/linux/arch/i386/boot/bzImage /boot".
Now for lilo. My lilo entry for the 2.6 kernel looks like this:
image=/boot/bzImage
label=2.6_kernel.NEW
append="hdc=ide-scsi hdd=ide-scsi noacpi pci=noapci"
root=/dev/hdb1
Then run "/sbin/lilo". If you use a newer version of cdrecord, you can use a plain ide configuration for the drives and leave out "hdc=ide-scsi".
If you have a graphics driver that is a loadable module, you will lose it. For nvidia, in /etc/X11/XF86Config, change the driver to "nv" and put "#"(commenting) in front of "load glx". Uncomment (delete the #) the stuff that says "comment out if using the official nvidia driver" (this is not present in all XF86Config files). Also comment the stuff that says "uncomment if using the nvidia driver". And if you enabled "dri" in the kernel uncomment that also. Remember to comment it back if you install the nvidia drivers.
You should be ready, reboot and see what happens. You can always reboot wwith the old 2.4 kernel to fix things or use the live cd.
For modules, add the ones you want to load at boot to /etc/modules. Then as root run "update-modules". "modprobe -l | less" will give you a list of modules you can scroll through that are available to load. "lsmod" will give you a list of modules that are loaded.
Addendum: I later installed the new Nvidia beta 4620 driver package using info from this site:
deminion (http://www.minion.de/)
Everything works well so far.