instalacja adaptera wifi usb chipset Realtek RTL8188SU
: 21 listopada 2011, 17:27
Jak zainstalować adapter wifi, mam plik ze sterownikami ale nie wiem jak go zainstalować? Plik nazywa się tak.
Używałem poleceń typu bunzip2 znalezionych na Debian wiki ale to nie zadziałało, mam też płytkę ze sterownikami pod Linuksa z plikiem *.sh, ale po próbie instalacji w terminalu typu sh + lokalizacja nie poskutkowało. Z poleceniami typu modprobe też próbowałem, według jakiejś instrukcji ale nie daję rady. Tak też zapytam, czy muszę aktualizować jądro systemowe? Jeśli w nazwie pliku jest taki zapis "linux_v2.6.6"
Jestem chyba na dobrej drodze, ale stanąłem w martwym punkcie. Proszę o analizę i pomoc.
Znalazłem jakąś instrukcje po angielsku jesli ktoś mógłby ją przetłumaczyć.
Kod: Zaznacz cały
rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401.tar.gz
Kod: Zaznacz cały
czacha777@debian:~$ lsusbBus 002 Device 009: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
Bus 002 Device 003: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 002 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Kod: Zaznacz cały
2.6.32-5-amd64
Kod: Zaznacz cały
czacha777@debian:~$ suHasło:
root@debian:/home/czacha777# su
root@debian:/home/czacha777# chmod +x sh '/home/czacha777/Pulpit/Linux/install.sh'
chmod: nie ma dostępu do `sh': Nie ma takiego pliku ani katalogu
root@debian:/home/czacha777# chmod +x sh '/home/czacha777/Pulpit/Linux/driver/rtl8192CU_linux_v2.0.1170.20101112.tar.gz'
chmod: nie ma dostępu do `sh': Nie ma takiego pliku ani katalogu
root@debian:/home/czacha777# cd /home/oem
bash: cd: /home/oem: Nie ma takiego pliku ani katalogu
root@debian:/home/czacha777# cd /home
root@debian:/home# dc /linux/driver
dc: Could not open file /linux/driver
root@debian:/home# cd /linux/driver
bash: cd: /linux/driver: Nie ma takiego pliku ani katalogu
root@debian:/home# tar -xvjf rtl8192CU_linux_v2.0.1170.20101112.tar.gz
tar (child): rtl8192CU_linux_v2.0.1170.20101112.tar.gz: Nie można open: Nie ma takiego pliku ani katalogu
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@debian:/home# tar -xvzf '/home/czacha777/rtl8192CU_linux_v2.0.1170.20101112.tar.gz'
rtl8192CU_linux_v2.0.1170.20101112/
rtl8192CU_linux_v2.0.1170.20101112/autoconf_rtl8192c_usb_linux.h
rtl8192CU_linux_v2.0.1170.20101112/clean
rtl8192CU_linux_v2.0.1170.20101112/core/
rtl8192CU_linux_v2.0.1170.20101112/core/efuse/
rtl8192CU_linux_v2.0.1170.20101112/core/efuse/rtl8712_efuse.c
rtl8192CU_linux_v2.0.1170.20101112/core/ieee80211.c
rtl8192CU_linux_v2.0.1170.20101112/core/led/
rtl8192CU_linux_v2.0.1170.20101112/core/led/rtl8192c_led.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_cmd.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_debug.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_eeprom.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_io.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_ioctl_query.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_ioctl_rtl.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_ioctl_set.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_mlme.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_mlme_ext.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_mp.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_mp_ioctl.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_pwrctrl.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_recv.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_rf.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_security.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_sta_mgt.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_wlan_util.c
rtl8192CU_linux_v2.0.1170.20101112/core/rtw_xmit.c
rtl8192CU_linux_v2.0.1170.20101112/hal/
rtl8192CU_linux_v2.0.1170.20101112/hal/hal_init.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/rtl8192c_dm.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/rtl8192c_phycfg.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/rtl8192c_rf6052.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/rtl8192c_rxdesc.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/Hal8192CUHWImg.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/rtl8192cu_recv.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/rtl8192cu_xmit.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/rtl8192c_cmd.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/usb_halinit.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/usb_ops_ce.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/usb_ops_linux.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c/usb/usb_ops_xp.c
rtl8192CU_linux_v2.0.1170.20101112/hal/rtl8192c_d_hal_init.c
rtl8192CU_linux_v2.0.1170.20101112/ifcfg-wlan0
rtl8192CU_linux_v2.0.1170.20101112/include/
rtl8192CU_linux_v2.0.1170.20101112/include/autoconf.h
rtl8192CU_linux_v2.0.1170.20101112/include/basic_types.h
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/big_endian.h
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/generic.h
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/little_endian.h
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/swab.h
rtl8192CU_linux_v2.0.1170.20101112/include/byteorder/swabb.h
rtl8192CU_linux_v2.0.1170.20101112/include/circ_buf.h
rtl8192CU_linux_v2.0.1170.20101112/include/cmd_osdep.h
rtl8192CU_linux_v2.0.1170.20101112/include/drv_conf.h
rtl8192CU_linux_v2.0.1170.20101112/include/drv_types.h
rtl8192CU_linux_v2.0.1170.20101112/include/drv_types_ce.h
rtl8192CU_linux_v2.0.1170.20101112/include/drv_types_linux.h
rtl8192CU_linux_v2.0.1170.20101112/include/drv_types_xp.h
rtl8192CU_linux_v2.0.1170.20101112/include/ethernet.h
rtl8192CU_linux_v2.0.1170.20101112/include/farray.h
rtl8192CU_linux_v2.0.1170.20101112/include/h2clbk.h
rtl8192CU_linux_v2.0.1170.20101112/include/Hal8192CPhyCfg.h
rtl8192CU_linux_v2.0.1170.20101112/include/Hal8192CPhyReg.h
rtl8192CU_linux_v2.0.1170.20101112/include/Hal8192CUHWImg.h
rtl8192CU_linux_v2.0.1170.20101112/include/HalRf.h
rtl8192CU_linux_v2.0.1170.20101112/include/hal_init.h
rtl8192CU_linux_v2.0.1170.20101112/include/ieee80211.h
rtl8192CU_linux_v2.0.1170.20101112/include/ieee80211_ext.h
rtl8192CU_linux_v2.0.1170.20101112/include/if_ether.h
rtl8192CU_linux_v2.0.1170.20101112/include/ip.h
rtl8192CU_linux_v2.0.1170.20101112/include/mlme_osdep.h
rtl8192CU_linux_v2.0.1170.20101112/include/mp_custom_oid.h
rtl8192CU_linux_v2.0.1170.20101112/include/nic_spec.h
rtl8192CU_linux_v2.0.1170.20101112/include/osdep_ce_service.h
rtl8192CU_linux_v2.0.1170.20101112/include/osdep_intf.h
rtl8192CU_linux_v2.0.1170.20101112/include/osdep_service.h
rtl8192CU_linux_v2.0.1170.20101112/include/recv_osdep.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_cmd.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_dm.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_event.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_hal.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_recv.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_spec.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8192c_xmit.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_bitdef.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_cmd.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_efuse.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_event.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_hal.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_recv.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_regdef.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_rf.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_spec.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtl8712_xmit.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_byteorder.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_cmd.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_debug.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_eeprom.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_event.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_ht.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_io.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_ioctl.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_ioctl_query.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_ioctl_rtl.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_ioctl_set.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_led.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_mlme.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_mlme_ext.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_mp.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_mp_ioctl.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_mp_phy_regdef.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_pwrctrl.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_qos.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_recv.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_rf.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_security.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_version.h
rtl8192CU_linux_v2.0.1170.20101112/include/rtw_xmit.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_hal.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_ops.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_ops_ce.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_ops_linux.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_ops_xp.h
rtl8192CU_linux_v2.0.1170.20101112/include/sdio_osintf.h
rtl8192CU_linux_v2.0.1170.20101112/include/sta_info.h
rtl8192CU_linux_v2.0.1170.20101112/include/usb_hal.h
rtl8192CU_linux_v2.0.1170.20101112/include/usb_ops.h
rtl8192CU_linux_v2.0.1170.20101112/include/usb_osintf.h
rtl8192CU_linux_v2.0.1170.20101112/include/usb_vendor_req.h
rtl8192CU_linux_v2.0.1170.20101112/include/version.h
rtl8192CU_linux_v2.0.1170.20101112/include/wifi.h
rtl8192CU_linux_v2.0.1170.20101112/include/wlan_bssdef.h
rtl8192CU_linux_v2.0.1170.20101112/include/xmit_osdep.h
rtl8192CU_linux_v2.0.1170.20101112/Makefile
rtl8192CU_linux_v2.0.1170.20101112/os_dep/
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/ioctl_linux.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/mlme_linux.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/os_intfs.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/recv_linux.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/sdio_intf.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/usb_intf.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/linux/xmit_linux.c
rtl8192CU_linux_v2.0.1170.20101112/os_dep/osdep_service.c
rtl8192CU_linux_v2.0.1170.20101112/runwpa
rtl8192CU_linux_v2.0.1170.20101112/wlan0dhcp
rtl8192CU_linux_v2.0.1170.20101112/wpa1.conf
root@debian:/home# ./configure
bash: ./configure: Nie ma takiego pliku ani katalogu
root@debian:/home# ./configure
bash: ./configure: Nie ma takiego pliku ani katalogu
root@debian:/home# make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
root@debian:/home# sudo make install
make: *** Brak reguł do wykonania obiektu `install'. Stop.
root@debian:/home# make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
root@debian:/home# cd /file:///home/czacha777/rtl8192u_linux_2.6.0006.1031.2008
bash: cd: /file:///home/czacha777/rtl8192u_linux_2.6.0006.1031.2008: Nie ma takiego pliku ani katalogu
root@debian:/home# cd /czacha777/rtl8192u_linux_2.6.0006.1031.2008 bash: cd: /czacha777/rtl8192u_linux_2.6.0006.1031.2008: Nie ma takiego pliku ani katalogu
root@debian:/home# cd /rtl8192u_linux_2.6.0006.1031.2008
bash: cd: /rtl8192u_linux_2.6.0006.1031.2008: Nie ma takiego pliku ani katalogu
root@debian:/home# cd '/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008'
root@debian:/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008# ./configure
bash: ./configure: Nie ma takiego pliku ani katalogu
root@debian:/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008# make
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.32-5-amd64'
CC [M] /home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_rx.o
CC [M] /home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_softmac.o
CC [M] /home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_tx.o
CC [M] /home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_wx.o
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_wx.c: In function ‘ieee80211_wx_get_encode_ext_rsl’:
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_wx.c:846: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_wx.c: In function ‘ieee80211_wx_set_gen_ie_rsl’:
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_wx.c:990: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’
CC [M] /home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.o
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.c: In function ‘alloc_ieee80211_rsl’:
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.c:121: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.c: In function ‘store_debug_level’:
/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.c:308: warning: comparison of distinct pointer types lacks a cast
make[4]: *** [/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_module.o] Błąd 1
make[3]: *** [_module_/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008/ieee80211] Błąd 2
make[2]: *** [sub-make] Błąd 2
make[1]: *** [all] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [all] Błąd 2
root@debian:/home/czacha777/rtl8192u_linux_2.6.0006.1031.2008# sudo make install
Kod: Zaznacz cały
=============================================================================== Software Package - Component
===============================================================================
1. ReleaseNotes.doc
2. document/
3. driver source code
3.1 Makefile - to build the modules
3.2 Script and configuration for DHCP:
"wlan0dhcp"
"ifcfg-wlan0"
3.3 Example of supplicant configuration file:
"wpa1.conf"
3.4 Script to run wpa_supplicant
"runwpa"
3.5 Script to clean relative modules
"clean"
4. wpa_supplicant/wpa_supplicant-0.6.9_wps_patch_20100201.zip
The tool help the wlan network to communicate under the
protection of WPAPSK mechanism (WPA/WPA2) and add WPS patch
5. install.sh
Script to easy make 8192cu driver.
==================================================================================================================
User Guide(1) - connecting wireless networking using "Network Manager" GUI utility (For PC Linux)
==================================================================================================================
(1) Network Manager is a utility attempts to make use of wireless networking easy.
(2) Notes: if you want to use the following command-line method to connect wireless networking,
please disable the "Network Manager", because "Network Manager" will conflict with method of command line .
==================================================================================================================
User Guide(2) - Using the wpa_cli & wpa_supplicant tools (For embedded Linux)
==================================================================================================================
Please refer to the document/wpa_cli_with_wpa_supplicant_20091227.doc
==================================================================================================================
User Guide(3) - Set wireless lan MIBs in Command Line (Legacy command - Not recommend)
==================================================================================================================
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.
Current driver supports "iwlist" to show the device status of nic
iwlist wlan0 [parameters]
where
parameter explaination [parameters]
----------------------- -------------
Show available chan and freq freq / channel
Show and Scan BSS and IBSS scan[ning]
Show supported bit-rate rate / bit[rate]
For example:
iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate
Driver also supports "iwconfig", manipulate driver private ioctls, to set
MIBs.
iwconfig wlan0 [parameters] [val]
where
parameter explaination [parameters] [val] constraints
----------------------- ------------- ------------------
Connect to AP by address ap [mac_addr]
Set the essid, join (I)BSS essid [essid]
Set operation mode mode {Managed|Ad-hoc}
Set keys and security mode key/enc[ryption] {N|open|restricted|off}
For example:
iwconfig wlan0 essid "ap_name"
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 essid "name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789
Note: Better to set these MIBS without GUI such as NetworkManager and be sure that our
nic has been brought up before these settings. WEP key index 2-4 is not supportted by
NetworkManager.
===============================================================================
Getting IP address (For User Guide(2) & User Guide(3))
===============================================================================
After start up the nic and connect to AP successfully, the network needs to obtain an IP address
before transmit/receive data.
This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS"
command, or using DHCP.
If using DHCP, setting steps is as below:
(1)check if the WiFi had connected to an AP via "iwconfig" command
$> iwconfig
(2)run the script which run the dhclient
$> ./wlan0dhcp
or
dhcpcd wlan0
(Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, use
dhcpcd -HD wlan0)
===============================================================================
WPAPSK/WPA2PSK - using wpa_supplicant (For User Guide(3))
===============================================================================
Wpa_supplicant helps to secure wireless connection with the protection of
WPAPSK/WPA2PSK mechanism. Please refer to the document/wpa_cli_with_wpa_supplicant_20091227.doc
===============================================================================
WPS - PIN & PBC methods
===============================================================================
(*) Please refer to the document/wpa_cli_with_wpa_supplicant_20091227.doc
===============================================================================
Power Saving Mode
===============================================================================
(*) Please refer to the document/HowTo enable the power saving functionality.doc