LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2004, 02:01 PM   #1
yjlee
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
Need help in compiling the kernel


Hello.

I am new to Linux and I need a help in compling the kernel source code.
I need to compile the kernel because I want to use the modem whose driver is not included in the default kernel. I clean-installed Fedora Core 2 on my IBM Thinkpad T22.
The current kernel installed is "2.6.7-1.494.2.2"
I read several online documents about the kernel compilation, but since I am new to Linux, I am not clear about what to do.

For example, all the documentation do not tell me what the numbers next "-". When I checked the kernel_dot_org Web site, I didn't find any source that ends with "1.494.2.2" so that I had no idea what source to download from it.

My questions are:
1. With the kernel (2.6.7-1.494.2.2) installed, what kernel source should I download.
2. What is the meaning of "-1.494.2.2"?
3. Are there very easy-to-follow tutorial for kernel compilation?

Thanks in advance.
 
Old 08-05-2004, 02:36 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The numbers after the dash are the specific Fedora version of the kernel. This is a dirty little secret that many different distros have, namely that they don't use the mainstream Linux kernel at all, but one with their own special modifications, backports, etc. You have two choices -- you can stick with your distro's kernel, or go with a vanilla kernel.org kernel. The later is the easier course, probably, and you should just install the kernel-source packages from your install CDs or over the Internet, then you'll be good to go. Alternatively, just download the latest stable kernel.org kernel, configure it carefully to make sure all necessary hardware support is built in directly or as a module, and rebuild.
 
Old 08-05-2004, 02:51 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
kernel-x.y.z-p

x - major version number
y - minor version number
z - extra version number
p - patch level

Correct me guys if I am wrong. There are numerous kernel compile how-to's around.

here's one what I use
http://thomer.com/linux/migrate-to-2.6.html

Also there's a nice how-to on this site too.

Try google...there's a real wealth of info.

Good luck!
 
Old 08-05-2004, 03:04 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

u should download the latest source from kernel.org
say 2.6.7
then from ur preseent kernel u have a config file of the kernel installed in uyr system at /boot directory
so load that config file in ur 2.6.7 kernel configuration
so now u have the working configuration and so
remove the modules u want to remove and add the one s required

complie this kernel and see if it works
 
Old 08-05-2004, 03:19 PM   #5
yjlee
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Then, I have one more question.
If I choose to use the latest kernel from the kernel.org, then from that point, I guess the fedora up2date cannot update my kernel. Please correct me if I am wrong.

Thanks a lot.
 
Old 08-05-2004, 05:23 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
I believe you can edit /etc/yum.conf file to exclude kernel update. If you exclude kernel update, you can still get regular updates minus the kernel update.
 
Old 08-05-2004, 05:51 PM   #7
yjlee
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Unfortunately, I do not know how to edit /etc/yum.conf. Can you give me some pointers about this?

Thanks.
 
Old 08-05-2004, 06:00 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
open up command line and type this
Code:
gedit /etc/yum.conf
here, gedit is a text editor. I use gedit you can use anyone you are familiar with (vi, emacs, pico, joe). Make sure you enter the super user mode.

$ su
and it will ask for password, enter your password and then
gedit /etc/yum.conf

In yum.conf you'll see a lines like

distroverpkg=1
exactarch=1
these are around first 10 or 15 lines.

If you have a line
include = kernel*

replace "include" by "exclude"

if you dont have a include=kernel* line,

enter this,
exclude=kernel*

after line exactarch=1

save the file and exit

you'll return to terminal
type exit to exit out of superuser mode.

Thats it,
If I'm wrong, correct me!
 
Old 08-05-2004, 10:40 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

even if u upate ur kernel from fedora i think it would be of no use since
the kernel fedora is giving ,it is not providing support for ur hardware

so u need to compile it urself to get support for ur hardware

also kernel compilaton wil also help u to learn more

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 02:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 08:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration