Debian kernel header problem and missing folder
I am having problems trying to install a WiFi card (instruction heres: http://rt2x00.serialmonkey.com/wiki/...n_rt2500_Howto) but my problems seem to be related debian kernel header problems
If I do uname -r I get 2.8.6-1-386 Now if I do an apt-cache search kernel-headers 2.8.6 there are no 2.8.6-1-386 headers listed, there is a 2.8.8-11-386 The instruction are quite specfic to use the exact headers for your kernel. The nearest I can get is 2.6.8-11 or 2.6.8-2 Secondly, regardless of the header I install if I try the following ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/ I get the error no such file or directory, is this because I don't have a /usr/src/linux<kernel-hader> directory??? if so how do I get a /usr/src/linux directory?? Thanks in advance Tim |
Kernel headers 2.6.8-2 are the headers for your kernel. If you apt-get install kernel-headers-2.6.8-2 it will install kernel headers 2.6.8-2 and 2.6.8-2-386. These are the headers I ran when I had the 2.6.8-1-386 kernel.
:study: |
OK I have those header installed
But I still can't get past ln -s /usr/src/kernel-headers-2.6.8-2-386/ /usr/src/linux-2.6.8-2-386/ I get the error no such file or directory, I don't have a /usr/src/linux-2.6.8-2-386/ folder so how why or what do I need to do?? Tim |
Quote:
# ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/ Are you sure you don't have this mixed up a little? Maybe you'd better post the contents of your /usr/src path. Let's see what you have in there. Code:
# cd /usr/src/ |
Quote:
Quote:
ln -s /usr/src/kernel-headers-2.6.8-2-386/ /usr/src/linux-2.6.8-2-386/ I can't see one, as to why somebody is linking x to y I don't know enough about linux to say, I am just following the instructions Tim |
Your second example matches fine, but there's not much I can help with unitl you post the contents of your /usr/src/ folder. Use the command I gave in the previous post and then perhaps we can move this along for you.
|
Here what I get
# cd /usr/src/ # ls kernel-headers-2.6.8.11 kernel-headers-2.6.8-2-386 kernel-patches kernel-source-2.6.8.tar.bz2 rt2500.tar.gz kernel-headers-2.6.8-2 kernel-kbuild-2.6.8-3 kernel-source-2.6.8 moduels Tim |
Open a terminal and enter the commands below.
Let's see if we can make that symlink you are needing. Code:
$ su |
pluto:/usr/src# ln -s kernel-headers-2.6.8-2-386 linux-2.6.8-2-386
pluto:/usr/src# ls /usr/src/linux-2.6.8-2-386 /usr/src/linux-2.6.8-2-386 pluto:/usr/src# Does that look right?? Tim |
No, that does not look right.
It should appear similar to below: # ls /usr/src/linux-2.6.8-2-386 arch fs ipc Makefile net sound crypto include kernel mm scripts usr drivers init lib Module.symvers security Issue the command again or navigate to the folder in a file browser. What are the contents....? If still not correct, check the contents of your kernel-headers-2.6.8-2-386. Maybe that is where the problem resides. If there is problem in that folder then just link with the default headers. $ su # cd /usr/src # rm /usr/src/linux-2.6.8-2-386 # ln -s kernel-headers-2.6.8-2 linux-2.6.8-2-386 # ls /usr/src/linux-2.6.8-2-386 This shoud work since everthing in kernel-headers-2.6.8-2-386 refers to the kernel-headers-2.6.8-2 directory anyway, so there will be no difference. |
Ok this is what is currently in the kernel-headers-2.6.8-2-386
pluto:/usr/src# cd kernel-headers-2.6.8-2-386 pluto:/usr/src/kernel-headers-2.6.8-2-386# ls arch fs ipc Makefile net sound crypto include kernel mm scripts usr drivers init lib Module.symvers security When viewed in KDE Konqueror the directory list is all in italics? So I tried pluto:/usr/src/kernel-headers-2.6.8-2-386# cd .. pluto:/usr/src# rm /usr/src/linux-2.6.8-2-386 pluto:/usr/src# ln -s kernel-haders-2.6.8-2-386 linux-2.6.8-2-386 pluto:/usr/src# ls /usr/src/linux-2.6.8-2-386 /usr/src/linux-2.6.8-2-386 It might be easier to update my kernel rather than chasing this little problem around. I am going to be away working for a few days so i will have to start this again later in the week. Thanks for the help, I know I will be back asking for more soon Tim |
I assume this is a typo since there is no "haders" path:
# ln -s kernel-haders-2.6.8-2-386 linux-2.6.8-2-386 Your folder contents look good. However, I can not explain why the commands being duplicated on your system produce different results. See my output below: Code:
$ su |
All times are GMT -5. The time now is 01:57 AM. |