Inhaltsverzeichnis

WLAN

Hier soll kurz dargestellt werden, wie es unter CentOS möglich sein kann, eine WLAN-Karte zum laufen zu bekommen.

:!: WICHTIG - Es muss explicit ein Linux-Treiber z.B. vom Hersteller verfügbar sein!

Das hier dargestellte Beispiel ist für eine

erstellt.

Herunterladen

Unter nachfolgendem Link, kann für die genannte WLAN-Karte ein Treiber heruntergeladen werden:

Hier bitte den Treiber

auswählen und herunterladen!

:!: HINWEIS - Bei der Erstellung dieses DokuWiki-Eintrags war die aktuelle Version mit der Bezeichnung

verfügbar!

Installieren

Nach dem Herunterladen des aktuellen Treibers - hier z.B. in das Verzeichnis /tmp/2010_01_29_RT2860_Linux_STA_v2.3.0.0.tar.bz2 kann dieses Archiv mit nachfolgendem Befehl entpackt werden:

$ tar -xjvf 2010_01_29_RT2860_Linux_STA_v2.3.0.0.tar.bz2

Ab hier ist es empfohlen root-Rechte zur Ausführung der nachfolgenden Befehle zu nutzen. Um root zu werden geben Sie bitte folgenden Befehl ein:

$ su -
Password: 

In das so entstandene Verzeichnis, mit dem Namen /tmp/2010_01_29_RT2860_Linux_STA_v2.3.0.0, kann mit nachfolgendem Befehl gewechselt werden:

# cd /tmp/2010_01_29_RT2860_Linux_STA_v2.3.0.0

Bevor das Kernel-Modul erzeugt werden kann, besteht noch die Möglichkeit die einbindung in den

zu konfigurieren, was in der Konfigurationsdatei - hier .z.B.:

durchgeführt werden kann.

Nachfolgende Anpassung müssen erfolgen (nur relevanter Ausschnitt):

...
# Support Wpa_Supplicant
# Tachtler
# default: HAS_WPA_SUPPLICANT=n
HAS_WPA_SUPPLICANT=y
 
# Support Native WpaSupplicant for Network Maganger
# Tachtler
# default: HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
...

Anschließend wird der nachfolgende Befehl ausgeführt, welcher das Kernel-Modul erzeugen sollte:

# make
make -C tools
make[1]: Entering directory `/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/tools'
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/Makefile
make -C /lib/modules/2.6.18-194.3.1.el5/build SUBDIRS=/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.3.1.el5-i686'
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/crypt_md5.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/crypt_sha2.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/crypt_hmac.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/crypt_aes.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/crypt_arc4.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/mlme.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_wep.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/action.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_data.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/rtmp_init.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_tkip.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_aes.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_sync.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/eeprom.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_sanity.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_info.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_cfg.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_wpa.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/dfs.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/spectrum.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/rtmp_timer.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/rt_channel.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_profile.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_asic.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_cmd.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/assoc.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/auth.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/auth_rsp.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/sync.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/sanity.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/rtmp_data.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/connect.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/wpa.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../sta/sta_cfg.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_profile.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_linux.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_main_dev.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/ba_action.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_mac_pci.o
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_mac_pci.c: In function ‘RT28xxPciStaAsicSleepThenAutoWakeup’:
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_mac_pci.c:941: warning: unused variable ‘brc’
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_mac_pci.c: In function ‘RT28xxPciAsicRadioOn’:
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_mac_pci.c:1142: warning: unused variable ‘Cancelled’
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/cmm_data_pci.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/ee_prom.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../common/rtmp_mcu.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_pci_rbus.o
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_pci_rbus.c: In function ‘RtmpMgmtTaskInit’:
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_pci_rbus.c:156: warning: passing argument 2 of ‘RtmpOSTaskAttach’ from incompatible pointer type
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_pci_rbus.c: In function ‘rt2860_interrupt’:
/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_pci_rbus.c:647: warning: ‘return’ with no value, in function returning non-void
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/rt_rbus_pci_util.o
  CC [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/../../os/linux/pci_main_dev.o
  LD [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/rt2860sta.o
  Building modules, stage 2.
  MODPOST
  CC      /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/rt2860sta.mod.o
  LD [M]  /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux/rt2860sta.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.3.1.el5-i686'

Abschließend kann nachfolgender Befehl zur Installation des Kernel-Modules verwendet werden:

# make install
make -C /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux'
rm -rf /etc/Wireless/RT2860STA
mkdir /etc/Wireless/RT2860STA
cp /root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/RT2860STA.dat /etc/Wireless/RT2860STA/.
install -d /lib/modules/2.6.18-194.3.1.el5/kernel/drivers/net/wireless/
install -m 644 -c rt2860sta.ko /lib/modules/2.6.18-194.3.1.el5/kernel/drivers/net/wireless/
/sbin/depmod -a 2.6.18-194.3.1.el5
make[1]: Leaving directory `/root/2010_01_29_RT2860_Linux_STA_v2.3.0.0/os/linux'

Kernel-Modul laden

Nachfolgender Befehl lädt das Kernel-Modul abschließend und aktiviert damit die Karte, welche dann durch den z.B. NetworkManager verwaltet werden kann:

# modprobe rt2860sta

Das erfolgreiche laden des Kernel-Modules kann mit nachfolgendem Befehl überprüft werden, welche eine Ausgabe in etwa wie nachfolgend dargestellt erzeugen sollte:

# lsmod | grep rt2860sta
rt2860sta             617072  1

:!: Die Karte sollte nun Einsatzbereit sein !