LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-24-2007, 04:11 PM   #1
Radovitch
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Rep: Reputation: 0
invalid wireless driver


Hi,
I have a wireless speedtouch 121g adapter on my PC. I've installed ndiswrapper-utils and copied the Speedtouch driver file, via the Speedtouch link posted on the ndiswrapper site, to my home folder. However when I try to install it with the ndiswrapper -i command it gives me a 'couldn't copy line 135' error. When I then run the -l command it says 'invalid driver'. I have even installed the ndisgtk wireless frontend and tried to install the driver with the good old point and click method. Anybody have any suggestions? I'm using Ubuntu Dapper Drake.
Thanx
 
Old 02-26-2007, 01:35 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Surely the graphical front-end ndisgtk won't be of help, because all it does is use the very same ndiswrapper program you did from the command line, except that now you can click and the program issues the commands. I assume you either used ndiswrapper as root or trough sudo, because it probably won't work otherwise?

I imagine the process is something like this, compare this to what you did and if it differs, try this if you want to (replace the drivername with the driver filename you use):

1) Make sure no old (native) driver exists:
Code:
lsmod
if one of the modules listed after that is a module that is meant for your card (check Google for this), note it's name and use
Code:
sudo rmmod modulename
to remove it from the running kernel.

2) Remove ndiswrapper module from the kernel (I had to reinstall ndiswrapper-1.8 -- if the version is newer, change it accordingly or leave the version number off) and pull ndiswrapper using APT (needs an internet connection; if you just did this, you may jump forward)
Code:
sudo rmmod ndiswrapper
sudo apt-get --assume-yes install ndiswrapper-utils ndiswrapper-common ndiswrapper-utils-1.8
Not sure if 1.8 is available for Dapper, though; I was using Edgy.

3) If you feel you still might have some older wireless drivers loaded to your kernel, use 'lsmod' and 'rmmod modulename' to remove them, like earlier; there should be no conflicting drivers after now

4) Now try to install the driver .inf file; replace drivername here with the .inf driver filename you use:
Code:
sudo ndiswrapper -i drivername.inf
Now make sure ndiswrapper module is loaded to the kernel after this:
Code:
sudo modprobe ndiswrapper
5) Let's blacklist the old drivers, if any; this prevents them being loaded, and we can use the newly installed driver instead: if you proceed with this step, you'll need the driver names you removed from the kernel (if you removed) using 'rmmod modulename'

Code:
sudo echo "modulename" >> /etc/modprobe.d/blacklist
Do this for every module you rmmod'ed from the kernel before installing the new driver; note that you DO need to use two arrows (">>") to APPEND the information to the file; if you only type one, the file gets overwritten. If you didn't have any previous drivers conflicting, you may omit this step.

6) Make ndiswrapper load at startup:
Code:
sudo echo "ndiswrapper" >> /etc/modules
Note that I haven't done too much with ndiswrapper, this is merely a rough skeleton I think I followed (can't remember 100% surely if I missed something) when I last time had to install Windows drivers for a tricky wireless card on a Linux laptop. After those you should make sure your wireless is enabled (i.e. some laptops have a button you need to click to enable the wireless card, and a light that tells you it is enabled) and see what
Code:
iwconfig
iwlist scan
give you; the device you're using is usually either eth1 or wlan0 depending on your configuration; it doesn't matter which one (unlike some people say), the point is you need to know which one it is. For example, if ndiswrapper works,
Code:
iwlist eth1 scan
(or replace eth1 --> wlan0) should give you some information about nearby access points etc..

It could be that if Dapper doesn't offer you the newest ndiswrapper, that could be the problem. I've heard older ndiswrapper versions (pre 1.8) have problems with some drivers/cards, so it's always worth a try if you can't figure anything else out; I also recommend updating to Edgy when the support for Dapper begins to end, but that's not yet I guess I hope you get your wireless working. Oh, and one more thing: I strongly recommend you make sure the .inf file you are using is really for your chip exactly. I know you said it's said in some site, but even if it was Roosevelt who told it to you, please search the web for other howtos, faqs and websites that either tell you to use the same driver or tell you to use some other driver. Note that the drivers can be different for x86 (32-bit) and x86_64 (64-bit) systems. It's sad when people have to resort to using ndiswrapper + Windows drivers; it was a whole lot easier if the native drivers would work, and that would be a lot easier if the manufacturers started writing other drivers than Windows-only too -- or maybe platform-independent ones. That's probably just too much asked.
 
Old 02-26-2007, 07:10 AM   #3
Radovitch
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Many thanks for your thorough reply. Here is what I have been able to find out:

1.Running the lsmod command shows no wireles modules present

2.Running the rmmod ndiswrapper command gets me the reply: Module ndiswrapper does not exist in /proc/modules

3. Apt-get command not possible as Wireless is my only connection. (I am accessing the internet from the Windows half of my dualboot.)

The 32bit driver is the right one as I got it from the Official Speedtouch site the link for which was posted on the ndiswrapper site.
I know that the ndiswrapper-utils-1.8 is the correct package as it is on the Ubuntu 6.06 LTS CD. However, I see from your code insert that you include: install ndiswrapper-utils ndiswrapper-common ndiswrapper-utils-1.8. Does this mean that in addition to the ndiswrapper-utils-1.8 I should install ndiswrapper utils and common as well?Have tried uninstalling and reinsgtalling the indiswrapper package?
 
Old 02-26-2007, 03:29 PM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
You want the main package, not the userspace utilities. Install ndiswrapper-common.
 
  


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
spca webcam driver: Invalid module format chatan Linspire/Freespire 1 11-03-2006 11:28 PM
Ndiswrapper says Invalid Driver redneon Linux - Wireless Networking 1 04-20-2006 05:09 PM
invalid driver can't remove rutledge_1000 Linux - Wireless Networking 1 03-11-2006 01:00 PM
Invalid Driver with Linksys WPC55AG and Fedora Core 4 hndsoff8 Linux - Wireless Networking 2 12-23-2005 02:36 AM
Belkin F5D7050 and ndiswrapper: invalid driver! AndyCooll Linux - Wireless Networking 5 07-05-2005 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:31 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