Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Kernel => Topic started by: mysaeed on November 10, 2003, 02:27:10 AM

Title: kernel upgradation and compilation
Post by: mysaeed on November 10, 2003, 02:27:10 AM
I am running RedHat 7.3 kernel 2.4.18..now i want to upgrade my kernel from 2.4.18 to 2.4.20 for 7.3 linux.Pls tell me the step one by one..
Thanks
Title: kernel upgradation and compilation
Post by: dalek on November 10, 2003, 04:23:32 PM
Download the kernel and untar it and put the folder in the /usr/src directory.  There should be a readme in there that will tell you how to compile and such.  It is best to follow it.

When you get that done name the kernel with 'test' on the end and save a copy of the current working kernel.  If something goes wrong, you can switch back to the old kernel and boot to fix it.  This is really easy in grub.

I have compiled kernels before but only in Gentoo.  It is not that hard except for making sure you have all the settings right.  It can be very time consuming though.

Don't expect to see a lot of change though.  I assume there is something specific in the release that you are wanting.

Hope that helps.

Later

 :D  :D  :D
Title: kernel upgradation and compilation
Post by: neo on November 10, 2003, 04:27:53 PM
Steps :
1) Download the kernel from http://www.kernel.org/
2) extract the .tar file
3) go into the directory where u have extracted it.
4) type the comand
Code: [Select]
make menuconfig 5) select the features u want in ur kernel ( u may like to see the documentation or u may get some help by typing " ?" )
6) exit the menuconfig and come on to the shell saving the new configuration
7) type the command
Code: [Select]
make dep 8) Now type
Code: [Select]
make bzImage 9) if it compiles successfully then type
Code: [Select]
make modules 10) Now type
Code: [Select]
make modules_install 11) ur new kernel is in the directory ./arch/i386/boot/bzImage copy it in the directory /boot/
12) edit ur bootloader so that u may boot the new kernel
13) choose the line for booting ur new kernel at boot up.
 :D
Title: kernel upgradation and compilation
Post by: sudipta_cht on February 16, 2004, 03:13:45 PM
Just for info,
 I tried kernel 2.6. I could do a direct make install after all what you've written, neo. And it did all the necessary things to my bootloader without me bothering too much.
In case you are not sure, mysaeed, you can also try that
Title: kernel upgradation and compilation
Post by: Ricky on February 17, 2004, 05:25:37 PM
Quote from: "sudipta_cht"
Just for info,
 I tried kernel 2.6. I could do a direct make install after all what you've written, neo. And it did all the necessary things to my bootloader without me bothering too much.
In case you are not sure, mysaeed, you can also try that

Well i think neo is talking about LILO.. and Sudipta_cht you you are using GRUB .. Am i right ??
Well lilo need to reconfigure every time when you made major changes to kernel..:
Title: kernel upgradation and compilation
Post by: dalek on February 17, 2004, 07:53:39 PM
If you change your kernel, you will have to run lilo before it will load it.  Grub will look for it when it boots.

That help?

Later

 :D  :D  :D  :D
Title: kernel upgradation and compilation
Post by: zerogood on August 30, 2004, 01:54:59 PM
I am a complete newb to this you said that after you extract the .tar and go to the files you said
Quote
4) type the comand
and then
Quote
make menuconfig
where do i type this in. i'm using redhat 9 would i type it in a terminal or in the folder address bar?
Title: kernel upgradation and compilation
Post by: neo on September 01, 2004, 11:24:12 AM
You have to type all the commands in the terminal.....
Title: kernel upgradation and compilation
Post by: /root on May 13, 2005, 07:43:37 AM
to neo:

when i tried the command u given:

it works for "make menuconfig"

but it seems not good for "make dep":

[root@localhost linux]# make dep
*** Warning: make dep is unnecessary now.

then i ignored "make dep" and proceed to "make bzImage' and it completed successfully and so is the "make modules" and it stoped in "make modules_install", here is the error message:

[root@localhost linux-2.6.9]# make modules_install
  INSTALL arch/i386/crypto/aes-i586.ko
cp: cannot stat `arch/i386/crypto/aes-i586.ko': No such file or directory
make[1]: *** [arch/i386/crypto/aes-i586.ko] Error 1
make: *** [_modinst_] Error 2



can help me to resolve this??????

regards,