Linux centos7操作系统 VMware虚拟机安装水星免驱USB网卡8188gu记录_centos 安装无线8188gu

found USB ID 1d6b:0001
Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration …
Current configuration number is 1
Use interface number 0
with class 8
Use endpoints 0x0b (out) and 0x8a (in)

USB description data (for identification)

Manufacturer: Realtek
Product: DISK
Serial No.: not provided

Sending standard EJECT sequence
Looking for active drivers …
OK, driver detached
Set up interface 0
Use endpoint 0x0b for message sending …
Trying to send message 1 to endpoint 0x0b …
OK, message successfully sent
Read the response to message 1 (CSW) …
Response successfully read (13 bytes), status 1
Trying to send message 2 to endpoint 0x0b …
OK, message successfully sent
Read the response to message 2 (CSW) …
Response reading failed (error -8)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

2,

安装gcc9:

[root@centos10 11]# tar xvf gcc-9.tar

[root@centos10 11]# mkdir /opt/rh
[root@centos10 11]# mv devtoolset-9/ /opt/rh/
[root@centos10 11]# source /opt/rh/devtoolset-9/enable
[root@centos10 11]# echo “source /opt/rh/devtoolset-9/enable” >>/etc/profile
[root@centos10 11]# source /etc/profile

验证gcc是否安装成功:

[root@centos10 11]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
Target: x86_64-redhat-linux
Configured with: …/configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-9/root/usr --mandir=/opt/rh/devtoolset-9/root/usr/share/man --infodir=/opt/rh/devtoolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.3.1-20200408/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)

3,

编译的环境依赖安装:

因为我前面编译过,因此,清除了上次的编译,主要是安装bc 和gcc-c++

[root@centos10 rtl8188gu-master]# yum install unzip gcc-c++ bc -y

[root@centos10 rtl8188gu-master]# make clean
#make -C /lib/modules/5.4.266-1.el7.elrepo.x86_64/build M=/root/11/rtl8188gu-master clean
cd hal ; rm -fr ///.mod.c ///.mod ///.o ///.o.* ///..cmd ///.ko
cd hal ; rm -fr //.mod.c //.mod //.o //.o.* //..cmd //.ko
cd hal ; rm -fr /.mod.c /.mod /.o /.o.* /..cmd /.ko
cd hal ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
cd core ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
cd platform ; rm -fr *.mod.c *.mod .o .o. ..cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod .o .o. ..cmd *.ko *~
rm -fr .tmp_versions
rm -fr .cache.mk

4,

开始编译:

预编译,完成后 echo $?  看看是不是正常完成:

[root@centos10 rtl8188gu-master]# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.266-1.el7.elrepo.x86_64/build M=/root/11/rtl8188gu-master modules
make[1]: Entering directory /usr/src/kernels/5.4.266-1.el7.elrepo.x86_64' CC [M] /root/11/rtl8188gu-master/core/rtw_cmd.o CC [M] /root/11/rtl8188gu-master/core/rtw_security.o CC [M] /root/11/rtl8188gu-master/core/rtw_debug.o CC [M] /root/11/rtl8188gu-master/core/rtw_io.o CC [M] /root/11/rtl8188gu-master/core/rtw_ioctl_query.o CC [M] /root/11/rtl8188gu-master/core/rtw_ioctl_set.o CC [M] /root/11/rtl8188gu-master/core/rtw_ieee80211.o CC [M] /root/11/rtl8188gu-master/core/rtw_mlme.o CC [M] /root/11/rtl8188gu-master/core/rtw_mlme_ext.o CC [M] /root/11/rtl8188gu-master/core/rtw_mi.o CC [M] /root/11/rtl8188gu-master/core/rtw_wlan_util.o CC [M] /root/11/rtl8188gu-master/core/rtw_vht.o CC [M] /root/11/rtl8188gu-master/core/rtw_pwrctrl.o CC [M] /root/11/rtl8188gu-master/core/rtw_rf.o CC [M] /root/11/rtl8188gu-master/core/rtw_recv.o CC [M] /root/11/rtl8188gu-master/core/rtw_sta_mgt.o CC [M] /root/11/rtl8188gu-master/core/rtw_ap.o CC [M] /root/11/rtl8188gu-master/core/rtw_xmit.o CC [M] /root/11/rtl8188gu-master/core/rtw_p2p.o CC [M] /root/11/rtl8188gu-master/core/rtw_rson.o CC [M] /root/11/rtl8188gu-master/core/rtw_tdls.o CC [M] /root/11/rtl8188gu-master/core/rtw_br_ext.o CC [M] /root/11/rtl8188gu-master/core/rtw_iol.o CC [M] /root/11/rtl8188gu-master/core/rtw_sreset.o CC [M] /root/11/rtl8188gu-master/core/rtw_btcoex_wifionly.o CC [M] /root/11/rtl8188gu-master/core/rtw_btcoex.o CC [M] /root/11/rtl8188gu-master/core/rtw_beamforming.o CC [M] /root/11/rtl8188gu-master/core/rtw_odm.o CC [M] /root/11/rtl8188gu-master/core/efuse/rtw_efuse.o CC [M] /root/11/rtl8188gu-master/os_dep/osdep_service.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/os_intfs.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/usb_intf.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/usb_ops_linux.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/ioctl_linux.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/xmit_linux.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/mlme_linux.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/recv_linux.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/ioctl_cfg80211.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/rtw_cfgvendor.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/wifi_regd.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/rtw_android.o CC [M] /root/11/rtl8188gu-master/os_dep/linux/rtw_proc.o CC [M] /root/11/rtl8188gu-master/hal/hal_intf.o CC [M] /root/11/rtl8188gu-master/hal/hal_com.o CC [M] /root/11/rtl8188gu-master/hal/hal_com_phycfg.

  • 8
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值