LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel source headers? (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-source-headers-178242/)

oasisbhrnw99 05-05-2004 01:49 PM

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.

dorian33 05-05-2004 01:55 PM

You need the *.h files in /usr/src/linux directory

acid_kewpie 05-05-2004 01:56 PM

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.

oasisbhrnw99 05-05-2004 02:07 PM

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.

Mara 05-05-2004 04:42 PM

So there's kernel-headers package on your installation cd. Install it and it should be enough.

Slurmo 07-16-2004 01:57 PM

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.

sh1ft 07-16-2004 02:25 PM

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.

Boow 07-16-2004 03:49 PM

there's a glibc-kernheaders package but all you need is kernel-source package like the guy above says

Slurmo 07-17-2004 05:39 AM

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 :scratch:





Cheers,

~ Slurmo.

scuzzman 07-17-2004 07:48 AM

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

Slurmo 07-19-2004 06:31 AM

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?

praneshmishra 07-19-2004 12:05 PM

go to kickstart->system tools->add remove packages

and install the kernel development package.
u would have the headers.

Slurmo 07-20-2004 05:44 AM

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 :p

iluvatar 07-20-2004 05:49 AM

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 ~=-.

praneshmishra 07-20-2004 08:10 AM

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.


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