• 在Fedora 16 linux下安装USB无线网卡驱动rtl88x2bu


    在Fedora 16 linux下安装USB无线网卡驱动88x2bu
    USB无线网卡翼联EP-AC1610兼容linux系统
    我之前已经买了一个USB无线网卡是水星mw150us,但是没有linux驱动下载,不能在linux下使用,特意在网上搜索许多品牌的USB无线网卡,终于找到翼联品牌有几个型号是有linux驱动并支持linux的,是linux用户的福音,希望这篇文章给遇到同样问题的linux用户带来帮助,并不是为翼联企业打广告,我可没有收到广告报酬
    在这里插入图片描述

    台式机电脑系统为Fedora 16 linux
    [amd641@localhost ~]$ uname -r
    3.1.0-7.fc16.i686.PAE
    [amd641@localhost ~]$ uname -a
    Linux localhost.localdomain 3.1.0-7.fc16.i686.PAE #1 SMP Tue Nov 1 20:53:45 UTC 2011 i686 i686 i386 GNU/Linux
    [amd641@localhost ~]$ cat /etc/fedora-release
    Fedora release 16 (Verne)
    [amd641@localhost ~]$ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 003: ID 174c:55aa ASMedia Technology Inc.
    Bus 004 Device 002: ID 1a2c:0e24
    Bus 004 Device 003: ID 2188:0ae1
    Bus 002 Device 002: ID 0bda:b812 Realtek Semiconductor Corp. 能够识别USB无线网卡硬件
    系统为fedora 16 linux,内核版本为3.1.0
    购买翼联USB无线网卡附带一个光盘,将光盘的所有内容复制到D盘
    [amd641@localhost sda5]$ cd EP-AC1610/
    [amd641@localhost EP-AC1610]$ ls
    Linux 光盘内容中有一个名为Linux的文件夹
    Mac(10.6–10.14)
    RTLWlanU_WindowsDriver_1030.25.0701.2017_DUA_Drv_3.00.0019.L
    [amd641@localhost EP-AC1610]$ cd Linux/
    [amd641@localhost Linux]$ ls
    00008446-RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-44.zip 解压这个文件
    [amd641@localhost Linux]$ unzip 00008446-RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-44.zip
    [amd641@localhost Linux]$ ls
    RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613.20170427_TV_ANDROID_6.x_COEX_8822BS-C4242_8822BU-C4242(r1)/ 因为名字太长,改为简短名字RTL8812BU
    [amd641@localhost Linux]$ mv RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613.20170427_TV_ANDROID_6.x_COEX_8822BS-C4242_8822BU-C4242(r1)/ RTL8812BU
    [amd641@localhost Linux]$ cd RTL8812BU/
    [amd641@localhost RTL8812BU]$ ls
    20170427_TV_ANDROID_6.x_COEX_8822BS-C4242_8822BU-C4242(r1).rar
    RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613.zip 解压这个文件
    [amd641@localhost RTL8812BU]$ unzip RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613.zip
    [amd641@localhost RTL8812BU]$ ls
    20170427_TV_ANDROID_6.x_COEX_8822BS-C4242_8822BU-C4242(r1).rar
    RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613.zip
    RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613 因为名字太长,改为简短名字RTL8812BU2
    [amd641@localhost RTL8812BU]$ mv RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613 RTL8812BU2
    [amd641@localhost RTL8812BU]$ cd RTL8812BU2/
    [amd641@localhost RTL8812BU2]$ ls
    android_ref_codes_JB_4.2 btcoex readme.txt
    android_ref_codes_KK_4.4 document ReleaseNotes.pdf
    android_ref_codes_L_5.x driver WiFi_Direct_User_Interface
    android_ref_codes_M_6.x install.sh wireless_tools
    android_ref_codes_N_7.0 mp_tools wpa_supplicant_hostapd
    [amd641@localhost RTL8812BU2]$ 切换root用户
    [amd641@localhost RTL8812BU2]$ su 输入root密码

    [root@localhost RTL8812BU2]$ rpm -ivh /mnt/iso/Packages/kernel-PAE-devel-3.1.0-7.fc16.i686.rpm
    在fedora116安装DVD镜像文件中有kernel-PAE-devel-3.1.0-7.fc16.i686.rpm文件

    [root@localhost RTL8812BU2]# chmod a+x install.sh 为install.sh加上执行权限由白色变为绿色
    [root@localhost RTL8812BU2]# ./install.sh

    /root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.c: 在函数‘rtw_cfg80211_indicate_sta_assoc’中:
    /root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.c:3503:18: 错误:‘STATION_INFO_ASSOC_REQ_IES’未声明(在此函数内第一次使用)
    /root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.c:3503:18: 附注:每个未声明的标识符在其出现的函数内只报告一次
    /root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.c:3504:8: 错误:‘struct station_info’没有名为‘assoc_req_ies’的成员
    /root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.c:3505:8: 错误:‘struct station_info’没有名为‘assoc_req_ies_len’的成员
    make[2]: *** [/root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/os_dep/linux/ioctl_cfg80211.o] 错误 1
    make[1]: *** [module/root/RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444] 错误 2
    make[1]: 离开目录“/usr/src/kernels/3.1.0-7.fc16.i686.PAE”
    make: *** [modules] 错误 2
    ##################################################
    Compile make driver error: 2
    Please check error Mesg
    ##################################################
    [root@localhost RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613]#

    参考这篇文章《解决WiFi固件编译错误:STATION_INFO_ASSOC_REQ_IES》
    https://blog.csdn.net/weiwei_xiaoyu/article/details/71775094

    [root@localhost RTL88x2BU_WiFi_linux_v5.2.4.1_22719_COEX20170518-4444.20170613]# vim /usr/src/kernels/3.1.0-7.fc16.i686.PAE/include/net/cfg80211.c
    注意是修改cfg80211.c而不是cfg80211.h

    enum station_info_flags {
    …在447行增加以下内容
    447 STATION_INFO_CONNECTED_TIME = 1<<16,
    448 STATION_INFO_ASSOC_REQ_IES = 1<<17
    };

    struct station_info {
    …在561行增加以下内容
    561 int generation;
    562 const u8 *assoc_req_ies;
    563 size_t assoc_req_ies_len;
    };

    再试安装
    [root@localhost RTL8812BU2]# ./install.sh

    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8812a2ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8821a1ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8821a2ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8703b1ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8723d1ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8723d2ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8822b1ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8822b2ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8821c1ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/hal/btc/halbtc8821c2ant.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/platform/platform_ops.o
    CC [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/core/rtw_mp.o
    LD [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/88x2bu.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/88x2bu.mod.o
    LD [M] /home/amd641/RTL8812BU/RTL8812BU2/driver/rtl88x2BU_WiFi_linux_v5.2.4.1_22719.20170613_COEX20170518-4444/88x2bu.ko
    make[1]: 离开目录“/usr/src/kernels/3.1.0-7.fc16.i686.PAE”
    ##################################################
    Compile make driver ok!!
    ##################################################
    Authentication requested [root] for install driver:
    install -p -m 644 88x2bu.ko /lib/modules/3.1.0-7.fc16.i686.PAE/kernel/drivers/net/wireless/
    /sbin/depmod -a 3.1.0-7.fc16.i686.PAE
    Authentication requested [root] for remove driver:
    Authentication requested [root] for insert driver:
    ##################################################
    The Setup Script is completed !
    ##################################################
    自动编译出驱动模块88x2bu.ko并复制到系统中,重启电脑,在windows 7系统下USB无线网卡指示灯闪烁,在linux下就不亮了
    在这里插入图片描述

    Fedora 16 Linux是2011-11-08发布的很旧了,古董级别了,对于现今的最新linux系统需要最新的无线网卡驱动程序源代码
    https://github.com/morrownr/88x2bu-20210702
    最新版本号是v5.13.1

  • 相关阅读:
    如何通过AI视频智能分析技术,构建着装规范检测/工装穿戴检测系统?
    windows操作系统部署Moodle3.9修改大文件上传限制
    python简单制作whl安装包
    预览PDF并显示当前页数
    网站劫持常见方法
    设置线程分离的方法
    本机使用python操作hdfs搭建及常见问题
    数学基础(四)极大似然估计、误差的高斯分布与最小二乘估计的等价性
    java ffmpeg获取视频时长
    mysql指令
  • 原文地址:https://blog.csdn.net/weixin_42145772/article/details/126294832