少尉
- 注册时间
- 2008-5-23
- 金币
- 231 个
- 威望
- 0 个
- 荣誉
- 0 个
累计签到:11 天 连续签到:0 天 [LV.20]漫游旅程
|
发表于 2013-11-6 22:09
1、使用root账户登录,将下载的驱动程序解压到某临时目录下;
2、在终端下进入驱动的文件夹,然后执行“make”;
3、执行“.clean”;
4、执行“insmod 8192cu.ko”,完成。
附整个操作步骤的终端命令如下:
注:我的驱动程序解压在/mnt目录下,红色字体为输入的命令。
root@ubuntu:/# cd /mnt
root@ubuntu:/mnt# ls -l
总计 4
drwxr-xr-x 5 administrator administrator 4096 2010-08-04 15:46 RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803
root@ubuntu:/mnt# cd RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803# ls
document driver readme.txt ReleaseNotes.doc wpa_supplicant
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803# cd driver
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver# ls -l
总计 592
-rw-r--r-- 1 administrator administrator 604787 2010-08-04 15:21 rtl8192CU_linux_v2.0.974.20100803.tar.gz
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver# ls
rtl8192CU_linux_v2.0.974.20100803 rtl8192CU_linux_v2.0.974.20100803.tar.gz
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver# cd rtl8192CU_linux_v2.0.974.20100803/
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# ls
autoconf_rtl8192c_usb_linux.h clean core hal ifcfg-wlan0 include Makefile os_dep runwpa wlan0dhcp wpa1.conf
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.35-27-generic/build M=/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803 modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-27-generic'
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_cmd.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_security.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_debug.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_io.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_ioctl_query.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_ioctl_set.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/ieee80211.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_mlme.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_mlme_ext.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_wlan_util.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_pwrctrl.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_rf.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_recv.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_sta_mgt.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/rtw_xmit.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/efuse/rtl8712_efuse.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/core/led/rtl8192c_led.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/hal_init.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c_d_hal_init.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/rtl8192c_phycfg.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/rtl8192c_rf6052.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/rtl8192c_dm.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/rtl8192c_rxdesc.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/usb_ops_linux.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/usb_halinit.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/Hal8192CUHWImg.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/rtl8192cu_xmit.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/rtl8192cu_recv.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/hal/rtl8192c/usb/rtl8192c_cmd.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/osdep_service.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/os_intfs.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/usb_intf.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/ioctl_linux.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/xmit_linux.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/mlme_linux.o
CC [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/os_dep/linux/recv_linux.o
LD [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/8192cu.o
Building modules, stage 2.
MODPOST 1 modules
CC /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/8192cu.mod.o
LD [M] /mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803/8192cu.ko
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-27-generic'
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# ./clean
ERROR: Module r8192s_usb does not exist in /proc/modules
ERROR: Module ieee80211_rsl does not exist in /proc/modules
ERROR: Module ieee80211_crypt_ccmp does not exist in /proc/modules
ERROR: Module ieee80211_crypt_tkip does not exist in /proc/modules
ERROR: Module ieee80211_crypt_wep does not exist in /proc/modules
ERROR: Module ieee80211_crypt does not exist in /proc/modules
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# ls -l
总计 696
-rw-r--r-- 1 root root 320090 2011-03-11 15:35 8192cu.ko
-rw-r--r-- 1 root root 4597 2011-03-11 15:35 8192cu.mod.c
-rw-r--r-- 1 root root 9076 2011-03-11 15:35 8192cu.mod.o
-rw-r--r-- 1 root root 311655 2011-03-11 15:35 8192cu.o
-rwx------ 1 administrator administrator 2240 2010-08-03 17:31 autoconf_rtl8192c_usb_linux.h
-rwx------ 1 administrator administrator 151 2010-08-03 17:31 clean
drwxrwxrwx 4 administrator administrator 4096 2011-03-11 15:34 core
drwxrwxrwx 3 administrator administrator 4096 2011-03-11 15:34 hal
-rwx------ 1 administrator administrator 54 2010-08-03 17:31 ifcfg-wlan0
drwxrwxrwx 3 administrator administrator 4096 2010-08-03 17:31 include
-rwx------ 1 administrator administrator 6679 2010-08-03 17:31 Makefile
-rw-r--r-- 1 root root 116 2011-03-11 15:35 modules.order
-rw-r--r-- 1 root root 0 2011-03-11 15:35 Module.symvers
drwxrwxrwx 3 administrator administrator 4096 2011-03-11 15:34 os_dep
-rwx------ 1 administrator administrator 423 2010-08-03 17:31 runwpa
-rwx------ 1 administrator administrator 294 2010-08-03 17:31 wlan0dhcp
-rwx------ 1 administrator administrator 338 2010-08-03 17:31 wpa1.conf
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# insmod 8192cu.ko
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# ^C
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# ifconfig
eth0 Link encap:以太网 硬件地址 00:03:0d:5d:b1:d6
inet 地址:192.168.168.22 广播:192.168.168.255 掩码:255.255.255.0
inet6 地址: fe80::203:dff:fe5d:b1d6/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:63054 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:52996 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:54772336 (54.7 MB) 发送字节:10255263 (10.2 MB)
中断:16 基本地址:0x2000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:1187 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1187 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:203776 (203.7 KB) 发送字节:203776 (203.7 KB)
wlan0 Link encap:以太网 硬件地址 00:d0:41:c4:f8:68
inet 地址:192.168.168.21 广播:192.168.168.255 掩码:255.255.255.0
inet6 地址: fe80::2d0:41ff:fec4:f868/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1492 跃点数:1
接收数据包:149 错误:0 丢弃:1824 过载:0 帧数:0
发送数据包:32 错误:0 丢弃:2 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:17275 (17.2 KB) 发送字节:8370 (8.3 KB)
root@ubuntu:/mnt/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.974.20100803/driver/rtl8192CU_linux_v2.0.974.20100803# exit
注销
administrator@ubuntu:~$ ^C
administrator@ubuntu:~$
|
|