LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-19-2005, 04:20 AM   #1
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Rep: Reputation: 0
Question Kernel Sources


Hello

I've got a Suse 9.0 Linux and I'd like to install a driver for a I/O acquisition board. I've got the sources of this driver and I need to compile it. But this compilation requires some header files from the kernel sources (exactly, I think these headers are part from the kernel sources but I'm not sure). So I'd like to install the sources of my kernel (2.4.21-99). I can't find them on my Linux CDs, and I download them from the web. And now my question is how to install the kernel sources in the right directories, without (re)install the kernel?


PC Junior
 
Old 06-19-2005, 06:42 AM   #2
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Check YaST for the kernel-devel packages. Those are the ones you need.

Also, Kernel 2.6 most likely supports your device if the source is available. Have you considered upgrading to SUSE 9.2 (free download) or SUSE 9.3 (not free download quite yet)?

Security updates for 9.0 are going to end in a few months.
 
Old 06-20-2005, 03:05 AM   #3
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hello Linux-rulz, thanks for your answer.

I've checked YaST for packages, but with "kernel-devel" keyword, it doesn't find anything. I've also tried "kernel", "dev", "source". I've installed everything it gave to me, but the one I need wasn't in them. The message of the makefile of my driver is always the same : "unable to find headers for kernel 2.4.99-default".

I used this version of Suse because my driver is given for kernels 2.4, for 2.5 with redhat distribution and it's said in the help file that it doesn't support 2.6 kernels. I have also another driver for another board that is given for Suse 9.0 (and another version for Suse 9.1). So the choice of my system version isn't really free for me. And security isn't really a problem for me because my linux will probably never be in contact with the web.

Can I install the sources without YaST if I've got them? And if yes, how?

PC Jr
 
Old 06-20-2005, 02:56 PM   #4
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
I don't believe you can. Where did you download the source from online?

Also, try the SUSE 9.3 CD. The reason I am saying to try a newer release is that you have the source code for your driver, so it is most likely GPL'd. The code may have been merged into the 2.6 series kernel. Try a new Knoppix release or the 9.3 DVD and see what happens.
 
Old 06-21-2005, 01:06 PM   #5
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
I don't believe you can. Where did you download the source from online?
I didn't download it, this is a 3CD version bought somewhere in Germany.

I'm not sure this driver will work with a 2.6 kernel if it's written in the doc that the 2.6 kernels are not supported. Second problem, I use another board with another driver and for this one, I've only 2 compilated versions: one for 9.0 and one for 9.1.
I'm going to try with 9.3. Thanks to use your time to answer to me


PC Jr

Last edited by PC Junior; 06-21-2005 at 01:27 PM.
 
Old 06-21-2005, 03:26 PM   #6
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Quote:
I didn't download it, this is a 3CD version bought somewhere in Germany. I'm not sure this driver will work with a 2.6 kernel if it's written in the doc that the 2.6 kernels are not supported. Second problem, I use another board with another driver and for this one, I've only 2 compilated versions: one for 9.0 and one for 9.1. I'm going to try with 9.3. Thanks to use your time to answer to me
Yeah, the driver you have may not support 2.6 kernels. The thing is, it supports 2.5 kernels, which was the development series that became 2.6. If the code is GPL'd, it may have been merged by the kernel developers into the mainstream kernel. Give a newer distro or a new live cd a try and let me know what happenes.
 
Old 06-27-2005, 01:15 AM   #7
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
I bought a 9.3 pro version. With this one, I have the kernel sources, but my driver doesn't work (many compilation errors). It was also impossible to configure the network with my another computer (with win98). So I came back to my Suse 9.0.
Now I'm waiting for an answer from Suse about where to find the right sources for the kernel 2.4.21-99-default, because the ones found on www.kernel.org aren't the good ones.
It's hard to install drivers with linux :'(

Last edited by PC Junior; 06-27-2005 at 01:17 AM.
 
Old 06-27-2005, 08:34 AM   #8
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
The driver wasn't included with the 2.6 kernel???? Have you thought of going to the company's website and looking for a newer driver, or even searching for the device name and linux and google.

Post your device name here please (chipset...etc)
 
Old 06-27-2005, 12:43 PM   #9
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
The driver I try to compile is the newest (and only one) I found one the website (http://www.iotech.com/ftp.html)

My device is the DaqBoard1000 (http://www.iotech.com/catalog/daq/daqboard1000.html)
 
Old 06-27-2005, 05:17 PM   #10
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
There is a contact link on the company's website, they'll know better than anyone else what is going on with the drivers for their device.
 
Old 06-28-2005, 11:37 AM   #11
PC Junior
LQ Newbie
 
Registered: Jun 2005
Location: France
Distribution: Suse
Posts: 6

Original Poster
Rep: Reputation: 0
I agree but my problem isn't directly with the driver, but with my kernel sources I need to install to compile this driver.
I asked also to the Suse support, but until now, I don't have a interesting answer.
Except www.kernel.org ans Suse website, where can I find kernel sources?
 
Old 06-28-2005, 01:44 PM   #12
69_rs_ss
Member
 
Registered: Jan 2004
Location: NY, USA
Distribution: Arch, openSUSE 11.1
Posts: 170

Rep: Reputation: 31
What kernel exactly are you using? Run uname -r at the command line to find out. Once you find that out, check out ftp://ftp.suse.com/pub/suse/i386/update/9.0/rpm/i586/ and grab the correct rpm for your installed kernel.
 
Old 06-28-2005, 05:07 PM   #13
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
it will say either linux or kernel and it will also say either headers or -devel in the name of the rpm file.
 
  


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
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
kernel sources... rpb Linux - Newbie 4 04-26-2005 09:32 PM
Kernel Sources unwrittenlaw Linux - General 1 12-06-2004 04:00 AM
kernel sources [ITA]freeware Linux - Software 2 09-17-2004 02:24 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM


All times are GMT -5. The time now is 05:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration