Ndiswrapper installation problems

Asked by Drekavack

I am trying to install Ndiswrapper, which turns out to be a great deal of frustration--that wont stop me. I have executed the three commands as i was instructed in the Ubuntu Forum.

sudo pdgk -i ndiswrapper-commons_*.deb

sudo pdgk -i ndiswrapper-utils*.deb

sudo pdgk -i --force-depends ndisgtk_*.deb

Right after these three operations, I executed the following operation:

modprobe ndiswrapper

This operations gives me the following error message:

WARNING: /etc/modprobe.d/blacklist line 40: ignoring bad line starting with 'blackslist'
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.24-19-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko): Operation not permitted

I even managed to install the driver for D-Link DWL G122; when I executed the command "ndiswrapper -l" I got the following result on my screen; "prisma02 : driver installed"

My most frustrating experience is when i performed this operation:

ovitch@ovitch-laptop:~$ sudo dpkg -i --force-depends ndisgtk_*.deb
Selecting previously deselected package ndisgtk.
(Reading database ... 121167 files and directories currently installed.)
Unpacking ndisgtk (from ndisgtk_0.8.3-1_i386.deb) ...
Setting up ndisgtk (0.8.3-1) ...

Now when i go searching for Ndiswrapper graphical interface under : System >Administration > Windows Wireless Drivers its not there at all. Can anyone give me some tips on what to do next and help me troubleshooting through this process? Any help or tips will be highly appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#1

What version of ubuntu are you using?

Revision history for this message
Drekavack (drekavack) said :
#2

I am using Ubuntu 8.0.4. A moment ago i installed the driver for the intel 4965AGN. The installation was successful. But there when i went and searched for the Ndiswrapper the graphical interface, it was there and both drivers were displaying. There are two problems now. When I run "sudo modprove ndiswrapper" i got the following message:

WARNING: /etc/modprobe.d/blacklist line 40: ignoring bad line starting with 'blackslist'
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.24-19-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko): Operation not permitted

The second problem is When i was using the ndisgtk, all the hardware for the drivers were connected, but right under the drivers there was a note that says: No hardware is present.

Thank you very much for all your help.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please check the word "blackslist" and change to "blacklist" into the /etc/modprobe.d/blacklist

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /etc/modprobe.d/blacklist

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
peter b (b1pete) said :
#4

.....'but right under the drivers there was a note that says: No hardware is present.'.....

this statement denotes a defective install of driver with ndiswrapper and/or an improper driver installed. under this conditions the remedy is, in order

- remove with ndiswrapper the driver installed
- uninstall ndiswrapper, ndiswrapper-utils and ndisgtk packages
- reboot
- reinstal VIA SYNAPTIC the 3 ndis packeges (mentioned above)
- check via lspci command the chipset of your wireless interface and V important, MAKE SURE that the driver to be installed is written for the PROPER ubuntu distro (use uname -a command)
- when ALL above are satisfied proceed with a new driver install (V IMP --> in the folder where the driver to be inst lives THERE MUST NOT BE more than the xxxxxx.inf and xxxxxx.sys driver files).

as far as the error re blacklist is concerned --> check the spelling as suggested in the previous post.

hope the above clarify and help.

peter b

Revision history for this message
Drekavack (drekavack) said :
#5

Now i got some new issues

ovitch@ovitch-laptop:~$ modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.24-16-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko): Operation not permitted
ovitch@ovitch-laptop:~$ ndiswrapper -l
prisma02 : driver installed

I have done exactly as indicated, however in the graphical interface it still saying that there is no hardware present for the driver. Any tips? Thank you very much for all your help so far.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

you need to use sudo command to do this... so type:

modprobe ndiswrapper

give your user password when requested, you don't see nothing when you type it, then press enter.

hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Sorry...

you need to use sudo command to do this... so type:

sudo modprobe ndiswrapper

give your user password when requested, you don't see nothing when you type it, then press enter.

hope this helps

Revision history for this message
peter b (b1pete) said :
#8

try

