View previous topic :: View next topic |
Author |
Message |
schalalalala
Joined: 19 Oct 2006 Posts: 1
|
Posted: Thu Oct 19, 2006 8:39 am Post subject: How to get the kernel headers? |
|
|
I sucessfully installed als dsl-n system to harddisk and i want to compile the driver for my wlan card now.
It seems as i got the gcc to work but the kernel headers are missing, because of the error massage:
[code:1]
make: *** /lib/modules/2.6.12/build: No such file or directory. Stop
[/code:1]
Unfortunatly I cant find the kernel headers nowhere, does anybody can help?
Thanks. |
|
Back to top |
|
|
Juanito
Joined: 11 Sep 2006 Posts: 88 Location: Dubai, U.A.E.
|
Posted: Sun Oct 22, 2006 7:05 am Post subject: Similar Problem |
|
|
I had a similar problem when trying to compile a Conexant modem driver - in my case I got the error message that /lib/modules/2.6.12/build points to /usr/src/2.6.11.
You could try "apt-get install kernel-packages" but I don't think this would help with the kernel headers - I searched Debian for kernel-headers-2.6.12 but nothing after 2.6.8 seems to exist... |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Sun Oct 22, 2006 3:36 pm Post subject: |
|
|
Grab a Knoppix 4.0.2 CD then you will have everything needed. |
|
Back to top |
|
|
Juanito
Joined: 11 Sep 2006 Posts: 88 Location: Dubai, U.A.E.
|
Posted: Tue Oct 24, 2006 12:26 pm Post subject: Create Link to Knoppix CD |
|
|
If I a burn a Knoppix 4.0.2 CD, is it possible to create a symbolic link between /usr/src and the CD so that DSL-N sees the kernel headers, kernel source, modules that are not included with DSL-N, etc?
This would be easier than copying them across every time they were needed.
What command(s) would I need? |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Wed Oct 25, 2006 2:37 pm Post subject: |
|
|
I usually boot the full Knoppix CD to do compiles. The results of which, in unionspace/ramdisk, are copied for inclusion/testing to DSL-N.
I have not tried your suggestion of symlinks, let us know. |
|
Back to top |
|
|
Juanito
Joined: 11 Sep 2006 Posts: 88 Location: Dubai, U.A.E.
|
Posted: Sat Oct 28, 2006 5:30 am Post subject: First Attempt |
|
|
I guess I got a partial sucess at the first attempt. I found I could access the Knoppix 4.0.2 CD with the following:
root@dslbox:~# mkdir /ramdisk/knoppix_cd
root@dslbox:~# mount /mnt/scd0/KNOPPIX/KNOPPIX /ramdisk/knoppix_cd -t iso9660 -o ro,loop=/dev/cloop50
Previously I had tried to compile a driver for my modem (Intel 82801DB/DBL/DBM AC'97 PCI Winmodem) and got the following error:
root@dslbox:~# dpkg -i /mnt/sda2/download/hcfpcimodem_1.10full_i386.deb
(Reading database ... 14718 files and directories currently installed.)
Preparing to replace hcfpcimodem 1.10full_k2.6.12_kpx4.0.2_knoppix (using .../hcfpcimodem_1.10full_i386.deb) ...
Setting up hcfpcimodem (1.10full) ...
Conexant HCF controllerless PCI modem driver, version 1.10full
...
ERROR: /lib/modules/2.6.12/build points to a missing directory
lrwxrwxrwx 1 root root 21 Aug 22 13:14 /lib/modules/2.6.12/build -> /usr/src/linux-2.6.11
This would seem to indicate that there is an error in this symbolic link in RC4 but anyway, in an attempt to use the Knoppix CD I tried the following:
root@dslbox:~# ln -s /ramdisk/knoppix_cd/usr/src/linux-2.6.12 /lib/modules/2.6.12/build
root@dslbox:~# dpkg -i /mnt/sda2/download/hcfpcimodem_1.10full_i386.deb
(Reading database ... 14761 files and directories currently installed.)
Preparing to replace hcfpcimodem 1.10full (using .../hcfpcimodem_1.10full_i386.deb) ...
Conexant HCF controllerless PCI modem driver, version 1.10full
...
WARNING: the kernel version () defined in
/lib/modules/2.6.12/build/include/linux/version.h
does not match the currently running kernel (2.6.12)
The cause of this problem is an incorrect kernel source path.
Please check that /lib/modules/2.6.12/build points to the right tree.
The cause of this is usually a missing or unconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).
ERROR: Module build failed!
I'll keep trying... |
|
Back to top |
|
|
|