[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Kernel  |  Topic: kernel upgradation and compilation
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: kernel upgradation and compilation  (Read 6377 times)
0 Members and 1 Guest are viewing this topic.
mysaeed
New Member

Offline Offline

Posts: 3


View Profile
« on: November 09, 2003, 09:27:10 PM »

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
Logged
dalek
Linux Learner
***
Offline Offline

Posts: 137


View Profile
« Reply #1 on: November 10, 2003, 11:23:32 AM »

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

 Cheesy  Cheesy  Cheesy
Logged
neo
Linux Learner
***
Offline Offline

Posts: 124


View Profile WWW
« Reply #2 on: November 10, 2003, 11:27:53 AM »

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:
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:
make dep
Cool Now type
Code:
make bzImage
9) if it compiles successfully then type
Code:
make modules
10) Now type
Code:
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.
 Cheesy
Logged
sudipta_cht
Linux Noob !
*
Offline Offline

Posts: 14


View Profile
« Reply #3 on: February 16, 2004, 10:13:45 AM »

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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #4 on: February 17, 2004, 12: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..:
Logged
dalek
Linux Learner
***
Offline Offline

Posts: 137


View Profile
« Reply #5 on: February 17, 2004, 02: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

 Cheesy  Cheesy  Cheesy  Cheesy
Logged
zerogood
Linux Noob !
*
Offline Offline

Posts: 5


View Profile
« Reply #6 on: August 30, 2004, 09:54:59 AM »

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?
Logged
neo
Linux Learner
***
Offline Offline

Posts: 124


View Profile WWW
« Reply #7 on: September 01, 2004, 07:24:12 AM »

You have to type all the commands in the terminal.....
Logged
/root
New Member

Offline Offline

Posts: 3


View Profile
« Reply #8 on: May 13, 2005, 03: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?Huh??

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

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Kernel 2.6.3 Upgradation and Compilation Linux Kernel veeria perumal 1 1738 Last post March 08, 2004, 09:04:59 AM
by neo
kernel compilation Os Talk vijaylokesh 3 1478 Last post September 08, 2004, 08:04:42 AM
by jeeva
Postgresql compilation Problem Linux Servers Support vlinux1 5 867 Last post March 12, 2008, 03:38:00 PM
by Ricky
Kernel Compilation: Solve The Error Linux Kernel mohit.saha 0 551 Last post March 06, 2008, 02:00:07 AM
by mohit.saha
Kernel Compilation: Time saving Linux Kernel mohit.saha 0 304 Last post June 18, 2008, 02:27:23 AM
by mohit.saha
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 04:24:44 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6226
Latest: Abhi
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 6
Total: 6
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc