LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
Thread Tools
Old 06-14-2005, 04:46 PM   #1
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0
Post DISCUSSION: ndiswrapper on Debian Sarge without having to compile anything


[Log in to get rid of this advertisement]
This thread is to discuss the article titled: ndiswrapper on Debian Sarge without having to compile anything
MikeZila is offline     Reply With Quote
Old 06-16-2005, 12:58 PM   #2
martinj
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian 3.1
Posts: 28
Thanked: 0
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 01:04 PM..
martinj is offline     Reply With Quote
Old 06-16-2005, 02:57 PM   #3
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
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 03:00 PM..
MikeZila is offline     Reply With Quote
Old 06-17-2005, 01:58 PM   #4
martinj
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian 3.1
Posts: 28
Thanked: 0
Thanks for the reply. I insted used ipw2100-source. Thanks though for the guide.
martinj is offline     Reply With Quote
Old 06-21-2005, 04:13 AM   #5
Rutnut
Member
 
Registered: Dec 2000
Posts: 112
Thanked: 0
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
Rutnut is offline     Reply With Quote
Old 06-21-2005, 06:43 AM   #6
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
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".
MikeZila is offline     Reply With Quote
Old 06-21-2005, 11:57 PM   #7
obarthelemy
LQ Newbie
 
Registered: Jun 2005
Posts: 2
Thanked: 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
obarthelemy is offline     Reply With Quote
Old 06-22-2005, 12:15 AM   #8
obarthelemy
LQ Newbie
 
Registered: Jun 2005
Posts: 2
Thanked: 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 ...
obarthelemy is offline     Reply With Quote
Old 06-22-2005, 12:20 AM   #9
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
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.
MikeZila is offline     Reply With Quote
Old 06-22-2005, 12:22 AM   #10
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
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.
MikeZila is offline     Reply With Quote
Old 06-22-2005, 10:23 AM   #11
Rutnut
Member
 
Registered: Dec 2000
Posts: 112
Thanked: 0
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
Rutnut is offline     Reply With Quote
Old 06-22-2005, 10:25 AM   #12
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
Are you using the new Sarge's apt-get lists?
MikeZila is offline     Reply With Quote
Old 06-22-2005, 10:28 AM   #13
Rutnut
Member
 
Registered: Dec 2000
Posts: 112
Thanked: 0
I guess I am not.

Where to get them.

regards
Rutnut is offline     Reply With Quote
Old 06-30-2005, 08:19 PM   #14
Rutnut
Member
 
Registered: Dec 2000
Posts: 112
Thanked: 0
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.
Rutnut is offline     Reply With Quote
Old 06-30-2005, 08:36 PM   #15
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377
Thanked: 0

Original Poster
Perhaps, bugs are fixed all the time.
MikeZila is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 04:30 PM
DISCUSSION: Linksys Ver4 - Using NDISWrapper JayCnrs LinuxAnswers Discussion 10 01-27-2007 05:25 AM
can't get ndiswrapper working on debian sarge peterbrowne Linux - Wireless Networking 20 09-30-2006 05:20 AM
compile the new kernel 2.6 on Debian Sarge cccc Debian 7 08-01-2005 08:26 AM
PCMCIA-CS Compile Error on Debian Sarge PPC haimeltjnfg Linux - Software 0 05-24-2004 12:24 AM


All times are GMT -5. The time now is 02:36 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration