Realtek RTL8188SU | usb wifi - kompilacja sterownika

Karty sieciowe, modemy, routery, WiFi, Bluetooth etc.
Awatar użytkownika
ultimate.prime
Piegowaty Guziec
Piegowaty Guziec
Posty: 4
Rejestracja: 28 lut 2010, 09:46
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86_64

Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: ultimate.prime »

Czołem!


Zakupiłem dziś kartę USB wifi Media-Tech MT4206 na chipsecie Realtek RTL8188SU.
Na stronie producenta są sterowniki do skompilowania we włąsnym zakresie, co też uczynić próbowałem - niestety bezskutecznie.


Bardzo proszę o pomoc w uporaniu się z następującymi błędami:
ultimate@ubuntu:~/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009$ make
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-22-generic'
CC [M] /home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.o
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c: In function ?rtl8192_usb_probe?:
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12317: error: ?struct net_device? has no member named ?open?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12318: error: ?struct net_device? has no member named ?stop?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12319: error: ?struct net_device? has no member named ?tx_timeout?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12320: error: ?struct net_device? has no member named ?do_ioctl?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12321: error: ?struct net_device? has no member named ?set_multicast_list?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12322: error: ?struct net_device? has no member named ?set_mac_address?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12323: error: ?struct net_device? has no member named ?get_stats?
/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.c:12324: error: ?struct net_device? has no member named ?hard_start_xmit?
make[2]: *** [/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u/r8192U_core.o] Error 1
make[1]: *** [_module_/home/ultimate/Desktop/rtl8192su_linux_2.4_2.6.0003.1019.2009/HAL/rtl8192u] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-generic'
make: *** [all] Error 2

Nie mogę sobie z tym poradzić. Informacji w necie jak na lekarstwo a instrukcja dołączone do sterownika nie przewiduje takich kłopotów:
Release Date: 2009-0825, ver 0003
RTL8192SU Linux driver
--This driver supports RealTek rtl8192SU USB Wireless LAN NIC
for
2.6 kernel:
Fedora Core 2/3/4/5, Debian 3.1, Mandrake 10.2/Mandriva 2006,
SUSE 9.3/10.1/10.2, Gentoo 3.1, Ubuntu 7.10/8.04, etc.
2.4 kernel:
Redhat 9.0/9.1

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

2. Module source code
2.1 ieee80211
2.2 HAL/rtl8192u
2.3 wpa_supplicant-0.5.10 (User can download the latest version from
internet also, but it is suggested to use default package contained
in the distribution because there should less compilation issue.)

3. Script to build the modules
3.1 Makefile

4. Script to load/unload modules
4.1 wlan0up
4.2 wlan0down

5. Script and configuration for DHCP
5.1 wlan0dhcp
5.2 ifcfg-wlan0

6. Example of supplicant configuration file:
6.1 wpa1.conf

7. Script to run wpa_supplicant
7.1 runwpa

===============================================================================
Installation
===============================================================================
<<Method 1>>
Runing the scripts accomplish all operations including building up modules
from the source code, installing driver to the kernel and starting up the nic.
1. Build up the drivers from the source code
make

2. Install the driver to the kernel
make install
reboot

3. bring up wlan if nic is not brought up by GUI, such as NetworkManager
ifconfig wlan0 up
Note: use ifconfig to check whether wlan0 is brought up and use iwconfig to check your wlan interface name,
since it may change wlan0 to wlan1,etc.

<<Method 2>>
Or only load the driver module to kernel and start up nic.
1. Build up the drivers from the source code
make
2. Copy firmware to /lib/firmware/ or /lib/firmware/(KERNEL_VERSION)/
cp -rf firmware/RTL8192SU /lib/firmware
or
cp -rf firmware/RTL8192SU /lib/firmware/(KERNEL_VERSION)
Note: This depends on whether (KERNEL_VERSION) subdirectory exists under /lib/firmware

