Wlan-Treiber kompilieren

Hallo!

openSuSE 11.4(i586) - Kernel 2.6.37; Bin seit einiger Zeit am erkunden von Linux.
Beim Einrichten von WLAN verstehe ich überhaupt nichts mehr.
Mein WLAN Adapter: Realtek8188ce - Single-Chip IEEE 802.11b/g/n 1T1R WLAN Controller with PCI Express Interface
Einen Linux-Treiber fand ich hier:
Realtek

Nach dem Entpacken: Readme:

Release Date: 2011-03-29, ver 0003
Realtek Linux mac80211 based driver:
–This driver supports follwing RealTek PCIE Wireless LAN NICs:
RTL8188CE/RTL8192CE
RTL8191SE/RTL8192SE
RTL8192DE
–This driver supports follwing Linux OS:
Fedora Core
Debian
Mandriva
Open SUSE
Gentoo
MeeGo
android 2.2 (froyo-x86), etc.

–This driver supports follwing kernel versions:
kernel version >= 2.6.35

–how to support old kernel like 2.6.24-2.6.34
We don’t support kernel 2.6.24-2.6.34 directly, Because there are
lots of issues in mac80211 from kernel 2.6.24-2.6.34 and some functions
may not be included, So we suggest you to use the latest kernel >= 2.6.35.

but if you want to use it in old kernel	you can use compat-wireless.

compat-wireless is a compat version of mac80211 driver,
it have fixed lots of issues of mac80211 in the old kerneli,
and maybe some new functions have been included into it,
and it can be build from kernel 2.6.24 to the latest kernel.

To support RTL819X in you old kernel, you can build and install 
compat-wireless with this driver in you old kernel (2.6.24-2.6.34),
and all wireless moudles will be re-installed by compat-wireless
include mac80211&cfg80211&nl80211, and then you can have the same
wireless modules which have been used in the latest kernel.

