Going from Windows to Linux

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

lokiju

Lifer
May 29, 2003
18,526
5
0
OK now I got the card working according to ndiswrapper -l it states "driver installed, hardwdare present"

But when I do modprobe ndiswrapper I get "error inserting ndiswrapper (/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko) : Invalid argument"

and if I do "ifstatus wlan0" I get the error "interface wlan0 is not available"

What gives? :confused:
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
How did you fix your last error? Telling others what you did is very beneficial. :)

Did you use root mode to do modprobe? If so, can you do a "uname -a" and report the results?
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: xtknight
How did you fix your last error? Telling others what you did is very beneficial. :)

Did you use root mode to do modprobe? If so, can you do a "uname -a" and report the results?

Bit delayed of a reply but...

I saw on a Linux forum to do a rename on the inf file I was trying to get working and then copy the text of the name while in rename mode then type out the command "ndiswrapper -i" and directly after that do right click and paste.

No idea why this worked when typing the name of the inf file verbatim over and over didn't and neither did the person that suggested it, but for whatever reason it worked.

As for the "uname -a" it produced:
Linux linux-p9cz 2.6.16.21-0.13-smp #1 SMP Mon Jul 17 17:22:44 UTC 2006 i686 i686 i386 GNU/Linux

I was logged in as root while doing all this btw.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Originally posted by: lokiju
I saw on a Linux forum to do a rename on the inf file I was trying to get working and then copy the text of the name while in rename mode then type out the command "ndiswrapper -i" and directly after that do right click and paste.

No idea why this worked when typing the name of the inf file verbatim over and over didn't and neither did the person that suggested it, but for whatever reason it worked.

lol...very odd. Maybe when you copy it it copies it as unicode or something.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: xtknight
Originally posted by: lokiju
I saw on a Linux forum to do a rename on the inf file I was trying to get working and then copy the text of the name while in rename mode then type out the command "ndiswrapper -i" and directly after that do right click and paste.

No idea why this worked when typing the name of the inf file verbatim over and over didn't and neither did the person that suggested it, but for whatever reason it worked.

lol...very odd. Maybe when you copy it it copies it as unicode or something.

No clue either.

Does that uname mean anything to you?

 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
The uname looks consistent with your /lib/modules version so that wasn't the problem. The problem was...well we don't know...but you fixed it.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: xtknight
The uname looks consistent with your /lib/modules version so that wasn't the problem. The problem was...well we don't know...but you fixed it.

Well I got that one issue fixed but have these new ones.

But when I do modprobe ndiswrapper I get "error inserting ndiswrapper (/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko) : Invalid argument"

and if I do "ifstatus wlan0" I get the error "interface wlan0 is not available"


Any ideas on those?

:)
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Originally posted by: lokiju
OK now I got the card working according to ndiswrapper -l it states "driver installed, hardwdare present"

But when I do modprobe ndiswrapper I get "error inserting ndiswrapper (/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko) : Invalid argument"

and if I do "ifstatus wlan0" I get the error "interface wlan0 is not available"

What gives? :confused:

Did you add your network in yast? Try doing that. Check the bottom of my first post.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: SleepWalkerX
Originally posted by: lokiju
OK now I got the card working according to ndiswrapper -l it states "driver installed, hardwdare present"

But when I do modprobe ndiswrapper I get "error inserting ndiswrapper (/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko) : Invalid argument"

and if I do "ifstatus wlan0" I get the error "interface wlan0 is not available"

What gives? :confused:

Did you add your network in yast? Try doing that. Check the bottom of my first post.

Should have noted that, but yes.

I even made my wireless network open just for testing to make sure it wasn't a security issue blocking it from connecting.

I don't even know how else I can confirm that my NIC is being seen by Linux though.

EDIT:

I also did the "Traditional Method with ifup" as per the instruction on here.
But that didn't help either.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
But when I do modprobe ndiswrapper I get "error inserting ndiswrapper (/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko) : Invalid argument"

Does 'dmesg' say anything? Does 'insmod /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko' work?

Did you add your network in yast? Try doing that. Check the bottom of my first post.

That won't change anything if he can't load the ndiswrapper module.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: Nothinman
Does 'dmesg' say anything?

