Realtek 8180L avec ndiswrapper sous Debian GNU/Linux
Par Ludovic Francois, vendredi 24 novembre 2006 à 00:50 :: General :: #32 :: rss
J'avais une ancienne carte wifi 802.11b dans un placard, je voulais utiliser celle-ci pour créer un routeur wifi avec portail captif. Ci-dessous vous verrez comment configurer cette carte sous Debian GNU/Linux.
0- RTL8180L
root@obelix:~ # lspci | grep 8180 00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)
I- Outil ndiswrapper en mode utilisateur
Téléchargement et installation de ndiswrapper
root@obelix:~ # apt-get install ndiswrapper
Télécharger le driver windows realtek 8180
root@obelix:~ # wget "ftp://202.65.194.18/cn/wlan/ndis5x-8180(173).zip"
--21:17:40-- ftp://202.65.194.18/cn/wlan/ndis5x-8180(173).zip
=> `ndis5x-8180(173).zip'
Connecting to 202.65.194.18:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /cn/wlan ... done.
==> PASV ... done. ==> RETR ndis5x-8180(173).zip ... done.
Length: 104,101 (102K) (unauthoritative)
100%[====================================================>] 104,101 45.30K/s
21:17:50 (45.24 KB/s) - `ndis5x-8180(173).zip' saved [104101]
root@obelix:~ #
root@obelix:~ # unzip ndis5x-8180\(173\).zip
Archive: ndis5x-8180(173).zip
inflating: rtl8180.sys
inflating: NET8180.INF
inflating: Release.txt
Installer le driver windows 8180 sur la Debian GNU/Linux
root@obelix:~ # ndiswrapper -i NET8180.INF Installing net8180 root@obelix:~ # ndiswrapper -l Installed ndis drivers: net8180 driver present, hardware present root@obelix:~ #
II- Modules kernel
Récupérer les sources
root@obelix:~ # apt-get install ndiswrapper-source
Les décompresser
root@obelix:/usr/src # tar xvjf ndiswrapper-source.tar.bz2
Les compiler et les installer
root@obelix:/usr/src/modules/ndiswrapper # make root@obelix:/usr/src/modules/ndiswrapper # make install
Une fois que j'ai fait ça, J'ai eu quelques problèmes pour charger le module ndiswrapper
root@obelix:~/ndiswrapper-1.29 # modprobe ndiswrapper FATAL: Error inserting ndiswrapper (/lib/modules/2.6.18.2-obelix/misc/ndiswrapper.ko): Unknown symbol in module, or unknown parameter (see dmesg) root@obelix:~/ndiswrapper-1.29 # dmesg | tail -1 ndiswrapper: Unknown symbol wireless_send_event root@obelix:~/ndiswrapper-1.29 #
Après quelques recherches sur google, J'ai trouvé la solution
http://ndiswrapper.sourceforge.net/mediawiki/index.php/FAQ
If you get the compilation error Unknown symbol: wireless_send_event you will need to enable the CONFIG_NET_RADIO option and recompile your kernel or find a kernel with this option already enabled. Checking for the /proc/net/wireless file is not a good way of making sure you have this option enabled since it will exist if one or both of CONFIG_NET_RADIO and CONFIG_NET_PCMCIA_RADIO options are enabled.
root@obelix:~ # modprobe ndiswrapper
root@obelix:~ # iwconfig wlan0
wlan0 IEEE 802.11b ESSID:off/any
Mode:Auto Frequency:2.437 GHz Access Point: Not-Associated
Bit Rate:11 Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr:2432 B Fragment thr:2432 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@obelix:~ #
Maintenant nous sommes capable de configurer la nouvelle interface
root@obelix:~ # iwconfig wlan0 essid FON_zoxx
root@obelix:~ # iwconfig wlan0
wlan0 IEEE 802.11b ESSID:"FON_zoxx"
Mode:Managed Frequency:2.417 GHz Access Point: 00:18:84:11:6D:81
Bit Rate:11 Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr:2432 B Fragment thr:2432 B
Encryption key:off
Power Management:off
Link Quality:73/100 Signal level:-49 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:-1068288296 Invalid misc:-1373815975 Missed beacon:0
root@obelix:~ #
Malheureusement il est seulement possible d'utiliser notre interface ndiswrapper en mode "managed" ou "ad-hoc". Donc aucune chance de l'utiliser en mode "Master".
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire