LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-13-2005, 09:51 PM   #1
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Rep: Reputation: 15
Kernel Source and Headers Installation (Mandrake 10.1)


Hi,

So this is Part 2 from by previous post.

What I am trying to do eventually is install the ATI Drivers for my Mandrake 10.1 x86-64 system.

There is another post in this forum which describes this procedure. One of the pre-requisites which is listed is that the kernel source/header must be installed. This is what I am inquiring about.

This seems to be something so simple, but I have had a hard time finding a discriptive explanation of how to install the source and header files.

1) To double check that I am understanding this correctly. Mandrake, just after installation is running on the compiled kernel (2.6.8.1-19 in my case). To successfully install these drivers, I need the source code and header files for the kernel on my system so they can be recompiled with the ATI drivers. Is this right?

2) I did some searching, and I found a tutorial which said to type "urpmi kernel-source" to install the source. When I do this, I am given three options however. I figured I should choose 2 since that source matches the one I am running. What should I do?

3) Using the above methods (urpmi kernel-source), are the header files automatically included? If not, how do I get them?

Thanks for your help. And I apologize for my lack of knowledge.

Last edited by JyushinX; 03-13-2005 at 09:53 PM.
 
Old 03-13-2005, 10:34 PM   #2
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
If you're saying that you're given more than one option for kernel-source in the urpmi list, you may have a similar problem to mine. link

You are correct, though. You do need the kernel source code matching your installed kernel in order to compile a properly working driver/module.

As for header files, I can't answer that. I would think (from my limited experience) that if you have your source, and if you installed compiler tools during installation, you'll be okay. I'm just a newb myself, though, so exercise caution.
 
Old 03-14-2005, 02:37 AM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
1) forget URPMI for kernel-source!!! Trust me. **hears Mr. OpJose yelling at me**

2) go to Mandrake control center --> install and search for kernel-source
You will then get a list of kernel-source with different versions. Find the correct version (2.6.1.8-19mdk) with your kernel and you are set. The kernel-source is enough to work with the ATI drivers.

Last edited by Micro420; 03-14-2005 at 02:39 AM.
 
Old 03-14-2005, 02:51 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
For certain packages, I believe using Rpmdrake to view the available packages is a lot easier if you are not quite proficient with urpmi in console mode.
 
Old 03-14-2005, 03:44 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Double check the version if the kernel with the 'uname -r' command. The version may have something added at the end such as -default or -mdk. This will help you determine the correct kernel-headers package to install.
 
Old 03-14-2005, 10:15 AM   #6
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Given that I need to get the source code for the ATI drivers, I can't get into X. What would be the best way to install the kernel source from the console.

When I try to urpmi the kernel-source, I get a bad signature error. Can I just manually download the RPM file from the mirror I used and install it myself?

Thanks.
 
Old 03-14-2005, 11:13 AM   #7
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Original Poster
Rep: Reputation: 15
I figured it out myself, so ignore my last reply. Thanks for your help!
 
Old 03-14-2005, 12:27 PM   #8
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Quote:
Originally posted by JyushinX
I figured it out myself, so ignore my last reply. Thanks for your help!
Glad you figured it out, but can you post how you were able to solve your problem? It would really help others who may be in the same situation as you.
 
Old 03-14-2005, 01:36 PM   #9
JyushinX
Member
 
Registered: Oct 2003
Posts: 36

Original Poster
Rep: Reputation: 15
No problem.

Basically, I just downloaded the source file using WGET from the mirror manually. I then just ran the RPM, which installed the kernel-source package.
 
Old 03-14-2005, 05:40 PM   #10
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Quote:
Originally posted by Micro420
1) forget URPMI for kernel-source!!! Trust me. **hears Mr. OpJose yelling at me**

2) go to Mandrake control center --> install and search for kernel-source
You will then get a list of kernel-source with different versions. Find the correct version (2.6.1.8-19mdk) with your kernel and you are set. The kernel-source is enough to work with the ATI drivers.
Nah, I'm not yelling... heh.

He also has a CUSTOM kernel which complicates matters...


Why?

Why?

Why?


I think that all of the custom kernel questions should not be answered until people give you a reason as to why they think they need a custom kernel.

While there are indeed valid reasons, these tend to be a small minority of users...

Most people end up recompiling simply because of advise by users of other distros...

sigh...
 
  


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
need kernel-source/headers Foress_89 Linux - Hardware 2 10-04-2005 06:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 02:12 PM
have kernel source, want headers stabu Linux - Newbie 3 06-18-2005 04:17 PM
Kernel source headers? oasisbhrnw99 Linux - Newbie 20 07-21-2004 05:00 AM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:45 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