PDA

View Full Version : How-to install a wireless USB adapter using ndiswrapper ...



Albretch
11-26-2006, 05:45 AM
.
Even though the wireless link was established between a NetGear, Inc. MA111 WiFi (v1) and a Belkyn (Firmware Version: 4.03.04, Boot Version: 2.01.03, Hardware: F5D7231-4) wireless/corded router, the detailled step-by-step guide could definitely help you with your particular warez.
.
Basically, it is very simple to do it with Knoppix 4.0.2, but 5.0.1 wouldn't let you easily do it. (I have read in this forum some people's political reasoning over manufacturers not open sourcing their drivers and so (apparently those old good times in which we would be happy to do stuff (not politics) are over :-( ))
.
My way to deal with it is by keeping copies of Knoppix 4.0.2 and Knoppix 5.0.1
.
Initially I had a corded connection to the router, that let me gather a little knowledge context on what I wanted to do and download the drivers
.
// - - - - - - - LINKS
// __ ndiswrapper
http://ndiswrapper.sourceforge.net/
http://ndiswrapper.sourceforge.net/mediawiki/index.php/List
.
// __ Linux PCI ID Repository
http://pci-ids.ucw.cz/pci.ids
.
// __ list links
http://hpl.hp.com/personal/Jean_Tourrilhes/Linux/Wireless.html
.
// __ wireless nics
http://www.linux-wlan.org/docs/wlan_adapters.html.gz
.
// __
http://kbserver.netgear.com/products/ma111.asp
http://kbserver.netgear.com/products/MA111v1.asp
http://kbserver.netgear.com/release_notes/d102007.asp
.
// __ http://www.linuxquestions.org/linux/answers/Networking/Netgear_MA111_USB_Wireless_Howto
.
// __ HOWTO: Install the Netgear MA111 (v1) WLAN USB stick - Hoary (Warty)
http://ubuntuforums.org/showthread.php?t=22995
.
// __
http://www.knoppix.net/forum/viewtopic.php?t=25538
.
// - - - - - - - whatchatgot
.
root@1[~]# lsusb | grep NetGear
Bus 004 Device 002: ID 0846:4110 NetGear, Inc. MA111 WiFi (v1)
.
YOU MUST KNOW WHAT CARD EXACTLY DO YOU HAVE IN ORDER TO DOWNLOAD THE RIGHT DRIVERS AND ALSO MAKE SURE THE ADAPTER'S LED SHOWS A STEADY "GREEN"
.
// __ getting drivers
http://kbserver.netgear.com/products/ma111.asp
MA111 (aka MA111v1)
This version is identified by no "v2" after "MA111" on the label. The serial number starts with MA14
* MA111 Support Page, with downloads (http://kbserver.netgear.com/products/MA111v1.asp)
.
http://kbserver.netgear.com/products/MA111v1.asp
http://kbserver.netgear.com/release_notes/d102007.asp
.
root@1[~]# wget ftp://downloads.netgear.com/files/ma111sw_driver_v1.1.zip
--18:15:47-- ftp://downloads.netgear.com/files/ma111sw_driver_v1.1.zip
=> `ma111sw_driver_v1.1.zip'
Resolving downloads.netgear.com... 12.7.210.243
Connecting to downloads.netgear.com|12.7.210.243|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /files ... done.
==> PASV ... done. ==> RETR ma111sw_driver_v1.1.zip ... done.
Length: 5,847,679 (5.6M) (unauthoritative)

100%[=============================================>] 5,847,679 597.96K/s ETA 00:00

18:15:59 (563.94 KB/s) - `ma111sw_driver_v1.1.zip' saved [5847679]

.
root@1[~]# ls -l ma111sw_driver_v1.1.zip
-rw-r--r-- 1 root root 5847679 Nov 24 18:15 ma111sw_driver_v1.1.zip
.
root@1[~]# md5sum ma111sw_driver_v1.1.zip
84eae352598d80931325e28527057254 ma111sw_driver_v1.1.zip
.
root@1[~]# cp ma111sw_driver_v1.1.zip /mnt/sdb1/dev/inst/hw/NetGearMA111
.
root@1[~]# cd /media/sdb1/dev/inst/hw/NetGearMA111
.
root@1[~]# unzip ma111sw_driver_v1.1.zip
Archive: ma111sw_driver_v1.1.zip
inflating: win98/MA111nd5.sys
inflating: win98/NETMA111.INF
inflating: win2000/MA111nd5.sys
inflating: win2000/NETMA111.INF
inflating: winMe/MA111nd5.sys
inflating: winMe/NETMA111.INF
inflating: winXP/MA111nd5.sys
inflating: winXP/NETMA111.INF
inflating: autorun.exe
inflating: autorun.inf
inflating: MA111nd5.sys
inflating: NETMA111.inf
inflating: Setup.exe
inflating: utility/Setup.exe
inflating: utility/Setup.ini
inflating: utility/Setup.inx
inflating: utility/data1.cab
inflating: utility/data1.hdr
inflating: utility/data2.cab
inflating: utility/ikernel.ex_
inflating: utility/layout.bin
.
// __ from all these files, you only need:
winXP/MA111nd5.sys
winXP/NETMA111.INF
.
I deleted the rest and kept the zip file
.
// - - - - - - - Knoppix 5.0.1 (wlan0: error fetching interface information: Device not found)
.
root@1[~]# which ndiswrapper
/usr/sbin/ndiswrapper
.
root@1[~]# ls -l /usr/sbin/ndiswrapper
-rwxr-xr-x 1 root root 220 May 8 2006 /usr/sbin/ndiswrapper
.
root@1[~]# md5sum /usr/sbin/ndiswrapper
ca52192b7d76cede8d47a2afee84eec2 /usr/sbin/ndiswrapper
.
root@1[~]# cd /media/sda1/dev/inst/hw/NetGearMA111/winXP
.
root@1[winXP]# uname -r
2.6.17
.
root@1[winXP]# cat /etc/knoppix-version
5.0.1 2006-06-01
.
root@1[winXP]# ndiswrapper -i netma111.inf
Installing netma111
.
root@1[winXP]# ndiswrapper -l
Installed ndis drivers:
netma111 driver present, hardware present
.
root@1[winXP]# ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper
.
root@1[winXP]# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.17/misc/ndiswrapper.ko): Invalid argument
.
root@1[winXP]# ifconfig -v -a wlan0
wlan0: error fetching interface information: Device not found
.
// - - - - - - - Knoppix 4.0.2
root@0[~]# cd /mnt/sda1/dev/inst/hw/NetGearMA111/winXP
.
root@0[winXP]# ndiswrapper -i netma111.inf
Installing netma111
.
root@0[winXP]# ndiswrapper -l
Installed ndis drivers:
netma111 driver present, hardware present
.
root@0[winXP]# ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper
.
root@0[winXP]# modprobe ndiswrapper
.
root@0[winXP]# ifconfig -v -a
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:5066 errors:0 dropped:0 overruns:0 frame:0
TX packets:3176 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:6696676 (6.3 MiB) TX bytes:281654 (275.0 KiB)
Interrupt:5 Base address:0xe880

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1500 (1.4 KiB) TX bytes:1500 (1.4 KiB)

sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wlan0 Link encap:Ethernet HWaddr NE:WM:AC:AD:DR:ES <- new mac address
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 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:60 (60.0 b) TX bytes:0 (0.0 b)
.
// __ (accessed Belkin router) http://192.168.2.1/
. under firewall -> MAC Address filtering -> enter password and click on submit -> enter new MAC address without colons, that is NEWMACADDRES, instead of entering (NE:WM:AC:AD:DR:ES)
.
. utilities -> restart router
.
// __
root@0[~]# netcardconfig
eth0 NetzwerkKarte_0
wanl0 NetzwerkKarte_wanl0
.
wanl0 selected (Yes)
.
Use DCHP Broadcast? (Yes)
.
Sending DHCP broadcast from device wlan0 OK.
.
// __ ping(ing) the router
root@0[winXP]# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: icmp_seq=0 ttl=64 time=1033.7 ms
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=63.0 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=4.0 ms

--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 4.0/366.9/1033.7 ms
.
// __ ping(ing) out
root@0[winXP]# ping knoppix.net
PING knoppix.net (72.36.188.40): 56 data bytes
64 bytes from 72.36.188.40: icmp_seq=0 ttl=43 time=80.6 ms
64 bytes from 72.36.188.40: icmp_seq=1 ttl=43 time=81.0 ms
64 bytes from 72.36.188.40: icmp_seq=2 ttl=43 time=80.0 ms
64 bytes from 72.36.188.40: icmp_seq=3 ttl=43 time=84.9 ms

--- knoppix.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 80.0/81.6/84.9 ms
.
root@0[winXP]#

Albretch
11-27-2006, 07:12 AM
has anyone tried it with knoppix 5.0.1 or any later version?
.
Albretch