Woa, dmesg produces a ton of text, about 8 pages worth when I copied the text over to a doc.

Not sure if I you want it all pasted here or if theres something more specific I should be looking for in it?

Does 'insmod /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko' work?

I'm not sure how to confirm that.

 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: SleepWalkerX
Well he seems to actually have wlan0 up so there has to be some kind of module running.

Is there any other additional way of confirming this that you know of, maybe it's just reporting it as working incorrectly?

 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Originally posted by: lokiju
Originally posted by: Nothinman
Does 'dmesg' say anything?

Woa, dmesg produces a ton of text, about 8 pages worth when I copied the text over to a doc.

Not sure if I you want it all pasted here or if theres something more specific I should be looking for in it?

Does 'insmod /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko' work?

I'm not sure how to confirm that.

Look all the way at the bottom of the dmesg output. There it should list the last things it ran into, most likely being the ndiswrapper module you're trying to insert.

After typing the insmod command, did it say anything? Try typing the following "lsmod | grep ndiswrapper" and see if its already loaded or not.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: SleepWalkerX
Look all the way at the bottom of the dmesg output. There it should list the last things it ran into, most likely being the ndiswrapper module you're trying to insert.
.

These are the last two lines:

ndiswrapper (wrapper_init:193): loadndiswrapper failed (1536); check system log for messages from 'loadndisdriver'
ndiswrapper (wrapper_init:200): ndiswrapper: initialization failed


After typing the insmod command, did it say anything?

Well it produces a ton of text also and am not sure what I'm looking for, I can paste it all if it'll help

Try typing the following "lsmod | grep ndiswrapper" and see if its already loaded or not

It didn't do anything just flashed when I hit enter and then went back to the prompt.

 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Paste all of the insmod result in the 'attach code' button on this forum.

Type dmesg | grep ndis and paste all of that also.

cat /var/log/syslog | grep ndis would also be helpful (as well as tail /var/log/syslog). Just separate all of them in the attach code button for us. I think some of those may be redundant but more doesn't hurt. ;)
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: xtknight
cat /var/log/syslog | grep ndis would also be helpful (as well as tail /var/log/syslog). Just separate all of them in the attach code button for us. I think some of those may be redundant but more doesn't hurt. ;)

This returns:

Cat: /var/log/syslog: No such file or directory

&

tail: cannot open /var/log/syslog for reading: no such file or directory
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Well it produces a ton of text also and am not sure what I'm looking for, I can paste it all if it'll help

Yes paste it, if the module loads it shouldn't produce anything but at worst I've only ever seen it put out like 2-3 lines so if you got a lot of text something else is wrong.

It didn't do anything just flashed when I hit enter and then went back to the prompt.

That means the module's not loaded, if you want to verify that yourself you can just type 'lsmod' and check the output by hand.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: xtknight
Paste all of the insmod result in the 'attach code' button on this forum.

Looks like I accidentally did lsmod before.

When I do insmod I get:

insmod: error inserting 'ndiswrapper.ko' : -1 Invalid parameters
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: Nothinman
Well it produces a ton of text also and am not sure what I'm looking for, I can paste it all if it'll help

Yes paste it, if the module loads it shouldn't produce anything but at worst I've only ever seen it put out like 2-3 lines so if you got a lot of text something else is wrong.

It didn't do anything just flashed when I hit enter and then went back to the prompt.

That means the module's not loaded, if you want to verify that yourself you can just type 'lsmod' and check the output by hand.

I actually just replied on this but...

Looks like I accidentally did lsmod before.

When I do insmod I get:

insmod: error inserting 'ndiswrapper.ko' : -1 Invalid parameters

This is whats produced when I do a lsmod

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I'm guessing that something is wrong with your ndiswrapper module. Run 'file /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko' and post the results.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: Nothinman
I'm guessing that something is wrong with your ndiswrapper module. Run 'file /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko' and post the results.

Heres what it says:

/lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
 
Dec 30, 2004
12,553
2
76
Originally posted by: FoBoT
you don't have to compile your own apps
the install of any major distro will let you include almost any mainstream app you'll need

If you want your wireless to work in Suse 10 you have to compile the ndiswrapper from source. I think that is what he is speaking of.