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 05-05-2004, 02:49 PM   #1
oasisbhrnw99
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
Kernel source headers?


I was gonna install a driver for my modem, and the help document it came with said I needed the following.

Prerequisites:
1. root access
2. bash shell to run install scripts
3. an Intel536ep modem
4. KERNEL SOURCE HEADERS FOR THE KERNEL YOU ARE RUNNING.
and programming development tools installed as well

My question is about number 4. I have no idea what that means. I know I have programming development tools installed, but I don't know what "kernel source headers for the Kernel you are running" means. Do those header files need to be copied over to the directory i'm running the script in? If so, where are they? Do they need to be installed? Please help.
 
Old 05-05-2004, 02:55 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
You need the *.h files in /usr/src/linux directory
 
Old 05-05-2004, 02:56 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you will need to install the kernel-headers package. you've given squit all info abuot what system you're running, but i'd guess it's RPM based... in which case the rpm will be on your distro's cd's. you will not need to actually do anythign once they are installed.
 
Old 05-05-2004, 03:07 PM   #4
oasisbhrnw99
Member
 
Registered: May 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
you will need to install the kernel-headers package. you've given squit all info abuot what system you're running, but i'd guess it's RPM based... in which case the rpm will be on your distro's cd's. you will not need to actually do anythign once they are installed.
Sorry, i'm running Red Hat 9.
 
Old 05-05-2004, 05:42 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
So there's kernel-headers package on your installation cd. Install it and it should be enough.
 
Old 07-16-2004, 02:57 PM   #6
Slurmo
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
No there isn't. I'm having the same problem.

No kernel source headers for RH9 at all. Not on the three CD retail set anyway and I've searched up and down the redhat.com ftp site with no luck.

Intel are selling this 'thing' to department stores as a retailed and whiteboxed analogue hardware modem and as far as I can see it simply isn't.

After a week or so of searching Google I've yet to find anyone who's got the thing to work.

Money well wasted for anyone who buys it. Go for US Robotics instead if you can.

~ Slurmo.
 
Old 07-16-2004, 03:25 PM   #7
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
All the kernel source headers are are the include files for your kernel source. You just need the source to the red hat kernel or whatever you compiled yourself and the do a symlink to /usr/src/linux.
 
Old 07-16-2004, 04:49 PM   #8
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
there's a glibc-kernheaders package but all you need is kernel-source package like the guy above says
 
Old 07-17-2004, 06:39 AM   #9
Slurmo
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Thank you both for responding

As I'm a newb tho, could I ask for a little clarification on a couple of things?

* In my /usr/src directory there's a folder called linux-2.4.20-8

So do I put a symlink to this in the directory I'm building my drivers in? I tried a few variations on that but it still fails.

* At boot time (and in response to a DEPMOD command) I recieve two warnings about unresolved symbols. For the files '536ep.o' and '536epcore.o'. Is this because I'm not linking in the headers properly when I compile?

--------------------------------------------------

Also, I said what I did (about there being no kernel source headers) because when I tried using the latest drivers from Intel for RH9 instead of the boxed ones then it fails again. Except this time it complained that two files were missing. 'vmlinuz.version.h' and 'vmlinuz.autoconf.h'

But these two headers are not anywhere on my system. I even downloaded the kernel source from ftp.kernel.org and compiled that but those headers didn't appear. I've installed every rpm on the RH9 CD's and do have the glib package mentioned earlier.

I think I'm maybe not understanding something basic about this whole process but I don't know what it is





Cheers,

~ Slurmo.

Last edited by Slurmo; 07-17-2004 at 06:59 AM.
 
Old 07-17-2004, 08:48 AM   #10
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
I have...

Quote:
Originally posted by Slurmo
No there isn't. I'm having the same problem.
<SNIP>
After a week or so of searching Google I've yet to find anyone who's got the thing to work.
<SNIP>
~ Slurmo.
I've gotten it to work, even put it in HCL
see this thread:

http://www.linuxquestions.org/questi...hreadid=202656
 
Old 07-19-2004, 07:31 AM   #11
Slurmo
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
I'm still having no luck in finding the RH9 x86 kernel source headers. Or if they're already installed then I'm still no closer to getting a working compile of this modems driver.


I was all ready to throw that Intel in the bin and now I'm back to feebly poking at it like a bad tooth again...


Would anyone have any suggestions as to why this isn't working for me please?

I have a /usr/src/linux-2.4.20-8

So I have the headers yeah?
 
Old 07-19-2004, 01:05 PM   #12
praneshmishra
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
go to kickstart->system tools->add remove packages

and install the kernel development package.
u would have the headers.
 
Old 07-20-2004, 06:44 AM   #13
Slurmo
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Hrmm... I have those installed.

This is clearly beyond my skill at this time. Okay, one last question then I'll leave it alone.

How would I unistall this driver for a fresh try?

As far as I can see it adds two modules to the kernel, adds a line to the fstab, creates a new device called /dev/536ep and mounts it on /dev/modem.

Does manually removing all these elements effectively uninstall the driver?



...still don't understand why this is classified as a 'hardware' modem tho

Last edited by Slurmo; 07-20-2004 at 06:48 AM.
 
Old 07-20-2004, 06:49 AM   #14
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
Quote:
All the kernel source headers are are the include files for your kernel source. You just need the source to the red hat kernel or whatever you compiled yourself and the do a symlink to /usr/src/linux.
I just need to reply to this... if you compiled your own kernel, you must not symlink those to the /usr/src/linux directory! Here is a quote from Linus Torvalds to the Linux kernel mailinglist:
Quote:
I would suggest that people who compile new kernels should:

- not have a single symbolic link in sight (except the one that the
kernel build itself sets up, namely the “linux/include/asm”
symlink that is only used for the internal kernel compile itself)

And yes, this is what I do. My /usr/src/linux still has the old 2.2.13
header files, even though I haven't run a 2.2.13 kernel in a _loong_
time. But those headers were what Glibc was compiled against, so those
headers are what matches the library object files.

And this is actually what has been the suggested environment for at
least the last five years. I don't know why the symlink business keeps
on living on, like a bad zombie. Pretty much every distribution still
has that broken symlink, and people still remember that the linux
sources should go into “/usr/src/linux” even though that hasn't
been true in a _loong_ time.
I got this quote from the Linux From Scratch book.

greetz && success,
.-=~ iluvatar ~=-.
 
Old 07-20-2004, 09:10 AM   #15
praneshmishra
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
windows emulates parts(hardware) of a modem(some) through software
hence they are known as software modems or winmodems.

rest are called hardware modems or even linmodems.
 
  


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 07:22 AM
do i need kernel source or headers zuessh Debian 9 08-20-2005 03:12 PM
Kernel source headers symlink rose_bud4201 Linux - Software 3 06-27-2005 08:40 PM
have kernel source, want headers stabu Linux - Newbie 3 06-18-2005 05:17 PM
Kernel Source and Headers Seventh_Warrior Linux - Software 8 04-10-2004 03:59 AM


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