Ndiswrapper

ndiswrapper



Steps for installing the driver with "Ndiswrapper":


1.As stated previously, the developers of SAMity installed ndiswrapper in SAMity, so there is no need to install it yourself. If you find ndiswrapper is corrupted or is not working, open Synaptic and reinstall it. Or do it from the console:

[quest@samity ~]$ su
Password:
[root@samity]# apt-get install ndiswrapper

2. Next we have to determine the PCI ID of our newly installed NIC (Network Interface Card) card. First use lspci command to find the IRQ number of the NIC card. The IRQ will be listed in the first column. In this case the IRQ is 01:08.0:

[root@samity]# lspci
...
...
01:08.0 Network controller: Ralink Turbo Cardbus RT61 (rev 01)
...
...
[root@samity]#

3.The lspci -n command can then be used to obtain the PCI ID which has the format xxxx:xxxx. Our NIC has the ID 1260:3873 :

[root@samity]# lspci -n
...
...
01:08.0 Class 0280: 1260:3873 (rev 01)
...
...
[root@samity]#

4.The ndiswrapper website has a table of PCI IDs and the matching Windows drivers to be used for each at the following URL:

http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list/

The website's list provides the names of drivers that are known to work. Download from this site your driver or you can also just grab your driver form Windows,find the files with the extension *INF and *SYS.

5. Once downloaded, extract the driver files . Under the main driver directory there will usually be subdirectories with drivers matching various versions of Windows. Enter the subdirectory of the most recent version.

6.The main windows driver file will have a .INF extension. Install this driver using the ndiswrapper command with the -i option followed by the driver filename. Use the ndiswrapper command again with the -l option to verify that the installation was successful:

[root@samity /home/rt61]# ls
RT61.sys  RT61.INF
[root@samity /home/rt61]# ndiswrapper -i RT61.INF 
Installing RT61
[root@samity /home/rt61]# ndiswrapper -l
Installed drivers:
RT61               driver installed, hardware present 
[root@samity /home/rt61]#

7. Next the Linux kernel modules tables will have to be updated to include ndiswrapper in the listing. This is done with the depmod command with the -a flag:

[root@samity /home/rt61]# depmod -a
[root@samity /home/rt61]#

8. When ndiswrapper loads, it will need to assign a device name to your NIC card. This is done using the ndiswrapper command with the -m flag. Here we see that the new device name will be wlan0:

[root@samity /home/rt61]# ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper
[root@samity /home/rt61]#

9. Now its time to load the ndiswrapper kernel module with the modprobe command. You can also verify the success of this operation by searching the end of the /var/log/messages file for correct execution of the command:

[root@samity /home/rt61]# modprobe ndiswrapper
[root@samity /home/rt61]# tail /var/log/messages
...
...
Mar 17 23:25:21 bigboy kernel: ndiswrapper version 1.6 loaded (preempt=no,smp=no)
[root@samity /home/rt61]#

The dmesg command will give status messages for the loading of both your NIC driver and the ndiswrapper module. There should be no errors:

[root@samity /home/rt61]# dmesg
...
...
...
ndiswrapper version 1.16 loaded (preempt=no,smp=no)
ndiswrapper: driver rt61 (Ralink,04/21/2005, 3.100.65.1) loaded
ACPI: PCI Interrupt 0000:01:08.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
ndiswrapper: using irq 10
wlan0: vendor: 
wlan0: ndiswrapper ethernet device 00:06:25:1b:b2:a9 using driver rt61 14E4:4301.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK, WPA2, WPA2PSK
[root@samity /home/rt61]#

10.Now you can use the ifup command to activate the NIC, and the iwconfig command will show the interface as connecting correctly to an access point :

[root@samity /home/rt61]# ifup wlan0
[root@samity /home/rt61]# iwconfig
...
...
wlan0      IEEE 802.11g  ESSID:"johncr0w"  Nickname:"samity"
         Mode:Managed  Frequency:2.462GHz  Access Point: 00:09:5B:C9:19:22  
         Bit Rate=54Mb/s   Tx-Power:32 dBm   
         RTS thr=2347 B   Fragment thr=2346 B   
         Encryption key:98D1-26D5-AC   Security mode:restricted
         Power Management:off
         Link Quality:88/100  Signal level:-55 dBm  Noise level:-256 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:96  Invalid misc:1157   Missed beacon:0
...
...
[root@samity /home/rt61]#


Last Modified: 2010-07-18 03:29:35 by serjant - [ Snip Changes ] [ Wiki History ]

No users online



Google Search Engine