sudo modprobe ndiswrapper

now, because I did not see the output of your

lspci

command - the way your post reads it appears that ....' prisma02 : driver installed'..... I can not confirm or deny that it is the PROPER driver for the chipset that lives on your pc.

pls run the last command mentioned -lspci- in a terminal and MAKE SURE that the chipset MATCHES the driver to be installed and the distro installed. the way your last post reads, for sure there is a problem.

I'd suggest to firstly post here the output of lspci command and pls repeat the procedure that I mentioned in my previous post -remove the driver installed NOTE --> if the driver was properly removed a message should be displayed and ndiswrapper -l command will not show any output.

v important, pls pay special attention to the driver removal command --> only the first part of driver name must be entered NO EXTENSIONS.

peter b

Revision history for this message
peter b (b1pete) said :
#9

just for your info --> an EXAMPLE of ndiswrapper -l command CORRECT FORMAT output looks something like

ndiswrapper -l
zd1211bu : driver installed
 device (0ACE:1215) present (alternate driver: zd1211rw)

for sure your output CONTENTS WILL be different BUT THE FORMAT MUST BE THE SAME. notice device present.

peter b

Revision history for this message
peter b (b1pete) said :
#10

I investigated a little further device --> D-Link DWL G122 that you posted and say that you're having --> it appears that's a usb connected device, so please post here output of

lsusb

and

lspci

this output is MANDATORY for me to continue

I strongly suggest

- first, to uninstall the driver that's currently installed -prisma02 : driver installed - and AFTER this command pls
- ndiswrapper -l and post output here --> as said, if properly uninstalled THERE SHOULD BE NO output
- secondly, please take a look at

https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported#Wireless USB Adapters

and

https://help.ubuntu.com/community/WifiDocs/Device/DWL-122

as you could see this device comes in all kinds of 'flavours' so to speak --> it makes use under the same name of a variety of chipsets; that's the reason that lsusb and lspci commands output is MANDATORY --> to precisely identify the chipset and the proper driver to be installed.

once again, pls make sure that the prisma02 driver currently installed is removed then post here answers to all above. we'll continue after that.

Revision history for this message
Drekavack (drekavack) said :
#11

ovitch@ovitch-laptop:~$ sudo modprobe ndiswrapper
[sudo] password for ovitch:

ovitch@ovitch-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
03:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
0c:00.0 Network controller: Broadcom Corporation BCM4328 802.11a/b/g/n (rev 03)

ovitch@ovitch-laptop:~$ lsusb
Bus 007 Device 002: ID 2001:3c00 D-Link Corp. [hex] DWL-G122 802.11g rev. B1 [ralink]
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

ovitch@ovitch-laptop:~$ ndiswrapper -l
prisma02 : driver installed

ovitch@ovitch-laptop:~$ ndiswrapper -l
ovitch@ovitch-laptop:~$

I have uninstalled the prisma02: driver installed.

Revision history for this message
peter b (b1pete) said :
#12

it's crystal clear that the driver prisma02 that was inst WAS NOT the driver for your chipset --> your chipset IS

Bus 007 Device 002: ID 2001:3c00 D-Link Corp. [hex] DWL-G122 802.11g rev. B1 [ralink]

so, based on this the next step is to find out what DISTRO is installed

uname -a

command will tell you that. V IMP --> if ndiswrapper is used then the ralink (win) driver TO BE INSTALLED MUST be either 386 or 64 version.

next, on one of the url's above you could see an entry like

 D-Link DWL-G122 B1/ralink No No No There are quite a different number of versions floating around, and this one is D-link DWL-G122 REV H/W ver B1 F/W 2.02. The usb id is 2001:3c00. The drivers are from the Ralink. 2005-11-25 usb

