LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2005, 02:05 AM   #1
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Rep: Reputation: 0
ndiswrapper and version numbers


Disclaimer: This is only my second day of actual linux usage so bear with me


I'm trying to get ndiswrapper working with my PCMCIA motorola WN825G. Those details arent as important as this:

I'm using debian, and i'm following the debian instructions per the wiki on ndiswrapper:

http://ndiswrapper.sourceforge.net/p...allDebianSarge

Everything goes swimmingly until I get up to the modprobe part


modprobe ndiswrapper

It gives me this crap:

Quote:
horizon:~/wireless# modprobe ndiswrapper
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: kernel-module version mismatch
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o was compiled for kernel version 2.4.27
while this kernel is version 2.4.27-1-386.
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: insmod /lib/modules/2.4.27-1-386/misc/ndiswrapper.o failed
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: insmod ndiswrapper failed
I know that -1-386 is the processor designation but why in the lords name is it SO IMPORTANT that the names are slightly off? I could NOT find a source for 2.4.27-1-386 so I got 2.4.27. EVERYTHING works fine but then it gives me that crap? Can I force it to hook to the driver anyway?

Here is my source directory showing the tar.gz and the directory it is getting the headers from. Got it with apt-get install kernel-source-2.4.27.

Quote:
horizon:~/wireless# !l
ls -l /usr/src
total 169612
drwxr-xr-x 15 root root 4096 2005-03-21 02:55 kernel-source-2.4.27
-rw-r--r-- 1 root root 173363200 2005-01-19 05:26 kernel-source-2.4.27.tar
-rw-r--r-- 1 root root 132547 2005-03-04 22:10 ndiswrapper-source.tar.gz
and for no reason:

Quote:
Linux horizon 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux
Again, i AM following the instructions to the letter, hell ndis even sees my hardware and the driver and it should be working 100%. This is crap.


PLEASE help me, I only have 1 internet cable between 3 computers, two have wireless but debian and its going to drive me NUTS until I get this done right!


Thanks!

Last edited by kronchev; 03-21-2005 at 02:08 AM.
 
Old 03-21-2005, 05:08 PM   #2
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
You don't have the proper kernel headers installed. (There should be directories called kernel-headers-2.4.27-1 and kernel-headers-2.4.27-1-386 in the /usr/src directory)

You only have the kernel source installed, which isn't good enough.

You need the kernel-headers for the very kernel you have.
Typically that is installed by
Code:
apt-get install kernel-headers-$(uname -r)
But, since your kernel is not the most current one in the repositories, there are no headers for your very specific kernel there.

I recommend that you install a kernel just like I have mentioned to you earlier. (reboot after the installation of the new kernel and then install the kernel-headers as mentioned above)


And I think those instructions for the ndiswrapper are are a bit flawed/incomplete for the step #3.
The link creation should be done on the kernel-headers dir for your specific kernel instead
I suggest you create the symlink like this instead, and it should work better (type it as-it-is, the $(uname -r) part will automatically be replaced with the kernel version you are running.:
Code:
ln -s /usr/src/kernel-headers-$(uname -r) /lib/modules/$(uname -r)/build
(after you have installed a new kernel and corresponding kernel-headers, since your currently installed kernel is not the latest available of its specific kind, therefore there are no kernel-headers available for it, just as I mentioned above).
 
Old 03-21-2005, 05:44 PM   #3
kronchev
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian (sarge)
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by dastrike
You don't have the proper kernel headers installed. (There should be directories called kernel-headers-2.4.27-1 and kernel-headers-2.4.27-1-386 in the /usr/src directory)

You only have the kernel source installed, which isn't good enough.

You need the kernel-headers for the very kernel you have.
Typically that is installed by
Code:
apt-get install kernel-headers-$(uname -r)
But, since your kernel is not the most current one in the repositories, there are no headers for your very specific kernel there.

I recommend that you install a kernel just like I have mentioned to you earlier. (reboot after the installation of the new kernel and then install the kernel-headers as mentioned above)


And I think those instructions for the ndiswrapper are are a bit flawed/incomplete for the step #3.
The link creation should be done on the kernel-headers dir for your specific kernel instead
I suggest you create the symlink like this instead, and it should work better (type it as-it-is, the $(uname -r) part will automatically be replaced with the kernel version you are running.:
Code:
ln -s /usr/src/kernel-headers-$(uname -r) /lib/modules/$(uname -r)/build
(after you have installed a new kernel and corresponding kernel-headers, since your currently installed kernel is not the latest available of its specific kind, therefore there are no kernel-headers available for it, just as I mentioned above).
I will be upgrading the kernel when I get some free time. Thanks for all your help, both here and in the past
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper version 1.1 and 1.2 irena56 Linux - Wireless Networking 4 10-17-2005 01:34 PM
ndiswrapper older version... moosegoose Linux - Wireless Networking 1 09-19-2005 03:01 PM
[SOLVED] file locations and version numbers politik Linux - Newbie 2 08-21-2005 09:32 PM
Version numbers X11 Programming 2 04-09-2002 08:56 AM
file version numbers tjones11 Programming 2 03-15-2002 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration