Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get the kernel headers?

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> HD Install
View previous topic :: View next topic  
Author Message
schalalalala



Joined: 19 Oct 2006
Posts: 1

PostPosted: Thu Oct 19, 2006 8:39 am    Post subject: How to get the kernel headers? Reply with quote

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
View user's profile Send private message
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Sun Oct 22, 2006 7:05 am    Post subject: Similar Problem Reply with quote

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
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Sun Oct 22, 2006 3:36 pm    Post subject: Reply with quote

Grab a Knoppix 4.0.2 CD then you will have everything needed.
Back to top
View user's profile Send private message Visit poster's website
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Tue Oct 24, 2006 12:26 pm    Post subject: Create Link to Knoppix CD Reply with quote

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
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Wed Oct 25, 2006 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Sat Oct 28, 2006 5:30 am    Post subject: First Attempt Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> HD Install All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group