this just confirms that the chipset above/identified by lsusb NEEDS a ralink driver. this entry is rather old so I browsed for some newer howtos. pls check and UNDERSTAND FIRST then follow this url (in order TO FOLLOW AND IMPLEMENT this howto you'll have to be familiar with compiling source code, edit system files, configure network mgr etc)

http://ubuntuforums.org/showthread.php?t=596751

this url describes the open source serialmonkey driver installation which appears - as stated by other users - to work. you'll also notice that ndiswrapper driver install method, in their experience, MAY or MAY NOT work.

pls use the serialmonkey open source driver - for sure it'll work. I also recommend if you have problems or do not fully understand the contents of this url, to participate in this forum thread - for sure someone will be more than willing to explain and clarify your problem.

peter b

Revision history for this message
Drekavack (drekavack) said :
#13

Greetings Gents,

And I want to throw a big thank you to all of you and how grateful I am for all your help. I have succeeded in installing the driver for my D-Link DWL G122 USB wireless card. First and foremost, the there are four versions of the DWL G122 USB wireless card:

1) the A1 version: http://support.dlink.com/products/view.asp?productid=DWL-G122
2) the A2 version: http://support.dlink.com/products/view.asp?productid=DWL-G122_revA2
3) the B1 version: http://support.dlink.com/products/view.asp?productid=DWL-G122_revB#
4) the D1 version: http://support.dlink.com/products/view.asp?productid=DWL-G122_revD

If ever you've encountered someone with a similar problem, they can look on the back of the USB driver to find out which one of the four drivers they can use. To download the drivers, simply go on the bottom of the page, and click on the boxes with the check mark with the name of the OS drivers you want to download.

Now, my screen looks as fellow with the commands and operations that I have performed. If there is anything wrong that you would want to suggest, please let me know. Also, now when i launch the graphical interface (ndisgtk) it also says that the Hardware (DWL G122) is present :) lol ... Great Success for me. :D

ovitch@ovitch-laptop:~$ sudo ndiswrapper -i NetRTUSB.inf
[sudo] password for ovitch:
installing netrtusb ...
ovitch@ovitch-laptop:~$ ndiswrapper -l
netrtusb : driver installed
 device (2001:3C00) present (alternate driver: rt2500usb)
ovitch@ovitch-laptop:~$ sudo depmod -a
ovitch@ovitch-laptop:~$ sudo modprobe ndiswrapper
ovitch@ovitch-laptop:~$ tail /var/log/messages
Jul 16 18:54:50 ovitch-laptop syslogd 1.5.0#1ubuntu1: restart.
Jul 16 18:54:51 ovitch-laptop kernel: [ 1366.219437] ndiswrapper version 1.52 loaded (smp=yes, preempt=no)
Jul 16 18:54:51 ovitch-laptop kernel: [ 1366.246101] usbcore: registered new interface driver ndiswrapper
ovitch@ovitch-laptop:~$

Revision history for this message
peter b (b1pete) said :
#14

glad to see that you got to the 'bottom' of your problems with DWL-G122 and you're happy.

just a small note in closing, pls understand that it's made to, if you wish, consider and implement in the future: it's not part of this ticket.

- your lspci command output shows that there are present/built-in 2 additional network interfaces as follows

03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)

which is a wired interface and

0c:00.0 Network controller: Broadcom Corporation BCM4328 802.11a/b/g/n (rev 03)

which is a wireless interface

now, pls understand that it WAS NOT up to me to CHOOSE what way you wanted to connect your pc wireless to the outside world --> you mentioned from the very outset that you wanted to use D-link dongle so I helped you with that particular interface. but you could v easily have chosen the built-in interface as shown above last line the BCM4328.

there is no harm done whatsoever except that the d-link dongle must be installed and occupies one of your pc usb ports and the built-in interface just sits there doing nothing. but as I said, it is entirely up to you which one you wish to use.

best regards and cheerios,
peter b

Revision history for this message
peter b (b1pete) said :
#15

Drekavack,

if your DWL-G122 problem was solved as I understand, please close this ticket as solved.

if you decide to use the other wireless interface as I mentioned in my last post and feel that you need any help with that then by all means open another question/ticket with that topic.

regards,
peter b

Can you help with this problem?

Provide an answer of your own, or ask Drekavack for more information if necessary.

To post a message you must log in.