3. Load driver module to kernel and start up nic.
./wlan0up
Note: when "insmod: error inserting 'xxxx.ko': -1 File exists" comes out
after run ./wlan0up, please run ./wlan0down first, then it should
be ok..
Note: If you see the message of "unkown symbol" during ./wlan0up, it
is suggested to build driver by <<Method 1>>.


Systemy na których próbowałem to: Ubuntu 10.04 i najnowsze Xubuntu, oba z jajkami 2.6.32-22-generic.


Help!

EDIT:
W logach wygląda to następująco:
Jun 27 22:24:30 dv3500 kernel: [ 6965.814788] usb 2-1.3: new high speed USB device using ehci_hcd and address 9
Jun 27 22:24:30 dv3500 kernel: [ 6965.938942] usb 2-1.3: configuration #1 chosen from 1 choice

lsusb daje:
Bus 002 Device 007: ID 0bda:8171 Realtek Semiconductor Corp.
Awatar użytkownika
mario_7
Administrator
Administrator
Posty: 8656
Rejestracja: 30 sie 2006, 13:11
Płeć: Mężczyzna
Wersja Ubuntu: 20.04
Środowisko graficzne: GNOME
Architektura: x86_64

Odp: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: mario_7 »

Jakąś starą wersję pobrałeś. Może z nowszą nie będzie problemu: http://www.realtek.com.tw/downloads/dow ... loads=true
airwch
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 14 sty 2010, 19:25
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: GNOME
Architektura: x86

Re: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: airwch »

Witam,

A mógłby mi ktoś wyjaśnić krok po kroku jak zainstalować tą kartę ? tak aby działała ?

Pozdrawiam
Awatar użytkownika
mario_7
Administrator
Administrator
Posty: 8656
Rejestracja: 30 sie 2006, 13:11
Płeć: Mężczyzna
Wersja Ubuntu: 20.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: mario_7 »

W Ubutnu 11.04 powinna już działać bez dodatkowych zabiegów.

Jeśli nie działa, to uruchom system, podłącz kartę do komputera i wklej tutaj wynik polecenia

Kod: Zaznacz cały

dmesg | tail
airwch
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 14 sty 2010, 19:25
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: GNOME
Architektura: x86

Re: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: airwch »

Wynik polecenia daje:

[ 26.324846] sd 2:0:0:0: [sdb] Write Protect is off
[ 26.324849] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 26.324853] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 26.326095] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 26.326099] sdb: sdb1
[ 26.332728] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 26.332736] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 33.928078] usb 1-4: reset high speed USB device using ehci_hcd and address 4
[ 152.195956] PPP BSD Compression module registered
[ 152.225495] PPP Deflate Compression module registered


Na moim profilu pomylilem wersje. Ubuntu 10.04, przepraszam. Zaraz i tak bede aktualizowac do nowszej wersji, to dam znac, czy cos z tego wyszlo. A jesli nie, to bede prosic o rady- w dalszej kolejnosci.

Pozdrawiam.
Awatar użytkownika
mario_7
Administrator
Administrator
Posty: 8656
Rejestracja: 30 sie 2006, 13:11
Płeć: Mężczyzna
Wersja Ubuntu: 20.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: mario_7 »

W takim razie daj znać jak się sprawy mają w Ubuntu 11.04.
airwch
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 14 sty 2010, 19:25
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: GNOME
Architektura: x86

Re: Realtek RTL8188SU | usb wifi - kompilacja sterownika

Post autor: airwch »

Faktycznie dziala ta karta przy 11.04

O matko, ale zmienione wszystko zostalo ;) Nawet moja karta zte dziala :P

Trzeba bedzie sie teraz nauczyc wszystkiego od nowa - no, prawie wszystkiego ;)

Dziekuje za informacje i pozdrawiam ;)
ODPOWIEDZ

Wróć do „Urządzenia sieciowe”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 21 gości