LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian kernel header problem and missing folder (https://www.linuxquestions.org/questions/debian-26/debian-kernel-header-problem-and-missing-folder-355541/)

draggin 08-21-2005 01:17 PM

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

Tons of Fun 08-21-2005 02:12 PM

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:

draggin 08-21-2005 02:48 PM

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

Xian 08-21-2005 03:06 PM

Quote:

Originally posted by draggin
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/

That command does not match your earlier post:
# 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/
# ls


draggin 08-21-2005 03:16 PM

Quote:

Originally posted by Xian
That command does not match your earlier post:
# ln -s /usr/src/<kernel-header>/ /usr/src/linux-<kernel-header>/

I put the <kernel-headers> in as my origanal question was questioning the kernel header that I should use

Quote:

# ln -s /usr/src/kernel-headers-x.x.xx-x-x/
/usr/src/linux-x.x.xx-x-x/

where is the difference in the above compared to

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

Xian 08-21-2005 04:23 PM

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.

draggin 08-22-2005 12:43 PM

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

Xian 08-22-2005 03:59 PM

Open a terminal and enter the commands below.
Let's see if we can make that symlink you are needing.

Code:

$ su
Password:
# cd /usr/src
# ln -s kernel-headers-2.6.8-2-386 linux-2.6.8-2-386
# ls /usr/src/linux-2.6.8-2-386


draggin 08-22-2005 04:18 PM

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

Xian 08-22-2005 04:39 PM

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.

draggin 08-22-2005 05:02 PM

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

Xian 08-22-2005 05:09 PM

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
<password>
# cd /usr/src
# rm /usr/src/linux-2.6.8-2-386
# ls kernel-headers-2.6.8-2
arch    fs      ipc                      lib      net      sound
crypto  include  kernel                  Makefile  scripts  usr
drivers  init    kernel-headers.revision  mm        security
# ln -s kernel-headers-2.6.8-2 linux-2.6.8-2-386
# ls /usr/src/linux-2.6.8-2-386
arch    fs      ipc                      lib      net      sound
crypto  include  kernel                  Makefile  scripts  usr
drivers  init    kernel-headers.revision  mm        security
#



All times are GMT -5. The time now is 01:57 AM.