開發環境:linux
內核版本 | 2.6.18 |
網 卡 | rtl8192cu |
做 者 | fulinux |
個人網卡插上rehat虛擬機時,usb總線探測到了這個設備:android
Bus 001 Device 008: ID 0bda:8178 Realtek Semiconductor Corp.
網絡
在官方網站下載它的設備驅動文件:less
資源連接ide
將下載下來的資源放到linux目錄下,加壓後咱們進入目錄,打開readme.txt文件,看到:工具
2. document/
2.1 Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
網站
打開這個文件,按照上面的操做便可。ui
運行install.sh腳本:spa
[root@localhost ~]# cd /disk3/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/
[root@localhost RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911]# ls
android_ref_codes_JB_4.1 android_reference_codes_ICS_nl80211 hardware_wps_pbc ReleaseNotes.pdf wpa_supplicant_hostapd
android_ref_codes_JB_4.2 document install.sh WiFi_Direct_User_Interface
android_reference_codes driver readme.txt wireless_tools
[root@localhost RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911]# ./install.sh
code
若是執行腳本編譯時有問題,多是你的版本過低,或者有重複定義時,按照提示,修改相應的文件,把重複定義的內容註銷掉,同時把install.sh腳本中解壓文件的一項屏蔽掉:
################################################################################
# Decompress the driver source tal ball
################################################################################
cd driver
Drvfoulder=`ls |grep .tar.gz`
echo "Decompress the driver source tar ball:"
echo " "$Drvfoulder
#by fulinux add
#tar zxvf $Drvfoulder
編譯t經過後:
dmesg:
NON USB_SPEED_HIGH
CHIP TYPE: RTL8188C_8192C
Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
RF_Type is 2!!
EEPROM type is E-FUSE
====> ReadAdapterInfo8192C
Boot from EFUSE, Autoload OK !
EEPROMVID = 0x0bda
EEPROMPID = 0x8178
EEPROMCustomerID : 0x00
EEPROMSubCustomerID: 0x00
RT_CustomerID: 0x00
_ReadMACAddress MAC Address from EFUSE = 00:0f:13:91:01:d3
EEPROMRegulatory = 0x0
_ReadBoardType(0)
BT Coexistance = disable
mlmepriv.ChannelPlan = 0x0a
_ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
### PS params=> power_mgnt(1),usbss_enable(0) ###
### AntDivCfg(0)
readAdapterInfo_8192CU(): REPLACEMENT = 1
<==== ReadAdapterInfo8192C in 1794 ms
rtw_macaddr_cfg MAC Address = 00:0f:13:91:01:d3
bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
_rtw_drv_register_netdev, MAC Address (if1) = 00:0f:13:91:01:d3
usbcore: registered new driver rtl8192cu
[root@localhost RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:2347 B Fragment thr:2346 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
添加了wlan0設備。使用相應的網絡管理工具來登錄wifi.