VectorLinux
July 25, 2014, 08:48:56 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How To - ndiswrapper example with netgear wg311v3  (Read 5732 times)
w2ibc
Packager
Vectorite
****
Posts: 114

GAHHHHHH!!!!!


WWW
« on: December 02, 2009, 09:00:51 am »

using ndiswrapper---example installing the netgear wg311v3 wifi card your steps may difer a bit but this how to should give you the idea of what to do.

1st i make a temp dir in home ill call it wg311v3
Code:
/home/w2ibc/wg311v3/

now i copy the WG311v3.INF WG311v3.sys and WG311v3XP.sys files into the wg311v3 folder i just created.

now log in as root.
Code:
vector:/~
w2ibc:$ su
Password:
You are working as root

next install the driver
Code:
vector://home/w2ibc
root:# ndiswrapper -i /home/w2ibc/wg311v3/WG311v3.INF
installing wg311v3 ...

now, check that the driver has wrapped ok.

Code:
root:# ndiswrapper -l
wg311v3 : driver installed
        device (11AB:1FAA) present

INSTALL THE DRIVER
1st check that the ndiswrapper module is avalible
Code:
root:# modinfo ndiswrapper
filename:       /lib/modules/2.6.27.29/misc/ndiswrapper.ko
license:        GPL
version:        1.55
description:    NDIS wrapper driver
*note there will be more lines then above i shortend it to save some forums space*

now do a test insertion, ensuring it returns the correct response

Code:
root:# modprobe -n -v --first-time ndiswrapper
insmod /lib/modules/2.6.27.29/misc/ndiswrapper.ko

insert the wrapped module using modprobe (there should be no response)

Code:
vector://home/w2ibc
root:# modprobe ndiswrapper
vector://home/w2ibc
root:#           

check the driver has installed ok by checking with dmesg

Code:
root:# dmesg
Linux version 2.6.27.29 (root@VectorLinux.Linux.net) (gcc version 4.2.3
) #1 SMP PREEMPT Sat Aug 15 09:49:15 MDT 2009
....... cutting out some input to save space
ndiswrapper version 1.55 loaded (smp=yes, preempt=yes)
ndiswrapper: driver wg311v3 (NETGEAR,02/22/2005,3.1.1.7) loaded
ndiswrapper 0000:00:09.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ndiswrapper: using IRQ 17
wlan0: ethernet device 00:14:6c:88:c9:4a using NDIS driver: wg311v3, ve                            rsion: 0x3000036, NDIS version: 0x501, vendor: 'NDIS Network Adapter',                             11AB:1FAA.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; A                            ES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper

TESTING

iwconfig gives us info on the wlan card

Code:
root:# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:14:6c:88:c9:4a
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 Memory:fcfe0000-fcff0000

iwlist scan scans for access points in the area

Code:
root:# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:0D:97:08:09:E1
                    ESSID:""
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality:32/100  Signal level:-75 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s
                    Extra:bcn_int=250
                    Extra:atim=0
          Cell 02 - Address: 00:1C:DF:CD:99:74
                    ESSID:"belkin54g"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality:29/100  Signal level:-77 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                              12 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 03 - Address: 00:22:75:4A:FD:8D
                    ESSID:"JOHN-PC_Network"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:31/100  Signal level:-76 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
                              24 Mb/s; 48 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK

Set ndiswrapper to load on start up!

Code:
root:# ndiswrapper -m
adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper ...

then add the line ndiswrapper to the file /etc/modules

Code:
root:# echo ndiswrapper >> /etc/modules
vector://home/w2ibc

now your driver should be installed. if you have any problems you can allways ask here in the VL forums and we will be glad to help. also note these steps are also good for debian,ubuntu,mint,madriva, and other linux distros
Logged

Linux Registered User #481509.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!