Going from Windows to Linux

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

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Alright after poking around in the source for module-init-tools and my kernel the "Invalid parameters" message is printed when module_init returns EINVAL and every EINVAL I see in the kernel's module.c is accompanied by a printk so something should be in your logs indicating why ndiswrapper failed to load.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: Nothinman
Alright after poking around in the source for module-init-tools and my kernel the "Invalid parameters" message is printed when module_init returns EINVAL and every EINVAL I see in the kernel's module.c is accompanied by a printk so something should be in your logs indicating why ndiswrapper failed to load.

Hmmm.

I'll check into.

Been googling all day but gonna to call it quits in a few mins for the day.

Thank you for all your help.

:beer:
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
This is another reason why free drivers are so important, whoever makes your card would just release the specs on how to talk to it there would be a driver in the kernel and it would have just worked out of the box.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: Nothinman
This is another reason why free drivers are so important, whoever makes your card would just release the specs on how to talk to it there would be a driver in the kernel and it would have just worked out of the box.

Well I might have to end up buying a new NIC for my fiancee's laptop so if I do I'll make sure to just get one that's on the compatible list and then give her my NIC :p.

 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I got the -1 invalid error the other day and I never really knew why. I think it would happen with insmod but not modprobe, or something. Then I came across some undefined symbols (in the dmesg I believe) and just said screw it. (I installed some other sound driver than alsa and it disabled alsa and I couldn't figure out how to get it back.) So I just compiled alsa from scratch again and had no problems (I put the drivers in /etc/modules).

Maybe you should just remove every last remnant of ndiswrapper on there (and properly uninstall any ndiswrapper packages you may have gotten from your distro) and then try compiling the latest version from scratch again?

I'd be interested as to what this would report:
sudo -H -s
strace insmod /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko


Then we may be able to tell what went wrong. It'll be tons of output though so you may want to upload it as a file. If you don't feel like it that's fine too, I'm just curious.

sudo modprobe -v ndiswrapper

What does that report again?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I got the -1 invalid error the other day and I never really knew why.

The -1 is just what insmod returns, what it prints after that is the important part and is the real clue as to why module_init in the kernel failed.

I think it would happen with insmod but not modprobe, or something.

That's unlikely unless the module required some extra parameters that modprobe was feeding it but I don't know of any except some ISA modules. Which is similar to what I'm thinking is happening here only the opposite, that modprobe has some options configured for ndiswrapper that it doesn't like.

strace insmod /lib/modules/2.6.16.21-0.13-smp/updates/ndiswrapper.ko

Then we may be able to tell what went wrong. It'll be tons of output though so you may want to upload it as a file. If you don't feel like it that's fine too, I'm just curious.

All it'll do is print whatever syscall does module_init and then you'll see it return EINVAL.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
So I got tired of messing aruond with SUSE and decided to give Ubuntu 6.06 a try, good news is I got the NIC to come up bad news is I can't get an IP and when I do a dmesg | grep ndis I get the following.

root@compaq:~# dmesg | grep ndis
[17179604.104000] ndiswrapper version 1.8 loaded (preempt=yes,smp=no)
[17179604.244000] ndiswrapper: driver linksys (Cisco-Linksys, LLC.,01/05/2004,1.22.01.2004) loaded
[17179604.280000] ndiswrapper: using irq 11
[17179605.284000] wlan0: ndiswrapper ethernet device 00:0f:66:2e:0f:11 using driver linksys, 17FE:2220:1737:0029.5.conf
[17179605.492000] ndiswrapper (set_essid:61): setting essid failed (00010003)


Any ideas?

I can see my wireless network and the neighbors and set it to connect to mine but still don't get an IP, I even tried a static IP with no luck either (couldn't ping anything). I currently have my wireless wide open just to try and get this thing working but still nothing.

Also if it helps my wired internal NIC works fine.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
OMG I got it working!!!!!!!!!


My essid was the issue!

It was two words with a space and had a "!" at the end so I just for the hell of it changed it to one word with no punctuation and tried again it worked!

But nows the next issue, can't get it working with WEP even seems that it will only work with an open wireless network which I don't like, any tips on how to configure wifi and security in Ubuntu 6.06 would be appreciated.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Anyone?

Still can't find a fix to get my WEP working which I need to use over WPA since thats all some other devices I have support.

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
wiconfig (I think) should be able to setup wep. Read the man page, ask us questions if you don't understand something.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I think it's iwconfig. There is a package called wpa2supplicant that should be able to use WPA too. For now I have also just left my wireless open for testing. I'll enable WEP on it one of these days and try to get Ubuntu to work with it.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
ifconfig is for LAN, iwconfig for WLAN. Most distros have gnome-network-settings and/or NetworkManager tools.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
ifconfig is for LAN, iwconfig for WLAN.

Technically ifconfig is for both, iwconfig is just for the WLAN specific parts but you still need ifconfig to setup IP information.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
iwconfig $device key <key>
iwconfig $device key on

or when you're inputting the key instead of <hash> I believe you can do, "s:<key in ascii>" to input ascii (the passphrase) instead of the actual key.
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Originally posted by: SleepWalkerX
iwconfig $device key <key>
iwconfig $device key on

or when you're inputting the key instead of <hash> I believe you can do, "s:<key in ascii>" to input ascii (the passphrase) instead of the actual key.

Well I gave this a shot but got error msg.

bash: syntax error near unexpected token 'newline'
 

lokiju

Lifer
May 29, 2003
18,526
5
0
Also should note that after looking on ubuntu forums, this seems to be a well established issue but I've yet to come across a solution so far.