Rtl8187
Aus Gentoo Linux Wiki
[Bearbeiten] Installation anhand des Mainbord Asus P5B Deluxe/WiFi-AP | mit den treibern von rtl-wifi | workaround für 64 bit Systeme
erstmal eine kontrolle somit sieht man bei diesem Board ob das Usb Environment die Karte erkennt
freedom rtl-wifi # lsusb -s1:2 -v
sollte folgendes liefern
Bus 001 Device 002: ID 0bda:8187 Realtek Semiconductor Corp.
Device Descriptor
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x8187
bcdDevice 1.00
iManufacturer 1 Manufacturer_Realtek_RTL8187_
iProduct 2 RTL8187_Wireless
iSerial 3 0015AF09C550
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Wireless Network Card
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 5 Bulk-IN,Bulk-OUT,Bulk-OUT
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
nun nach /usr/src/ wechseln:
freedom rtl-wifi # cd /usr/src/
die SVN sourcen auschecken:
freedom src # svn co https://rtl-wifi.svn.sourceforge.net/svnroot/rtl-wifi rtl-wifi
.
.
.
Ausgecheckt, Revision 57.
Revision 57 wurde getestet!!!
um sicher zu gehen, dass der Kernel keine module für das iee80211 subsystem hat..
freedom src # rm -r /lib/modules/2.6.21-gentoo/kernel/net/ieee80211
folgendes macht ein update der ModulDB
freedom extra # update-modules --force
* Updating /etc/modules.conf ... [ ok ] * Updating /etc/modprobe.conf ... [ ok ] * Updating modules.dep ... [ ok ]
man kann aber auch mal in der Kernelconfiguration nachsehen und ggf das Subsystem entfernen.Dies ist nötig wenn das Subsystem direkt in den Kernel compilliert wurde
nun wechseln wir nach cd rtl-wifi/rtl8187-newstack/, bauen uns den treiber und installieren ihn.
freedom src # cd rtl-wifi/rtl8187-newstack/
freedom rtl8187-newstack # make
freedom rtl8187-newstack # make install
danach das gleiche mit dem ieee80211 subsystem
freedom rtl8187-newstack # cd ../ieee80211/
freedom ieee80211 # make
freedom ieee80211 # make install
nun noch folgendes in die datei /etc/modules.autoload.d/kernel-2.6 eintragen.
ieee80211_crypt_wep_rtl ieee80211_crypt_rtl ieee80211_rtl r8187
nach reboot oder dem laden der Module
kann eine WEP verschlüsselte verbindung aufgebaut werden...
z.B.:
iwconfig wlan0 key mannomannisdergeheim iwconfig wlan0 essid -top-secret- ifconfig wlan0 up ifconfig wlan0 192.168.178.165 route add default gw 192.168.178.1
ggf: noch in der /etc/resolv.conf den nameserver /*dnsserver*/ eintragen nameserver 192.168.178.1
hoffe dass ich jemandem helfen konnte.
... durch das modul ieee80211_crypt_tkip-rtl.ko sollte auch TKIP funktionieren ist aber von mir noch nicht getestet..
