LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 06-14-2005, 03:46 PM   #1
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
Post DISCUSSION: ndiswrapper on Debian Sarge without having to compile anything


This thread is to discuss the article titled: ndiswrapper on Debian Sarge without having to compile anything
 
Old 06-16-2005, 11:58 AM   #2
martinj
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian 3.1
Posts: 28

Rep: Reputation: 15
This crashes my PC. I am running IPW2100

I do apt-get install ndiswrapper-modules-2.6.8-2-386

apt-get install ndiswrapper-utils
ndiswrapper -i w70n51.inf
ndiswrapper -l and it says the hardware is found
I do
apt-get install wireless-tools
ok
I do cd // and
insmod lib/modules/`uname -r`/misc/ndiswrapper.ko
and then it crashes

Last edited by martinj; 06-16-2005 at 12:04 PM.
 
Old 06-16-2005, 01:57 PM   #3
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
This means that your drivers are probably bad.

Try removing the driver you installed by...

Code:
ndiswrapper -e drivername (no .inf at the end)
And then try loading the .ko again. If it loads without any crashes, then you have bad drivers.

Last edited by MikeZila; 06-16-2005 at 02:00 PM.
 
Old 06-17-2005, 12:58 PM   #4
martinj
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian 3.1
Posts: 28

Rep: Reputation: 15
Thanks for the reply. I insted used ipw2100-source. Thanks though for the guide.
 
Old 06-21-2005, 03:13 AM   #5
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Rep: Reputation: 15
Good tutorial but when I get to the point of typing in:

insmod lib/modules/`uname -r`/misc/ndiswrapper.ko

it gives me the reply

insmod: can't read 'lib/modules/2.6.10-5-386/misc/ndiswrapper.ko': No such file or directory

What can I do?

Regards
 
Old 06-21-2005, 05:43 AM   #6
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
See if you can find the final manually by cd'ing to that place. If you come to a directory you don't have, tell me what one.

What directories are in "/lib/modules/"?

Did you remember the starting " / "?

Also, post the output of "uname -r".
 
Old 06-21-2005, 10:57 PM   #7
obarthelemy
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
invalid module format

Hi.

Same problem here: all goes well up until

debian:/home/olivier/dlink# insmod /lib/modules/2.6.8-2-686/misc/ndiswrapper.ko
insmod: error inserting '/lib/modules/2.6.8-2-686/misc/ndiswrapper.ko': -1 Invalid module format

