LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel howto!? (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-howto-128052/)

Schopy 12-22-2003 08:59 AM

Kernel howto!?
 
Hi!
I'm not so new to linux, but I haven't compiled a kernel yet!
So.. can anyone suggest me some useful documentation where i can find the right steps to follow? I'm especially interested in testing the new 2.6.0 kernel but I don't want to throw away my old kernel...
Thanx!!!

roy_tan711 12-22-2003 09:27 AM

first go to www.kernel.org,download the kernel you want and it is better to untar/unzip the file you downloaded in /usr/src/linux-kernel-version

then if you don't want to reconfigure the hardware,just copy /boot/config to /usr/src/linux-kernel-version/config,then type -> make oldconfig,make dep,make bzImage, make modules and make modules_install. else you may need to have deep knowledge in your hardware and type -> make menuconfig,make dep,make bzImage, make modules and make modules_install. this few steps take quite long time ;)

After the previous steps, you can copy the usr/src/linux-kernel-version/arch/i386/boot/bzImage to the /boot folder, let say with file name vmlinuz-version and also the config and System.map files in the /usr/src/linux-kernel-version to the /boot.

then edit /etc/lilo.conf and add following codes

image=/boot/vmlinuz-version
root=/dev/your partition
label="linux-version"
read-only

Don't delete the entries in lilo if there's something wrong you still got backup plan ;) just save it and type->lilo

finally, reboot your system ;)

TheOneAndOnlySM 12-22-2003 09:56 AM

http://www.linuxquestions.org/questi...threadid=49035


these are all the steps needed, should work for every distro


All times are GMT -5. The time now is 09:40 AM.