LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Upgrading a Kernal (https://www.linuxquestions.org/questions/linux-software-2/upgrading-a-kernal-162556/)

mobassir 03-26-2004 04:31 AM

Upgrading a Kernal
 
Hello
Every one

i just installed redhat linux 7.0 on my Pc.
i need to upgrade its kernal , Currrent kernal verion is 2.2.16-22 and i wanted to upgrade it in to 2.4.10 .
my main purpose is installing Penta@net driver on my machine, its driver requierd old kernal vertion thats why i installed redhat 7.0
please guied me by step by step command

from this link. http://www.kernel.org/pub/linux/kernel/v2.4/
i downloaded this kernal files
linux-2.4.10.tar.gz 23-Sep-2001 11:30 27M
linux-2.4.10.tar.gz.sign 23-Sep-2001 11:30 248
linux-2.4.10.tar.sign 23-Sep-2001 11:30 248


One more question can we degrade kernal , Like in redhat linux 9 we have default 2.4.20-8 can we change it in to 2.4.xx , if possible tell me how.


thnals Alot
Waiting for reply

guygriffiths 03-26-2004 06:16 AM

Search the forum. There are hundreds of posts about installing new kernels, and a very good guide to compiling a kernel (in the newbie section I believe)

mobassir 03-26-2004 06:41 AM

hello

thnaks to guied me , i find these usefull info regarding installing new kernal . and i tried these all steps and i took arround half n hour , but aftre end and reboot the kernal version was same 2.2.16-22 . i dont know why

i tied the following steps

Unpack the sources
Optional - You can copy the .config file from your old linux kernel source tree to new kernel tree (may save time, if you want to reuse the old settings).
make clean; make mrproper
make xconfig
make dep
make
make bzImage
make modules
make modules_install
make install
configure LILO or GRUB.
Optional - make clean (If you want to free up disk space)

guygriffiths 03-26-2004 07:03 AM

Instead of:
make install
I would do:
cp arch/i386/boot/bzImage /boot/linux-2.4
cp System.map /boot
And then configure LILO or GRUB. Make sure you run "lilo" after changing the menu entries, if you're using LILO.
If you don't know how to configure LILO/GRUB, then again, search the forum. It should be as straightforward as finding the config file, copying your current entry and changing the path of the kernel (usually something like /boot/vmlinuz or /vmlinuz) to /boot/linux-2.4. And of course changing the label.

mobassir 04-07-2004 08:14 AM

hello

thanks for reply
for mnay day i am trying to upgrade my kernal but no luck.
now i download all patches in bz2 format for 2.4.x.x kernel.
now i have redhat linux 7.2 with default 2.4.7-10 what will be the
procedure if i wants to directly upgrade in to 2.4.10.gz or 2.4.18-3.rpm .
or if its not possible then i alos have all pathes of 2.4.x.x kernal series in bz2 format.

And is that possible to upgrade kernal from 2.4.x.x series to directly 2.6.x.x
or if will requier any old kernal or patches?

thanks

waiting for reply

guygriffiths 04-07-2004 09:54 AM

You should download the full kernel for 2.6.x. To upgrade your 2.4, you will need to apply each patch in turn

LavaDevil94 04-07-2004 11:18 AM

careful about upgrading to 2.6, i had a hell of a time doing so. heres a litle advice:
dont try to patch from your current to 2.6, theres around 75 patches in the 2.5 branch. better to download the full src. second, take alot of time on going about the kernel config, because the less you cram into it, the more efficient it is. but be careful not to omit anything essential.


All times are GMT -5. The time now is 06:02 AM.