You can get more information from [stable - Linux Wireless](http://wireless.kernel.org/en/users/Download/stable)
for how to build compat-wireless with our driver.

you can also download the latest compat-wireless from:
[stable - Linux Wireless](http://wireless.kernel.org/en/users/Download/stable)

========================================================================================
I. Component

The driver is composed of several parts:
1. Firmare to make nic work
1.1 firmare/rtlwifi

2. Module source code
   2.1 ./*
   2.2 rtl8192ce
   2.2 rtl8192se
   2.2 rtl8192de

3. Script to build the modules
   3.1 Makefile 

========================================================================================
II. Compile & Installation & uninstall

You can enter top-level directory of driver and execute follwing command to
Compile, Installation, or uninstall the driver:

1. Change to Super User
   sudo su

2. Compile driver from the source code 
   make

3. Install the driver to the kernel
   make install
   reboot

4. uninstall driver
   make uninstall

Mein erster Versuch des Kompilierens.

#./configure --help
bash: ./configure: Datei oder Verzeichnis nicht gefunden

#make
make -C /lib/modules/2.6.37.6-0.5-desktop/build M=/usr/local/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011 modules
make: *** /lib/modules/2.6.37.6-0.5-desktop/build: Datei oder Verzeichnis nicht gefunden. Schluss.
make: *** [all] Fehler 2

Da habe ich wohl so ziemlich alles falsch gemacht!
Aber wie macht man’s richtig? Hilfe dringend erbeten!

Was sagt denn

/usr/sbin/hwinfo --wlan

zu Deinem Wlan-Adapter.

RTL8188CE/RTL8192CE
RTL8191SE/RTL8192SE

Treiber hierfür gibts evtl im Wireless-repo

openSuSE 11.4(i586) - Kernel 2.6.37

Ausgabe von

uname -a

wäre auch noch interessant.

Ja, danke für deine Antwort.Ich versuch’s im Wireless-repo!
Auf “/usr/sbin/hwinfo --wlan” gabs keine Reaktion!

#uname -a
Linux linux-g222.site 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux

ziwui

Auf “/usr/sbin/hwinfo --wlan” gabs keine Reaktion!

Mußt Du dann nachinstallieren.

#uname -a
Linux linux-g222.site 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux

Aufpassen:
Wireless-Update einbinden:
Index of /repositories/driver:/wireless/11.4-update

Ob es funktioniert, keinen Ahnung, da die Ausgabe von

/usr/sbin/hwinfo --wlan

fehlt.

Hallo, jetzt hab ich den Treiber aus dem Wireless-repo installiert und das repo ins Update eingebunden.
Danke erstmal für den Tipp. Nun wird meine Hardware erkannt. Aber leider konnte ich das Netzwerk noch immer nicht
mit ifup so config, dass es Accesspoints erkennt.

/usr/sbin/hwinfo --wlan

17: PCI 700.0: 0282 WLAN controller
[Created at pci.318]
Unique ID: y9sn.j8KNBDaSxkA
Parent ID: qTvu._YnTqJrwYv4
SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:07:00.0
SysFS BusID: 0000:07:00.0
Hardware Class: network
Model: “Realtek WLAN controller”
Vendor: pci 0x10ec “Realtek Semiconductor Co., Ltd.”
Device: pci 0x8176
SubVendor: pci 0x10ec “Realtek Semiconductor Co., Ltd.”
SubDevice: pci 0x8184
Revision: 0x01
Driver: “rtl8192ce”
Driver Modules: “rtl8192ce”
Device File: wlan0
Features: WLAN
I/O Ports: 0x2000-0x20ff (rw)
Memory Range: 0xf0100000-0xf0103fff (rw,non-prefetchable)
IRQ: 17 (no events)
HW Address: 7c:4f:b5:07:f2:08
Link detected: yes
WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13
WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472
WLAN encryption modes: WEP40 WEP104 TKIP CCMP
WLAN authentication modes: open sharedkey wpa-psk wpa-eap
Module Alias: “pci:v000010ECd00008176sv000010ECsd00008184bc02sc80i00”
Driver Info #0:
Driver Status: rtl8192ce is active
Driver Activation Cmd: “modprobe rtl8192ce”
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #6 (PCI bridge)

Laß das Script mal laufen und poste die Ausgabedatei:
collectNWData

Danke für dein Bemühen. Der folgende Artikel & Befehl hat mir weitergeholfen:

Realtek wireless problems
Your kernel is likely too old for having the rtl8192ce driver built in. That
driver went into mainline with kernel 2.6.38.

You have a couple of options. One is to get the compat-wireless package for your
kernel. First add the repository at
http://download.opensuse.org/reposit...openSUSE_11.4/. Next
find out which kernel you are running with the ‘uname -r’ command. Next add the
compat-wireless-kmp-xxxx that matches the above. Note - xxxx will be desktop or
default. Finally add the kernel-firmware package. After all that, do a ‘sudo/sbin/modprobe -v rtl8192ce
and the wifi device shoud be available.

Your second option is to install a newer kernel. This option is not as good as #1 for someone without much experience.

/sbin/modprobe -v rtl8192ce

insmod /lib/modules/2.6.37.6-0.5-desktop/updates/net/wireless/cfg80211.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/updates/compat/compat.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/updates/net/mac80211/mac80211.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/updates/drivers/net/wireless/rtlwifi/rtlwifi.ko
insmod /lib/modules/2.6.37.6-0.5-desktop/updates/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko

Die Wifi-Verbindung ist aktiv, wenn auch sehr schwankend & ruckelig. Die Qualität wäre
noch Verbesserungswürdig
! Da steht was von Kanalwechsel drin:

linux-g222:/home/pm/Downloads # ./collectNWData.sh
SUSE Paste

Nochmal Danke sagt gitti999!

Zum Abschluss noch eine kleine Zusammenfassung für evt. Leidensgenossen:

Toshiba NB500 mini:
1.Hardware herausfinden:
#su -c “lspci -v”

WLAN Adapter: Realtek8188ce - Single-Chip IEEE 802.11b/g/n 1T1R WLAN Controller with PCI

RTL8188CE/RTL8192CE/RTL8191SE/RTL8192SE Treiber gibts im Wireless-repo.
2.kernel bestimmen:
#uname -r
3.Folgendes Repository mittels URL zu deinen Software-Repositories hinzufügen:
http://download.opensuse.org/reposit...s/11.4-update/
4.YAST2 : Software installieren: Nr. Deines WLAN Adapterchips eingeben> Suche
für passenden kernel.
Beschreibung in YAST2:
rtl8192se-kmp-desktop - Linux driver for Realtek RTL8192SE PCI WiFi cards
Desktop oder Default Treiber installieren; Steht im Bootloader beim Systemstart.
compat-wireless-kmp in suche eingeben; compat-wireless-kmp-xxxx mit passender
kernel-Nr. installieren; xxxx steht für Desktop oder Default.

5.Zeigt ob dein WLAN erkannt wurde: z.B.Driver Status: rtl8192ce is active
#/usr/sbin/hwinfo –wlan

6.WLAN starten:
#/sbin/modprobe -v rtl8192ce

Einrichtung der Schnittstelle mit YaST2 oder NetworkManager laut Beschreibung.
openSUSE-lernen.de

Index of /repositories/driver:/wireless/openSUSE_11.4
Index of /repositories/driver:/wireless/11.4-update