开发环境:
内核版本 | 2.6.18 |
网 卡 | rtl8192cu |
作 者 | fulinux |
我的网卡插上rehat虚拟机时,usb总线探测到了这个设备:
Bus 001 Device 008: ID 0bda:8178 Realtek Semiconductor Corp.
在官方网站下载它的设备驱动文件:
资源链接
将下载下来的资源放到linux目录下,加压后我们进入目录,打开readme.txt文件,看到:
2. document/
2.1 Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
打开这个文件,按照上面的操作即可。
运行install.sh脚本:
[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
如果执行脚本编译时有问题,可能是你的版本太低,或者有重复定义时,按照提示,修改相应的文件,把重复定义的内容注销掉,同时把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.