LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems getting my kernel sources (https://www.linuxquestions.org/questions/linux-software-2/problems-getting-my-kernel-sources-427870/)

foodluver 03-23-2006 10:06 PM

Problems getting my kernel sources
 
Hi, I use debian 3.1 on a powerpc kernel version 2.6.8

I'm trying to install ndiswrapper so I can use this wireless card that only has windows drivers. However when i try to "make" ndiswrapper it says it can't find the kernel sources under the directory /lib/modules/2.6.8-powerpc/build

So i went to apt-get and installed "kernel-source-2.6.8". This however does not install the proper files to the /.../build directory as above that ndiswrapper is looking for. I've tried searching every where on my computer to find this build directory but have ended up empty handed

Can anyone help me find these files I need? Or tell me what I'm doing wrong? Any help would be great! Thanks


-[removed name]

DaneM 03-24-2006 12:56 AM

Hi, [removed name].

Try looking in /usr/src for a file called something like linux-2.6.8.tar.gz or linux-2.6.8.tar.bz2. (There may be some variation in the name.) Once you have located it, extract the files by typing (for a .tar.gz or .tgz file) "tar -zxvf <filename>", or (for a .tar.bz2 file) "tar -jxvf <filename>". Replace "<filename>" with the name of the file.

Now you should have a directory by the same name as the file you just extracted (minus the .tar.gz, .tar.bz2, etc.). Go into that directory and follow a Debian how-to to build your kernel and install your modules. Be sure to use the configuration file in /boot!

Hope that helps.

--Dane


All times are GMT -5. The time now is 11:16 PM.