LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2004, 12:07 AM   #1
RacerD
Member
 
Registered: Oct 2001
Posts: 58

Rep: Reputation: 15
Making /usr/src/kernel-2.6.5


i need help making the src file for a kernel i guess. I really don't know what i am doing. I need it to install video drivers. I am running Fedora Core 2 for the x86-64 architecture I can't find it on the cd but i dl'ed a rpm but i am not really sure how to make the file i need

Please please help








www.hardwarespeed.com
 
Old 04-16-2004, 07:54 AM   #2
MrSmee
Member
 
Registered: Sep 2003
Location: Plano, TX
Distribution: Slack
Posts: 84

Rep: Reputation: 15
RE : Making /usr/src/kernel-2.6.5

First of all, you need to find out which kernel you are running to begin with,
it won't do you any good to have the source for the 2.6.5 kernel if you are running 2.4.22 to accomplish this, (as root) run
Code:
# uname -r
this will output which version of the linux kernel you are running,
pay attention to the whole thing, as it makes a huge difference, distro to distro. For example, 2.4.22-mdk-smp is not the same as 2.4.22.
Once you know exactly which kernel you are running, go to
http://www.rpmfind.net and do a search for that kernel
You'll need a source rmp (SRPM) rather than just a compiled rpm.
Once you've got the correct source, install it, and make note of where it installs to, you may have to create a softlink from /usr/src/linux-2.6.5 to wherever the source code went

Best of luck
Smee
 
Old 04-16-2004, 09:40 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
You can do a uname -r as a user as well... At least I can, and that makes sense, as there is no reason to make the kernel version root-only information. Of course, you can only act on the kernel as root.

And I don't believe that you need the .srpm-- what you need is the kernel-source-version.rpm or at least the kernel-headers-version.rpm for your currently running kernel, both of which are "compiled", but will just install the source for whatever kernel and automatically make the necessary symlink to /usr/src/linux.

If the kernel source you install is the same as your currently running kernel, all you have to do is follow the instructions to install your video card drivers; if you want to upgrade your kernel, you have to configure, compile and install the new kernel, and boot to it before installing the video card drivers.

If you need general instructions for compiling and installing a kernel, the search function here (and Google) is your friend, and I'm sure that this is also documented among RH/Fedora resource/help sites as well.

Hope this helps.
 
Old 04-16-2004, 09:41 AM   #4
chris78
LQ Newbie
 
Registered: Mar 2004
Location: germany
Distribution: Slackware & RedHat
Posts: 28

Rep: Reputation: 15
Since installing and calling make is not the only thing to compile a kernel you maybe should take a look here http://www.digitalhermit.com/~kwan/kernel.html
 
  


Reply



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
kernel compile - no /usr/src/linux dir epoo Linux - General 2 02-18-2004 09:33 PM
compiling a kernel somewhere other than /usr/src h/w Linux - Newbie 4 09-07-2003 06:34 PM
kernel recompilation: /usr/src/linux orca Linux - Distributions 5 03-04-2003 08:53 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM
no kernel in usr/src/Linux elite Linux - General 11 10-28-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 AM.

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
Open Source Consulting | Domain Registration