November 21, 2024, 10:05:02 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: kernel upgradation and compilation  (Read 20911 times)

Offline mysaeed

  • New Member
  • Posts: 3
kernel upgradation and compilation
« 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

Offline dalek

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 243
kernel upgradation and compilation
« Reply #1 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

Offline neo

  • Linux Learner
  • ***
  • Posts: 125
    • http://www.investorsgain.com
kernel upgradation and compilation
« Reply #2 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

Offline sudipta_cht

  • Linux Noob !
  • *
  • Posts: 14
kernel upgradation and compilation
« Reply #3 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
kernel upgradation and compilation
« Reply #4 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..:

Offline dalek

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 243
kernel upgradation and compilation
« Reply #5 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

Offline zerogood

  • Linux Noob !
  • *
  • Posts: 5
kernel upgradation and compilation
« Reply #6 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?

Offline neo

  • Linux Learner
  • ***
  • Posts: 125
    • http://www.investorsgain.com
kernel upgradation and compilation
« Reply #7 on: September 01, 2004, 11:24:12 AM »
You have to type all the commands in the terminal.....

Offline /root

  • New Member
  • Posts: 3
kernel upgradation and compilation
« Reply #8 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,