IMPORTANT REMARK: there is an error in your article, the first time you quote the above command (after 'the old-school way', you forgot the leading '/' before 'lib/modules...'. Took me 10 minutes to figure it out. It's hard to be a newbie again

That aside, I am at:

debian:/home/olivier/dlink# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

sit0 no wireless extensions.

------------------------------------------------------------------------------------------------

debian:/home/olivier/dlink# ndiswrapper -l
Installed ndis drivers:
gplus driver present, hardware present

-------------------------------------------------------------------------------------------------

It seems I'm on the brink of having it work, but i'm at a loss. Any help would be greatly appreciated.

I'm on a fresh netinst (french), didn't do the alternate kernel trick since I don't mind crashing this newly-installed test install, i did apt-get update, wireless-modules (v1.1-2) and utils (v1.1-4) installed fine and required ndiswrapper-utils (through synaptics). There is only one ndiswrapper.ko in /lib, so this must be the right one ?

The link the the driver for my dlink g520+ on the ndiswrapper page was dead, so i installed the latest one (ftp://ftp.dlink.de/dwl-products/dwl-...iber_Firmware/ which is v 04, ndiswrapper validated 02 which is no longer available), winXP version. That doesn't seem to be the problem so I haven't tried any other.

This is frustrating. I'm quite good at setting up win XP, and his is my 6th try at getting a Linux install to work for me. I try about every 6 months, but never managed to get everything I need working in 10 hours. I'm trying this time on a i810 motherboard to minimize driver problems... Next item on the install list will be VNC, if I can get past the wireless issue, since I can't live with a network cable running in the middle of my flat Install does seem to get better each time (last time i had graphical bugs on the same PC), but up to now, no cigar. I do pick up some Linux knowledge each time ;-)

Any help would be greatly appreciated, I'm stuck.

Thanks a lot and congratulations for a very well-written and useful guide !

Olivier
 
Old 06-21-2005, 11:15 PM   #8
obarthelemy
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
uname -r result

debian:/home/olivier/dlink# uname -r
2.6.6-1-386

I can see a problem here, because the .ko file is in 2.6.8-2-686:

debian:/lib# find -name ndiswrapper.ko
./modules/2.6.8-2-686/misc/ndiswrapper.ko

debian:/home/olivier/dlink# insmod /lib/modules/2.6.6-1-386/misc/ndiswrapper.ko
insmod: can't read '/lib/modules/2.6.6-1-386/misc/ndiswrapper.ko': No such file or directory

debian:/lib# insmod /lib/modules/2.6.8-2-686/misc/ndiswrapper.ko
insmod: error inserting '/lib/modules/2.6.8-2-686/misc/ndiswrapper.ko': -1 Invalid module format

Oh well ...
 
Old 06-21-2005, 11:20 PM   #9
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
You said that you didn't get the kernel at the begining of the guide? Are you using a kernel of the exact same version number? If not, then that's the spanner in the works. Modules have to match up exactly with their kernels in order to even load in most cases.

I know I'll be corrected, but in my experience trying to load a module for another kernel version has lead to nothing but trouble.

By the way...

I jumped the gun a bit when I posted this as a LinuxAnswer, but it's original forum thread is here, and it's much more updated and corrected than this one.
 
Old 06-21-2005, 11:22 PM   #10
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
Jeeze. Beat me to your own question!

If you're worried about the kernel upgrade, don't be. It's totally safe. If it doesn't work your old kernel is safe, sound, and ready for booting.
 
Old 06-22-2005, 09:23 AM   #11
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Rep: Reputation: 15
I remember that I couldn't install ndiswrapper-module, apt-get coulddn't find it and synaptics couldn't either.

So where do I get it from

Regards
 
Old 06-22-2005, 09:25 AM   #12
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
Are you using the new Sarge's apt-get lists?
 
Old 06-22-2005, 09:28 AM   #13
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Rep: Reputation: 15
I guess I am not.

Where to get them.

regards
 
Old 06-30-2005, 07:19 PM   #14
Rutnut
Member
 
Registered: Dec 2000
Posts: 112

Rep: Reputation: 15
Got it working like a dream.
Decided to have a full clean out and start right from scratch. I installed 3.1 Sarge inst using 2.4.27 kernel, upgraded as it says in the documentation to 2.6.8-2-386, you use 686 then the rest and it worked, but after booting up using the 2.6.8 kernel the whole system is so slow, it just stops after 10 minutes.
I have read that 2.6.9 is better and a bug was found and fixed is that true?

The documentation is excellent. Just can't get the system to run like the 2.4 kernel.
 
Old 06-30-2005, 07:36 PM   #15
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
Perhaps, bugs are fixed all the time.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile XChat on Debian Sarge (Perl problem?) Ninja Cow Debian 4 04-15-2007 03:30 PM
DISCUSSION: Linksys Ver4 - Using NDISWrapper JayCnrs LinuxAnswers Discussion 10 01-27-2007 04:25 AM
can't get ndiswrapper working on debian sarge peterbrowne Linux - Wireless Networking 20 09-30-2006 04:20 AM
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 07:26 AM
PCMCIA-CS Compile Error on Debian Sarge PPC haimeltjnfg Linux - Software 0 05-23-2004 11:24 PM

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

All times are GMT -5. The time now is 03:12 PM.

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