在Linux下使用“360随身WiFi 2”

某人说“360随身WiFi”价格还算良心,我也认同。昨天无意中看到2代开售,就随手撸了一个。当然,为了免邮费,不得不买了点别的东西凑单,于是还买了本价格是这个“360随身WiFi 2”近两倍《C语言点滴》回来看看。

到货,插到电脑上,Linux下没反应。Ralink的无线网卡系统不自带驱动我不惊呆,于是lsusb看了下。

Bus 001 Device 006: ID 148f:760b Ralink Technology, Corp.

好嘛,二代换芯片了,原来是RT5370的,现在换成不认识的了。不怕,把148f:760b放狗搜一下。不过搜完了就怕了,因为结果是0个。

打算先用Windows确认一下设备是好的,结果装了360官网的驱动后发现设备完全识别不出来……这可真是个大乌龙。到360官网的歪粉交流论坛上看看,有类似问题的看来不是个案。换了论坛上公布的新版本的驱动后Windows下工作正常。(截止我写这篇文章的时候,官网上的驱动已经更新成新的了,文件大小为10797000字节,论坛上讨论说设备识别不出来的那些贴子貌似也都直接消失了。)

继续回到Linux下折腾,可是不知道芯片是什么还是为难。从Ralink网站(现在叫Mediatek)上瞎找了几个Linux驱动,里面也没有符合760b这个idProduct的,抓瞎。

用百度搜了一下148f:760b,结果找到了360论坛上一篇新觧出炉的贴子,确认了芯片是MT7601。

剩下的事就简单了,在Ralink网站下载MT7601的Linux驱动,修改common/rtusb_dev_id.c文件,在

{USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */

下面加一行

{USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi */

按照README_STA_usb中的说明make和make install。然后modprobe一下mt7601Usta.ko这个内核模块,后面的事就妥妥的了。

还有个遗留问题,连不上WPA2 Enterprise的无线网络,暂时不管了,我对这个需求不强烈。

啥?这文章只说了怎么驱动这个网卡没说怎么在Linux实现AP的功能?哦,我本来也没打算用它在Linux下做AP来着。有兴趣的话可以试试hostapd/dnsmasq/iptables这老三样吧,我不知道能不能行,如果哪位朋友弄成了麻烦汇报一下,我很想学习学习,多谢了~

2013-10-12更新:MT7601的Linux驱动中似乎没有实现nl80211的接口,所以hostapd没法直接用。不知道还有什么办法能实现AP的功能,如有朋友知道,希望能不吝指教。

2014-08-12更新:留言区中的轩辕志瑜同学找到了一个支持AP模式的驱动,详细的信息请查看相关的文章:http://blog.csdn.net/sumang_87/article/details/38168877,github上的源代码:https://github.com/eywalink/mt7601u。感谢他的分享。

2015-03-12更新:如果是在Raspberry Pi上尝试编译驱动并且遇到困难,请参考《为Raspberry Pi 2编译内核模块

在Linux下使用“360随身WiFi 2”》上有181条评论

    • 几乎没有,那上面有个@Fanxi,不过不发言,也没关注什么人,只有时上去搜索一些信息,我日常只用饭否。

  1. Pingback引用通告: 360WIFI 2代芯片、拆解、问题、教程及与小度WIFI对比 | rainyHeart

  2. 可否将”按照README_STA_usb中的说明make和make install。然后modprobe一下mt7601Usta.ko这个内核模块,后面的事就妥妥的了。”详细点把相关命令告诉下我呢~我刚接触linux不大熟~可是好像使用下360wifi,今天刚买的,按照你说的尝试了好久没有成功T_T,谢谢啦~

      • 我刚好今天在家里弄了一个tplink的TL-WN322G+ v3,其实这两步就是:
        #sudo make
        没有问题再
        #sudo make install
        没有什么特别的,你的编译有报错吗?

        • Raspbian下很好搞定,就按文章中说的方法就可以了。如果你遇到问题,请详细描述一下并贴出出错提示等。

          • make && make install 完成之后,modprob的时候,出现exec format error

          • dmesg看看具体的出错提示,这种一般是因为用的内核头文件版本不匹配造成的。

    • 我不用Ubuntu,不过内核模块的编译方法应该都是大同小异的。

      用apt-get安装好build-essential和linux-kernel-devel,然后直接在驱动的源代码目录下执行make和sudo make install就可以了。

      如果编译没有出错,就可以sudo modprobe mt7601Usta来加载这个模块,就可以正常工作了。

      如果modprobe出错,可以用dmesg来看原因。

      • 加了文件那一行
        sudo make
        sudo make install
        sudo modprobe mt7601Usta
        都没有错~

        然后怎样就算可以用了呢TT

        • 那这样就算可以用了啊…modprobe只要没错,基本上就是正常了啊。可以用lsmod确认一下mt7601Usta是不是加载成功,另外,dmesg应该可以看到很多log。

          用iwlist scanning看看是不是能搜到无线网络。如果可以的话,那就用NetworkManager或者其它的方式配置一下就可以正常连通网络了。

          • 可以搜到很多其他人的无线网络~我就是不懂怎么下面怎么继续配置TT

          • 我这篇文章只讲了把随身WiFi当无线网卡用,不是当AP用哦。
            既然已经能搜到Wi-Fi信号了,那就用改/etc/network/interfaces(命令行)或NetworkManager(图形界面)连上去就可以了。
            参考:https://wiki.debian.org/WiFi/HowToUse

          • 图形界面的新建无线网络试了不成功
            TT

          • 模块也能加载,可是搜素的时候没有啊,不知道什么情况。用iwlist scanning也找不到无线网卡。是不是中间少了什么。

  3. 我也是前段时间淘了一个rt5370的,和你步骤步骤差不多,不过设置了os/linux/config.mk,HAS_WPA_SUPPLICANT=y以及HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y, 是可以支持wpa2的

  4. Pingback引用通告: 360 wifi 2 做无线网卡(Linux) | lytsing's Blog

  5. 我博客中rt5370挖了一个很大的坑,给mtk发邮件,前后给了我新代码,我刚才试了一下还是老现象,看来还得继续骚扰他们。

    • 谢谢。不过这篇文章中好像用的是一代的360随身Wi-Fi。

      二代的目前我找到的驱动中好像没有提供nl80211的接口,所以用不了。

      • 请问下,您现在可以用ap模式了吗?貌似D-PO_MT7601U_LinuxSTA_3.0.0.4_20130913/DPO_MT7601u….那个版本不行。。又没有可以用的,顺便问问,怎么用

  6. 博主,我在Ubuntu 13.04 X64下面安装驱动,插上系统能显示,也正常,但是我连接wpa的网络,不到一分钟,系统就死了,直接到了init 3 ,而且无法操作,只能强制关机,桌面环境Xfce,系统内核3.11的,每次更换了内核,都需要从新的打驱动,不知道是什么原因?

    • 我没试过在Ubuntu下的行为,可能是驱动跟内核有点不兼容吧,最好能收个内核的日志来看看分析一下。
      升级内核需要重编驱动是正常的,就是这么玩的。

      • 应该是和内核不兼容吧,我看说明是2.4或者2.6的内核,我专门试了一下,ping 大小是65000的话 就立马死机了。最后一句提示的是Kernel panic – nor syncing:Fatal exception in inerput,这里不能上图片,来个图床吧,http://img3.picbed.org/uploads/2014/01/one.jpg

        • 图片上只能看到是在一个中断里死掉了,我看不出更多有用的信息。

          我这里是Arch Linux 3.12的内核,没有发生你说的问题。不过我确实也没有试过在Ubuntu中的行为,如果有确实不兼容,那就比较麻烦了,只能厂家发布新的版本了。

          • 我也是同样的问题。。安装无线驱动后只要用这个网卡联网就死机。我是linuxmint 16,小米随身wifi

  7. [ 3.219383] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
    [ 3.351281] usb 1-1.2: New USB device found, idVendor=148f, idProduct=760b
    [ 3.364805] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 3.374101] usb 1-1.2: Product: 802.11 n WLAN
    [ 3.380231] usb 1-1.2: Manufacturer: MediaTek
    [ 3.386146] usb 1-1.2: SerialNumber: 1.0
    [ 3.980425] udevd[156]: starting version 175
    [ 6.184755] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
    [ 9.328181] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 9.780916] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 15.191750] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

    ifconfig 找不到wlan0 怎么办啊

    • {USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi */
      这句话忘记加了。加了之后重新make
      使用
      iwconfig

      ra0 Ralink STA
      Power Management:on

      lo no wireless extensions.

      eth0 no wireless extensions.

      找到了ra0

      • 嗯,一开始看到您的留言时我就在猜是不是忘了加ID了,所以会认不出来。
        现在问题解决了就好。

  8. MT7601U在linux下是可以实现AP功能的,不过需要单独的驱动,编译后生成mt7601Uap.ko,配合RT5370AP.DAT配置文件实现AP功能。

  9. 你好楼主,可否共享一下linux下MT7601的驱动,我链到那个下载地址的时候已经404了,目前网上能找到的教程都指向这个下载地址。

    我的邮箱是weiyi415@gmail.com

    非常感谢。

  10. MT7601U 可以試試 DPA_MT7601U_LinuxAP_ANDROID_20121211.tar.bz2
    google 一下就可以找到下載的網址.
    初步有試了一下可以編譯出 mt7601Uap.ko

    • 这个我尝试了,可以成功编译,可以加载mod,而且可以作为AP使用!!可以DHCP,用手机成功连上,可以ping,可以telnet,但是只要传输稍大点的数据就出错了,例如看个网页啥的就歇了,而且非常非常的慢。。

  11. # modprobe rt5572sta

    ERROR:could not insert ‘rt5572sta’:Exec format error

    这个问题应该怎么处理呢?

    • rt5572sta?您编译的是别的网卡驱动吧?

      出现Exec format error可以看看demsg,看有没有什么线索。一般可能是工具链不合适,与系统架构不一致。也可能是编译模块时用的头文件和内核配置与系统运行内核的实际情况不符。

      • 不好意思,上面是我直接copy的代码,我用的是小度wifi,也是7601。dmesg信息为“mt7601Usta: no symbol version for module_layout”
        我同时在饭否上私信你啦,谢谢

    • 如果dmesg结果是no symbol version for module_layout,基本上可以初步判断是内核头文件没有配置正确,与当前内核不一致。要解决这个问题有不少工作要做,也有不少基础知识需要了解,这里就写个简单的傻瓜步骤,如果依样画葫芦不行,也许也没有什么好办法可以简单的解决这个问题了。

      $ cd /usr/lib/modules/`uname -r`/build
      $ cat /proc/config.gz |gunzip > /tmp/.config
      $ sudo cp /tmp/.config .config
      $ sudo make modules_prepare

      然后再去重新编译你的驱动程序。祝好运。

      • OK,非常感谢,
        我同时参考了http://www.cnblogs.com/hamwolf/archive/2013/11/07/3412231.html
        这篇文章, 因为驱动make报错,所以根据该blog的方法重新编译了内核(https://github.com/raspberrypi/linux.git)。

        但是有一个问题,目前
        #uname -r
        3.10.25+

        但是我从git下载的raspberrypi/linux.git下载的linux中Makefile文件显示为
        VERSION = 3
        PATCHLEVEL = 10
        SUBLEVEL = 32

        这两个不一致是不是可能导致出现该错误的原因?

        如果这个是潜在原因,如何能从git上下载到3.10.25的linux呢?

        PS:能推荐一个能直接插在rpi上的usb无线网卡吗?

        • RPi的内核版本是有点乱的说,我也遇到过类似的问题,主要Raspbian不提供官方的内核开发包,所以比较麻烦一点。不过我后来也没有深入研究它的内核相关的东西,所以可能没有太多的经验可以分享给您。

          RPi上能用的USB无线网卡应该非常 多,可以参考下而的网址,挑一个不需要特别的驱动的吧,主要是知道芯片,品牌不是很关键:http://elinux.org/RPi_USB_Wi-Fi_Adapters

          目前来看MT7601的Linux驱动跟3.x的内核兼容性也不是很好,所以如果正而八经想在RPi上用的话,不如考虑换个更好用的。

        • 其实/usr/lib/modules/`uname -r`/build在很多发行版上根本就是个软链接。

          如果你系统是用自己编译的内核,那你就把这个目录链到你的内核编译目录就行了,非常可靠,这样编译出来的内核模块在insmod时一定不会出来什么Exec format error这样问题。

    • 取决于你使用的发行版,一般的发行版都有与运行内核配套的kernel-devel或linux-headers等打好的开发包,理论上只要安装了对应内核的开发包就可以了。比如:Debian系的系统一般装了build-essential以后,该有的东西就都有了。无须按上面写的步骤人工去配置内核。但如果找不到合适的开发包的话,人工配置也是值得尝试一下的做法。

  12. Pingback引用通告: Dentry.net » 用360 wifi 2做树莓派的无线网卡

  13. 为什么我make直接报错:
    make -C tools
    make[1]: Entering directory `/home/liangwei/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916/tools’
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/home/liangwei/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916/tools’
    /home/liangwei/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
    chipset = mt7650u
    chipset = mt7630u
    chipset = mt7610u
    cp -f os/linux/Makefile.6 /home/liangwei/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
    make -C /lib/modules/3.5.0-47-generic/build SUBDIRS=/home/liangwei/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
    make: *** /lib/modules/3.5.0-47-generic/build: No such file or directory. Stop.
    make: *** [LINUX] Error 2

  14. 我的是小度wifi,在64位fedora 20下编译报错,求救。

    make[2]: *** [/home/XXX/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] 错误 1
    make[1]: *** [_module_/home/XXX/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] 错误 2
    make[1]: 离开目录“/usr/src/kernels/3.13.6-200.fc20.x86_64”
    make: *** [LINUX] 错误 2

      • make -C tools
        make[1]: 进入目录“/home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools”
        gcc -g bin2h.c -o bin2h
        make[1]: 离开目录“/home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools”
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
        cp -f os/linux/Makefile.6 /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
        make -C /lib/modules/3.13.9-200.fc20.x86_64/build SUBDIRS=/home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
        make[1]: 进入目录“/usr/src/kernels/3.13.9-200.fc20.x86_64”
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: 在函数‘announce_802_3_packet’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: 警告:未使用的变量‘pAd’ [-Wunused-variable]
        RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: 在函数‘STA_MonPktSend’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:399:9: 警告:格式 ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
        DBGPRINT(RT_DEBUG_ERROR, (“%s : Size is too large! (%d)\n”, __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth_rsp.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: 在函数‘PeerBeacon’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:2181:12: 警告:传递‘StaAddMacTableEntry’的第 8 个参数时在不兼容的指针类型间转换 [默认启用]
        ie_list->CapabilityInfo) == FALSE)
        ^
        In file included from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59:0,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:28:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:7892:9: 附注:需要类型‘struct IE_LISTS *’,但实参的类型为‘struct BCN_IE_LIST *’
        BOOLEAN StaAddMacTableEntry(
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sanity.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c: 在函数‘STAHandleRxDataFrame’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c:523:4: 警告:传递‘MacTableLookup’的第 2 个参数时在不兼容的指针类型间转换 [默认启用]
        pEntry = MacTableLookup(pAd, &pHeader->Addr2);
        ^
        In file included from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59:0,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c:28:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:8429:18: 附注:需要类型‘UCHAR *’,但实参的类型为‘UCHAR (*)[6]’
        MAC_TABLE_ENTRY *MacTableLookup(RTMP_ADAPTER *pAd, UCHAR *pAddr);
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/connect.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/wpa.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: 在函数‘RTMPIoctlRF’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5306:7: 警告:格式 ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘LONG’ [-Wformat=]
        sprintf(msg+strlen(msg), “BANK%d_R%02d:%02X “, bank_Id, rfId, rfValue);
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5359:3: 警告:传递‘RtmpDrvAllRFPrint’的第 2 个参数时在不兼容的指针类型间转换 [默认启用]
        RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
        ^
        In file included from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:64:0,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:28:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: 附注:需要类型‘UINT32 *’,但实参的类型为‘PSTRING’
        VOID RtmpDrvAllRFPrint(
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:19: 警告:未使用的变量‘rf_bank’ [-Wunused-variable]
        UCHAR regRF = 0, rf_bank = 0;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: 在函数‘RtmpIoctl_rt_ioctl_siwgenie’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:7610:13: 警告:从不兼容的指针类型赋值 [默认启用]
        eid_ptr = pAd->StaCfg.pWpaAssocIe;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_md5.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_sha2.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_hmac.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c: 在函数‘AES_Key_Wrap’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c:1459:6: 警告:格式 ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
        DBGPRINT(RT_DEBUG_ERROR, (“AES_Key_Wrap: allocate %d bytes memory failure.\n”, sizeof(UINT8)*PlainTextLength));
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c: 在函数‘AES_Key_Unwrap’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c:1554:6: 警告:格式 ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
        DBGPRINT(RT_DEBUG_ERROR, (“AES_Key_Unwrap: allocate %d bytes memory failure.\n”, sizeof(UINT8)*PlainLength));
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_arc4.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: 在函数‘MlmeResetRalinkCounters’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:543:35: 警告:将一个指针转换为大小不同的整数 [-Wpointer-to-int-cast]
        NdisZeroMemory(&pAd->RalinkCounters,
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:543:76: 警告:将一个指针转换为大小不同的整数 [-Wpointer-to-int-cast]
        NdisZeroMemory(&pAd->RalinkCounters,
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: 在函数‘AsicRxAntEvalTimeout’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:5201:43: 警告:未使用的变量‘rssi_diff’ [-Wunused-variable]
        CHAR larger = -127, rssi0, rssi1, rssi2, rssi_diff;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wep.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/action.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: 在函数‘CmdRspEventCallbackHandle’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2509:8: 警告:未使用的变量‘Ret’ [-Wunused-variable]
        INT32 Ret;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: 在函数‘StopDmaTx’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2684:8: 警告:未使用的变量‘IdleNums’ [-Wunused-variable]
        UINT8 IdleNums = 0;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2682:20: 警告:未使用的变量‘UsbCfg’ [-Wunused-variable]
        USB_DMA_CFG_STRUC UsbCfg;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: 在函数‘NICInitAsicFromEEPROM’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:981:9: 警告:未使用的变量‘i’ [-Wunused-variable]
        USHORT i;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: 在函数‘NICInitializeAdapter’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1292:22: 警告:未使用的变量‘GloCfg’ [-Wunused-variable]
        WPDMA_GLO_CFG_STRUC GloCfg;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: 在函数‘NICInitializeAsic’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1367:9: 警告:未使用的变量‘KeyIdx’ [-Wunused-variable]
        USHORT KeyIdx;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init_inf.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_tkip.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_aes.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sync.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c: 在函数‘RtmpChipOpsEepromHook’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c:34:9: 警告:未使用的变量‘e2p_csr’ [-Wunused-variable]
        UINT32 e2p_csr;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sanity.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: 在函数‘Set_DebugFunc_Proc’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:1084:2: 警告:格式 ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘const char *’ [-Wformat=]
        DBGPRINT_S(RT_DEBUG_TRACE, (“Set RTDebugFunc = 0x%x\n”,__FUNCTION__, RTDebugFunc));
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:1084:2: 警告:提供给格式字符串的实参太多 [-Wformat-extra-args]
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: 在函数‘set_rf’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:5730:3: 警告:格式 ‘%x’ expects argument of type ‘unsigned int *’, but argument 5 has type ‘UCHAR *’ [-Wformat=]
        rv = sscanf(arg, “%d-%d-%x”, &(bank_id), &(rf_id), &(rf_val));
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: 在函数‘wmode_valid_and_correct’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:279:8: 警告:未使用的变量‘mode’ [-Wunused-variable]
        UCHAR mode = *wmode;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: 在文件作用域:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:264:16: 警告:‘wmode_valid’定义后未使用 [-Wunused-function]
        static BOOLEAN wmode_valid(RTMP_ADAPTER *pAd, enum WIFI_MODE wmode)
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wpa.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_radar.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.c: 在函数‘PeerMeasureReportAction’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.c:1972:3: 警告:格式 ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
        DBGPRINT(RT_DEBUG_ERROR, (“%s unable to alloc memory for measure report buffer (size=%d).\n”, __FUNCTION__, sizeof(MEASURE_RPI_REPORT)));
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_timer.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_channel.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c: 在函数‘rtmp_read_multest_from_file’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c:2671:23: 警告:未使用的变量‘pWdsEntry’ [-Wunused-variable]
        PRT_802_11_WDS_ENTRY pWdsEntry;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_asic.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/scan.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cmd.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/uapsd.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ps.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/ra_ctrl.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_legacy.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_ags.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/rtmp_chip.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/txpower.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mac/rtmp_mac.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_hw.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_entrytb.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c: 在函数‘NICInitBBP’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c:61:8: 警告:未使用的变量‘R0’ [-Wunused-variable]
        UCHAR R0 = 0xff;
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_phy.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_rf.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.c: 在函数‘convert_reordering_packet_to_preAMSDU_or_802_3_packet’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.c:1574:324: 警告:赋值时将指针赋给整数,未作类型转换 [默认启用]
        RTMP_OS_PKT_INIT(pRxBlk->pRxPacket,
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_ht.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_os_util.o
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.o
        In file included from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:56:0,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.c:30:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.c: 在函数‘rt_ioctl_giwscan’中:
        include/net/iw_handler.h:542:9: 警告:数组下标小于数组边界 [-Warray-bounds]
        memcpy(stream + point_len, extra, iwe->u.data.length);
        ^
        CC [M] /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘RtmpOsUsDelay’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: 警告:未使用的变量‘i’ [-Wunused-variable]
        ULONG i;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘duplicate_pkt’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:497:3: 警告:传递‘memmove’的第 1 个参数时将整数赋给指针,未作类型转换 [默认启用]
        NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
        ^
        In file included from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/string.h:4:0,
        from include/linux/string.h:17,
        from include/linux/bitmap.h:8,
        from include/linux/cpumask.h:11,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/cpumask.h:4,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/msr.h:10,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/processor.h:20,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/thread_info.h:22,
        from include/linux/thread_info.h:54,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/preempt.h:6,
        from include/linux/preempt.h:18,
        from include/linux/spinlock.h:50,
        from include/linux/seqlock.h:35,
        from include/linux/time.h:5,
        from include/linux/stat.h:18,
        from include/linux/module.h:10,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
        /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/string_64.h:58:7: 附注:需要类型‘void *’,但实参的类型为‘sk_buff_data_t’
        void *memmove(void *dest, const void *src, size_t count);
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:499:3: 警告:传递‘memmove’的第 1 个参数时将整数赋给指针,未作类型转换 [默认启用]
        NdisMoveMemory(skb->tail, pData, DataSize);
        ^
        In file included from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/string.h:4:0,
        from include/linux/string.h:17,
        from include/linux/bitmap.h:8,
        from include/linux/cpumask.h:11,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/cpumask.h:4,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/msr.h:10,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/processor.h:20,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/thread_info.h:22,
        from include/linux/thread_info.h:54,
        from /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/preempt.h:6,
        from include/linux/preempt.h:18,
        from include/linux/spinlock.h:50,
        from include/linux/seqlock.h:35,
        from include/linux/time.h:5,
        from include/linux/stat.h:18,
        from include/linux/module.h:10,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
        from /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
        /usr/src/kernels/3.13.9-200.fc20.x86_64/arch/x86/include/asm/string_64.h:58:7: 附注:需要类型‘void *’,但实参的类型为‘sk_buff_data_t’
        void *memmove(void *dest, const void *src, size_t count);
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘ClonePacket’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:650:20: 警告:赋值时将指针赋给整数,未作类型转换 [默认启用]
        pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘RtmpOsPktInit’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:669:41: 警告:赋值时将指针赋给整数,未作类型转换 [默认启用]
        SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘wlan_802_11_to_802_3_packet’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:695:15: 警告:赋值时将指针赋给整数,未作类型转换 [默认启用]
        pOSPkt->tail = pOSPkt->data + pOSPkt->len;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘__RtmpOSFSInfoChange’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: 错误:将‘kuid_t’赋值给‘int’时类型不兼容
        pOSFSInfo->fsuid = current_fsuid();
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: 错误:将‘kgid_t’赋值给‘int’时类型不兼容
        pOSFSInfo->fsgid = current_fsgid();
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘RtmpDrvAllRFPrint’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: 警告:传递‘file_w->f_op->write’的第 2 个参数时在不兼容的指针类型间转换 [默认启用]
        file_w->f_op->write(file_w, pBuf, BufLen, &file_w->f_pos);
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: 附注:需要类型‘const char *’,但实参的类型为‘UINT32 *’
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: 警告:未使用的变量‘macValue’ [-Wunused-variable]
        UINT32 macAddr = 0, macValue = 0;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: 警告:未使用的变量‘macAddr’ [-Wunused-variable]
        UINT32 macAddr = 0, macValue = 0;
        ^
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: 在函数‘RtmpOSIRQRelease’中:
        /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: 警告:未使用的变量‘net_dev’ [-Wunused-variable]
        struct net_device *net_dev = (struct net_device *)pNetDev;
        ^
        make[2]: *** [/home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] 错误 1
        make[1]: *** [_module_/home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] 错误 2
        make[1]: 离开目录“/usr/src/kernels/3.13.9-200.fc20.x86_64”
        make: *** [LINUX] 错误 2

        期待大神提供解决方案,ubuntu14.04也基本是这个内核,所以很有意义

        • /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: 错误:将‘kuid_t’赋值给‘int’时类型不兼容
          pOSFSInfo->fsuid = current_fsuid();
          ^
          /home/mikew/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: 错误:将‘kgid_t’赋值给‘int’时类型不兼容
          pOSFSInfo->fsgid = current_fsgid();

          • 我解决了,解决方法:rt_linux.c:1121行和1122行的pOSFSInfo->fsgid = current_fsgid();替换为pOSFSInfo->fsgid = *(int *)&current_fsgid();

  15. 楼主你好,现在有找到可用的mt7601芯片在Linux下的softap的驱动吗?如果有,能否发给我一份?邮箱55239610@qq.com

  16. 我在NJLUG好像见过楼主,trend co.的~~
    这个只能当无线网卡用,那么这个家伙本来的主打卖点在linux不就没用了嘛。。。

    • 鄙人是NJLUG联合发起人之一,2011期间NJLUG的活动应该基本不缺席的。所以参加过活动应该就会见过我。不知道你是哪一位,光从ID上猜不出来。

      确实,如果没有AP的驱动就只能在Linux下当普通无线网卡用了。楼上有人说试验支持AP的驱动成功的,不过我不太了解细节。我自己还没有成功过。

  17. 我上官网下的驱动 编译了 但并没有加载ko文件 但我lsmod 已经看见了mt7601Usta ifconfig 没有看见ra0 ifconfig -a 才看见了 然后我ifconfig ra0 up 不成功,提示operation not permitted,求指导,

    • 先rmmod再modprobe重新加载一次看看呢?
      dmesg看看有没有什么出错提示。
      安装模块时,脚本还会复制一个firmware文件,看看这个文件是否正常。

  18. 我试了一下,那个DPA_MT7601U_LinuxAP_ANDROID_20121211.tar.bz2 这个可以编译出来 DPA_MT7601U_LinuxAP_ANDROID_20121211/os/linux/mt7601Uap.ko 并且成功了,可以用。

      • 嘿嘿,我在尝试这两个结合,找了好多资料,总算可以了,试下hostapad看看,root@Cubian:/home/cubie# ./hostapd-2.2/hostapd/hostapd ./hostapd.conf -d
        random: Trying to read entropy from /dev/random
        Configuration file: ./hostapd.conf
        nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
        nl80211: Remove monitor interface: refcount=0
        netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
        nl80211: Set mode ifindex 4 iftype 2 (STATION)
        nl80211: Failed to set interface 4 to mode 2: -19 (No such device)
        nl80211 driver initialization failed.
        hostapd_interface_deinit_free(0x61b3e8)
        hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
        hostapd_interface_deinit(0x61b3e8)
        hostapd_bss_deinit: deinit bss ra0
        hostapd_cleanup(hapd=0x61bf50 (ra0))
        hostapd_free_hapd_data: Interface ra0 wasn’t started
        hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
        hostapd_interface_free(0x61b3e8)
        hostapd_interface_free: free hapd 0x61bf50
        hostapd_cleanup_iface(0x61b3e8)
        hostapd_cleanup_iface_partial(0x61b3e8)
        hostapd_cleanup_iface: free iface=0x61b3e8
        hostapad还是不行,但是自带的可以做softaproot@Cubian:/home/cubie# iwconfig
        lo no wireless extensionsIOCTL::SIOCGIWNAME
        .

        tunl0 no wireless extenIOCTL::SIOCGIWESSID (Len=8, ssid=RT2860AP…)
        sions.

        IOCTL::SIOCGIWAP(=00:ffffffbd:00:00:38:59)
        ra0 RTWIFI SoftAP ESSID:”RT2860AP”
        Mode:Managed Channel=11 Access Point: 00:BD:00:00:38:59
        Bit Rate:150 Mb/s

        eth0 no wireless extensions.

  19. OS: CentOS7
    Driver: DPA_MT7601U_LinuxAP_ANDROID_20121211.tar.bz2
    but error when compile:
    make[1]: Leaving directory `/usr/src/kernels/3.10.0-123.el7.x86_64′
    cp -f /home/bwang/MT7601U2/os/linux/mt7601Uap.ko /tftpboot
    rm -f os/linux/rt7601Uap.ko.lzma
    /root/bin/lzma e os/linux/rt7601Uap.ko os/linux/rt7601Uap.ko.lzma
    /root/bin/lzma: os/linux/rt7601Uap.ko: No such file or directory
    /root/bin/lzma: os/linux/rt7601Uap.ko.lzma: No such file or directory

  20. 我在执行 sudo make 时报下面的错误:
    make: /root/bin/lzma:命令未找到
    make: *** [LINUX] 错误 127

  21. 我在Arch下编译出问题,输出如下,请问该如何解决,谢谢:P

    kk@kk-laptop /d/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913> make
    make -C tools
    make[1]: Entering directory ‘/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools’
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory ‘/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools’
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
    cp -f os/linux/Makefile.6 /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
    make -C /lib/modules/3.15.7-1-ARCH/build SUBDIRS=/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
    make[1]: Entering directory ‘/usr/lib/modules/3.15.7-1-ARCH/build’
    CC [M] /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5306:7: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘LONG’ [-Wformat=]
    sprintf(msg+strlen(msg), “BANK%d_R%02d:%02X “, bank_Id, rfId, rfValue);
    ^
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5359:3: warning: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type
    RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
    ^
    In file included from /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:64:0,
    from /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:28:
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
    VOID RtmpDrvAllRFPrint(
    ^
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
    UCHAR regRF = 0, rf_bank = 0;
    ^
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5766:85: error: macro “__DATE__” might prevent reproducible builds [-Werror=date-time]
    snprintf(extra, size, “Driver version-%s, %s %s\n”, STA_DRIVER_VERSION, __DATE__, __TIME__ );
    ^
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5766:95: error: macro “__TIME__” might prevent reproducible builds [-Werror=date-time]
    snprintf(extra, size, “Driver version-%s, %s %s\n”, STA_DRIVER_VERSION, __DATE__, __TIME__ );
    ^
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
    /data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:7610:13: warning: assignment from incompatible pointer type
    eid_ptr = pAd->StaCfg.pWpaAssocIe;
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:318: recipe for target ‘/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o’ failed
    make[2]: *** [/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o] Error 1
    Makefile:1310: recipe for target ‘_module_/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux’ failed
    make[1]: *** [_module_/data/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
    make[1]: Leaving directory ‘/usr/lib/modules/3.15.7-1-ARCH/build’
    Makefile:394: recipe for target ‘LINUX’ failed
    make: *** [LINUX] Error 2

  22. 成功在linux下使用360wifi并可以作为AP使用以后可以在linux自由玩耍了好开心~

          • 这是GitHub上的源码https://github.com/eywalink/mt7601u

          • 在没有dhcp服务的linux发行版本可以使用手动分配ip,在有防火墙的linux发行版本(现在只能关闭防火墙)等弄好后在更新

          • 引用:“2014-08-12更新:留言区中的轩辕志瑜同学提供了一个支持AP模式的驱动,详细的信息请查看他的博客:http://blog.csdn.net/sumang_87/article/details/38168877,github上的源代码:https://github.com/eywalink/mt7601u。感谢他的分享。” 我声明一下不是我的博客和github我只是遇到同样问题时寻找同类芯片的解决方案时找到的资源,之前也正好看了这篇博客发现有遇到同样问题的人所以就分享了,错在我没有加上作者。所以希望改回来,把属于别人的东西还给别人。

    • 当我用rtl8187的时候出现这些错误,请问知道是什么错吗?用的是hostapd,dhcp貌似没开.
      Configuration file: ../../rtl_hostapd_2G.conf
      drv->ifindex=7
      l2_sock_recv==l2_sock_xmit=0x0x9dd5638
      Failed to request a scan of neighboring BSSes
      +rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
      rtl871x_set_key_ops
      rtl871x_set_key_ops
      rtl871x_set_key_ops
      rtl871x_set_key_ops
      Using interface wlan0 with hwaddr 08:10:76:2c:ff:46 and ssid ‘rtwap’
      rtl871x_set_beacon_ops
      rtl871x_set_hidden_ssid_ops
      rtl871x_set_wps_assoc_resp_ie
      rtl871x_set_wps_beacon_ie
      rtl871x_set_wps_probe_resp_ie
      random: Only 16/20 bytes of strong random data available from /dev/random
      random: Not enough entropy pool available for secure operations
      WPA: Not enough entropy in random pool for secure operations – update keys later when the first station connects
      rtl871x_set_key_ops
      rtl871x_set_beacon_ops
      rtl871x_set_hidden_ssid_ops

      • 我的理解是/dev/random设备没能提供足够多的随机数,造成hostapd不能正常工作。

        解决方法你可以上网搜搜看看,我估计可以通过增加系统中的随机因素来绕过问题,比如接个键盘鼠标,在启动hostapd时多敲敲键盘动动鼠标。或者后台开个find /的进程,造成一些磁盘动作。

        也许也有一些软件层面的解决方案,暂时我还没有研究.

        • 貌似不止这样一个问题吧…
          Failed to request a scan of neighboring BSSes
          这个也是这样造成的?而且,rtl871x_set_key_ops
          rtl871x_set_beacon_ops
          rtl871x_set_hidden_ssid_ops
          rtl871x_set_beacon_ops
          rtl871x_set_hidden_ssid_ops
          rtl871x_set_wps_assoc_resp_ie
          rtl871x_set_wps_beacon_ie
          rtl871x_set_wps_probe_resp_ie
          这几个参数有什么问题,我表示完全不懂,linux渣渣就是渣渣….

          • 对不起,我没有用过rtl8187的无线网卡,对这些信息没有什么认识。您可以尝试找找别的用相同类型的的网卡搭建AP的文章。

    • 请问下,你的链接文件中哪个是可以适合我的,我的系统是centos6.25,内核是2.6.32.还有就是,hdcp3-server,一定需要这个吗?别的可以不?我yum装了个hdcp,问题是,
      编辑 vim /etc/default/isc-dhcp-server
      为 INTERFACES=”ra0″
      这一步作不了,因为没有isc-dhcp-server这个路径….,最后一个问题,
      subnet 192.168.199.0 netmask 255.255.255.0 {
      range 192.168.199.10 192.168.199.20;
      option routers 192.168.199.1;
      option domain-name-servers 114.114.114.114;
      }
      里面的参数时固定的吗?还是根据自己情况来,如果是,能不能讲解下~谢谢.

      • Debian系跟Red Hat系中用的DHCP服务器有可能是有一些差异。你可以找一些讲述Red Hat系Linux下搭建软AP的文章参考一下。

          • 这是DHCP服务器的配置,也就是说是你的客户端连上来后会分配到的地址,所以可以按你的爱好来设置。例子里用的是192.168.199.0/24这个段,只要跟你现有网络的配置没有冲突,可以不改。

  23. 下载了原始和修改版的驱动,结果在 linux kernel version 3.12.25 下不能编译。问题在于变量的数据类型错误。谁有类似的问题或解吗?

  24. 你好,我按照你的步骤编译,在modprobe是出现错误:
    ERROR: could not insert ‘mt7601Usta’: Exec format error
    dmesg的信息:
    mt7601Usta: disagrees about version of symbol module_layout

    • dmesg看看具体的出错信息,一般是因为内核头文件用的不对,跟现在运行中的内核不匹配。尝试找一下与你运行内核版本最相近的内核源码,然后用/boot/config-`uname -r`作为它的.config配置文件,先make oldconfig一下,再make modules_prepare,然后再编译驱动试试。

      • 谢谢你的回复 :-D 前几天上课一直没看。我 uname -r 结果是3.12.28+,树莓派内核源码最近的只有3.12.31了,按照你的方法还是不成功(*>﹏<*)
        还是这个错误:
        ERROR: could not insert ‘mt7601Usta’: Exec format error
        dmesg的主要信息好像就是这个
        mt7601Usta: disagrees about version of symbol module_layout

        • 那这还是版本不一致啊,你要么找系统对应版本的内核源码,要么把Raspbian升级到最新内核,推荐后者。应该只用sudo apt-get update和sudo apt-get upgrade就可以了吧。

    • 我现在判断估计是Module.symvers文件的问题。

      请参考:http://www.freemindworld.com/blog/2015/150312_complie_kernel_module_for_raspberry_pi_2.shtml

  25. Pingback引用通告: 2015新年好 | 李凡希的Blog

  26. 请博主帮忙看下,谢谢!
    ………………
    /home/mr/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
    /home/mr/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
    struct net_device *net_dev = (struct net_device *)pNetDev;
    ^
    make[2]: *** [/home/mr/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
    make[1]: *** [_module_/home/mr/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-44-generic’
    make: *** [LINUX] Error 2

    请问这是什么原因啊,ubuntu 14.04 和 kali 上都不行

  27. 我是用树莓 3.18.5+

    当我走 sudo modprobe mt7601Usta, 出下面的问题 ,reboot 就不能进入系统了。

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.149038] Internal error: Oops: 5 [#1] PREEMPT ARM

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.257700] Process modprobe (pid: 9159, stack limit = 0xd59041b0)

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.265672] Stack: (0xd5905e88 to 0xd5906000)

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.271776] 5e80: bf31efe4 00007fff c00862f4 c02fe1a8 00000013 00000000

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.283416] 5ea0: de1d5000 d5905f7c d5905f50 d5905eb8 00000000 bf31efe4 d5904008 bf31f020

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.295277] 5ec0: bf31f140 00000000 b6cf0000 d5904000 00002db0 00000000 00000000 bf2fc674

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.307226] 5ee0: 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.319192] 5f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 000bb188

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.331270] 5f20: b6c3d000 b6f20948 00000080 c000eb44 d5904000 00000000 d5905fa4 d5905f48

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.343597] 5f40: c0089970 c0087974 de1d5000 000bb188 de25cb3c de25c982 de28847c 0008519c

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.356085] 5f60: 000933dc 00000000 00000000 00000000 0000002b 0000002c 00000021 00000025

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.368737] 5f80: 00000014 00000000 00000000 00000000 00040000 b88a1c88 00000000 d5905fa8

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.381477] 5fa0: c000e8c0 c0089890 00000000 00040000 b6c3d000 000bb188 b6f20948 b6c3d000

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.394319] 5fc0: 00000000 00040000 b88a1c88 00000080 b88a1d68 000bb188 b6f20948 00000000

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.407232] 5fe0: 00000000 be99a40c b6f17fb4 b6e830d4 60000010 b6c3d000 00000000 00000000

    Message from syslogd@leepi at Feb 6 15:07:20 …
    kernel:[ 3991.445669] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)

    Broadcast message from root@leepi (pts/3) (Fri Feb 6 15:07:32 2015):

  28. Pingback引用通告: 为Raspberry Pi 2编译内核模块 | 李凡希的Blog

  29. There is a PPA repo available containing a DKMS-capable package based on this repo:

    https://code.launchpad.net/~thopiekar/+archive/ubuntu/mt7601

    And the source code is here
    https://github.com/porjo/mt7601

    Currently supported devices:

    {USB_DEVICE(0x148f,0x6370)}, /* Ralink 6370 */
    {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */
    {USB_DEVICE(0x148f,0x760b)}, /* 360 wifi */
    {USB_DEVICE(0x2a5f,0x1000)}, /* Tencent wifi QQ */
    {USB_DEVICE(0x2955,0x0001)}, /* XiaoDu Wifi */
    {USB_DEVICE(0x2955,0x1001)}, /* XiaoDu Wifi */
    {USB_DEVICE(0x2955,0x1003)}, /* nuomi wifi */

      • 您好,请问我这个error怎么处理?
        mt7601Usta:
        Running module version sanity check.
        Error! Module version 3.0.0.3 for mt7601Usta.ko
        is not newer than what is already found in kernel 3.19.0-26-generic (3.0.0.3).
        You may override by specifying –force.

        • 我没遇到过这个情况。看提示是说内核里已经有这个驱动了?可以尝试先rmmod从内核里移除这个模块再重新加载,或者按提示在加载模块时用–force参数试试。

  30. Pingback引用通告: 騰訊全民WiFi / 360 隨身 WiFi 第二代 / 小米隨身 WiFi / 小度 WiFi Linux AP模式(熱點)驅動 | 深藏若虛

  31. Pingback引用通告: 360wifi在Ubuntu系统作为无线网卡使用

  32. root@GtxTitanX:~/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913_360Wifi2_Kali# make install
    make -C /root/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913_360Wifi2_Kali/os/linux -f Makefile.6 install
    mkdir: 无法创建目录”/etc/Wireless”: 文件已存在
    make[1]: Entering directory `/root/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913_360Wifi2_Kali/os/linux’
    rm -rf /etc/Wireless/RT2870STA
    mkdir /etc/Wireless/RT2870STA
    cp /root/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913_360Wifi2_Kali/RT2870STA.dat /etc/Wireless/RT2870STA/.
    install -d /lib/modules/3.18.0-kali3-amd64/kernel/drivers/net/wireless/
    install -m 644 -c mt7601Usta.ko /lib/modules/3.18.0-kali3-amd64/kernel/drivers/net/wireless/
    install: 无法获取”mt7601Usta.ko” 的文件状态(stat): 没有那个文件或目录
    make[1]: *** [install] 错误 1
    make[1]: Leaving directory `/root/Desktop/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913_360Wifi2_Kali/os/linux’
    make: *** [install] 错误 2
    KaliLinux不行啊

  33. 楼主好!我想要在Veket8上面安装驱动,使其变成一个无线网卡。已经在网上找到了驱动,但是不知道怎么安装。里面有两个说明文件,有一个太长没找到,有一个虽然有安装方法但是make等命令提示错误,所以缺少内核模块无法继续安装。注意,Veket有一个终端可输入Linux命令,那么该怎么安装呢?
    希望博主在我的博文里留言!
    http://www.sysres.cn/post/25

    • 我是在https://github.com里面下载的MT7601驱动,没有U。可以吗?
      我已经把我下的驱动补充到博文上了。

      • 没理解,你文章中给的就是mt7601u的地址啊。我不确定mt7601可不可以用,但既然有已知可用的mt7601u的版本,干嘛还要舍近求远去试mt7601呢?

        我没用过Veket,不了解。编译内核模块需要工具链和对应内核头文件及配置。有了这些应该就可以尝试编译了。你没有贴出出错信息,所以我现在没办法判断你遇到了什么问题。

        • 就是不知道运行怎样的命令安装。“按照README_STA_usb中的说明make和make install。然后modprobe一下mt7601Usta.ko这个内核模块,后面的事就妥妥的了。”想要具体的命令。这个实在是在README_STA_usb中没找到,只看到安装步骤说明,没有具体的Linux命令。谢谢解答!

          • 在环境准备好的情况下,需要的命令就是make和make install。

            但是怎么准备环境,这个超出了一篇博客或一条回复所能描述的范畴。你可以找Linux内核和内核模块编译方法相关的资料来学习一下。

  34. 你好,我按着上面的步骤试了,你说的“然后modprobe一下mt7601Usta.ko这个内核模块,后面的事就妥妥的了”。模块我也能加载上,可是iwlist,iwconfig都没有发现无线网卡。请问是什么情况?(我用的是Redhat Linuxsever6.2,360WiFi2代)

    • 我搜了相关信息,是不是复制firmware出了问题,可我不清楚这个firmware是什么,在哪里查看?

      • 改过了,按照你说的“修改common/rtusb_dev_id.c”,可是结果还是搜不到(ㄒoㄒ)。我看不懂dmesg的信息,等下我拷贝了信息之后再发。

  35. [root@localhost DPO_MT7601U_LinuxSTA_3.0.0.4_20130913]# make
    make -C tools
    make[1]: Entering directory `/home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools’
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
    cp -f os/linux/Makefile.6 /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
    make -C /lib/modules/2.6.32-220.el6.x86_64/build SUBDIRS=/home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
    make[1]: Entering directory `/usr/src/kernels/2.6.32-220.el6.x86_64′
    CC [M] /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.o
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_INIT_CAL’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:888: 警告:未使用的变量‘Temperature’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘NICInitMT7601RFRegisters’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1006: 警告:未使用的变量‘IdReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘NICInitMT7601MacRegisters’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1044: 警告:未使用的变量‘IdReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘NICInitMT7601BbpRegisters’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1086: 警告:未使用的变量‘IdReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_ChipSwitchChannel’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1442: 警告:ISO C90 不允许混合使用声明和代码
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1272: 警告:未使用的变量‘IdReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601DisableTxRx’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1497: 警告:在有返回值的的函数中,‘return’不带返回值
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601UsbAsicRadioOff’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1725: 警告:未使用的变量‘Value’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601UsbAsicRadioOn’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1790: 警告:未使用的变量‘pChipOps’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1789: 警告:未使用的变量‘GloCfg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_ReadChannelPwr’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:1905: 警告:未使用的变量‘bUseDefault’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601AsicTemperatureCompensation’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2282: 警告:未使用的变量‘IdReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_EnableTSSI’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2478: 警告:未使用的变量‘ret’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2477: 警告:未使用的变量‘BBPReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2477: 警告:未使用的变量‘RFReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_InitDesiredTSSITable’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2611: 警告:未使用的变量‘offset’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2611: 警告:未使用的变量‘index’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_GetTssiCompensationParam’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2682: 警告:未使用的变量‘ret’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2681: 警告:未使用的变量‘count’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2675: 警告:未使用的变量‘RFReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_AsicTxAlcGetAutoAgcOffset’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:2949: 警告:未使用的变量‘BBPReg’
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c: 在函数‘MT7601_Init’中:
    /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/mt7601.c:3399: 警告:从不兼容的指针类型赋值
    LD [M] /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/mt7601Usta.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/mt7601Usta.mod.o
    LD [M] /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/mt7601Usta.ko.unsigned
    NO SIGN [M] /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/mt7601Usta.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.32-220.el6.x86_64′
    cp -f /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/mt7601Usta.ko /tftpboot 2>/dev/null || :
    [root@localhost DPO_MT7601U_LinuxSTA_3.0.0.4_20130913]# make install
    make -C /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux -f Makefile.6 install
    mkdir: 无法创建目录”/etc/Wireless”: 文件已存在
    make[1]: Entering directory `/home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux’
    rm -rf /etc/Wireless/RT2870STA
    mkdir /etc/Wireless/RT2870STA
    cp /home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/RT2870STA.dat /etc/Wireless/RT2870STA/.
    install -d /lib/modules/2.6.32-220.el6.x86_64/kernel/drivers/net/wireless/
    install -m 644 -c mt7601Usta.ko /lib/modules/2.6.32-220.el6.x86_64/kernel/drivers/net/wireless/
    /sbin/depmod -a 2.6.32-220.el6.x86_64
    make[1]: Leaving directory `/home/user/下载/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux’
    [root@localhost DPO_MT7601U_LinuxSTA_3.0.0.4_20130913]#

    dmesg:
    Switching to clocksource tsc
    pnp: PnP ACPI init
    ACPI: bus type pnp registered
    pnp: PnP ACPI: found 14 devices
    ACPI: ACPI bus type pnp unregistered
    system 00:01: iomem range 0xfed40000-0xfed44fff has been reserved
    system 00:06: ioport range 0x680-0x69f has been reserved
    system 00:06: ioport range 0xffff-0xffff has been reserved
    system 00:06: ioport range 0xffff-0xffff has been reserved
    system 00:06: ioport range 0xffff-0xffff has been reserved
    system 00:06: ioport range 0x1c00-0x1cfe has been reserved
    system 00:06: ioport range 0x1d00-0x1dfe has been reserved
    system 00:06: ioport range 0x1e00-0x1efe has been reserved
    system 00:06: ioport range 0x1f00-0x1ffe has been reserved
    system 00:06: ioport range 0x1800-0x18fe has been reserved
    system 00:06: ioport range 0x164e-0x164f has been reserved
    system 00:08: ioport range 0x1854-0x1857 has been reserved
    system 00:09: ioport range 0x290-0x29f has been reserved
    system 00:0b: ioport range 0x4d0-0x4d1 has been reserved
    system 00:0d: iomem range 0xfed1c000-0xfed1ffff has been reserved
    system 00:0d: iomem range 0xfed10000-0xfed17fff has been reserved
    system 00:0d: iomem range 0xfed18000-0xfed18fff has been reserved
    system 00:0d: iomem range 0xfed19000-0xfed19fff has been reserved
    system 00:0d: iomem range 0xf8000000-0xfbffffff has been reserved
    system 00:0d: iomem range 0xfed20000-0xfed3ffff has been reserved
    system 00:0d: iomem range 0xfed90000-0xfed93fff has been reserved
    system 00:0d: iomem range 0xfed45000-0xfed8ffff has been reserved
    system 00:0d: iomem range 0xff000000-0xffffffff has been reserved
    system 00:0d: iomem range 0xfee00000-0xfeefffff could not be reserved
    system 00:0d: iomem range 0xf7fdf000-0xf7fdffff has been reserved
    system 00:0d: iomem range 0xf7fe0000-0xf7feffff has been reserved
    pci 0000:00:01.0: PCI bridge to [bus 01-01]
    pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
    pci 0000:00:01.0: bridge window [io disabled]
    pci 0000:00:01.0: bridge window [mem disabled]
    pci 0000:00:01.0: bridge window [mem pref disabled]
    pci 0000:00:1c.0: PCI bridge to [bus 02-02]
    pci 0000:00:1c.0: PCI bridge, secondary bus 0000:02
    pci 0000:00:1c.0: bridge window [0x2000-0x2fff]
    pci 0000:00:1c.0: bridge window [0xdf200000-0xdf3fffff]
    pci 0000:00:1c.0: bridge window [0xdf400000-0xdf5fffff]
    pci 0000:00:1c.2: PCI bridge to [bus 03-03]
    pci 0000:00:1c.2: PCI bridge, secondary bus 0000:03
    pci 0000:00:1c.2: bridge window [0xe000-0xefff]
    pci 0000:00:1c.2: bridge window [0xf7c00000-0xf7cfffff]
    pci 0000:00:1c.2: bridge window [0xf0000000-0xf00fffff]
    alloc irq_desc for 16 on node -1
    alloc kstat_irqs on node -1
    pci 0000:00:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    pci 0000:00:01.0: setting latency timer to 64
    pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    pci 0000:00:1c.0: setting latency timer to 64
    alloc irq_desc for 18 on node -1
    alloc kstat_irqs on node -1
    pci 0000:00:1c.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
    pci 0000:00:1c.2: setting latency timer to 64
    pci_bus 0000:00: resource 0 io: [0x00-0xffff]
    pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
    pci_bus 0000:02: resource 0 io: [0x2000-0x2fff]
    pci_bus 0000:02: resource 1 mem: [0xdf200000-0xdf3fffff]
    pci_bus 0000:02: resource 2 pref mem [0xdf400000-0xdf5fffff]
    pci_bus 0000:03: resource 0 io: [0xe000-0xefff]
    pci_bus 0000:03: resource 1 mem: [0xf7c00000-0xf7cfffff]
    pci_bus 0000:03: resource 2 pref mem [0xf0000000-0xf00fffff]
    NET: Registered protocol family 2
    IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
    TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
    TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
    TCP: Hash tables configured (established 524288 bind 65536)
    TCP reno registered
    NET: Registered protocol family 1
    pci 0000:00:02.0: Boot video device
    Trying to unpack rootfs image as initramfs…
    Freeing initrd memory: 15487k freed
    audit: initializing netlink socket (disabled)
    type=2000 audit(1437656434.476:1): initialized
    HugeTLB registered 2 MB page size, pre-allocated 0 pages
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    msgmni has been set to 7400
    SELinux: Registering netfilter hooks
    alg: No test for stdrng (krng)
    ksign: Installing public key data
    Loading keyring
    – Added public key 4BB1E63D18B42658
    – User ID: Red Hat, Inc. (Kernel Module GPG key)
    – Added public key D4A26C9CCD09BEDA
    – User ID: Red Hat Enterprise Linux Driver Update Program
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    io scheduler noop registered
    io scheduler anticipatory registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    pcieport 0000:00:01.0: setting latency timer to 64
    alloc irq_desc for 28 on node -1
    alloc kstat_irqs on node -1
    pcieport 0000:00:01.0: irq 28 for MSI/MSI-X
    pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    pciehp: PCI Express Hot Plug Controller Driver version: 0.4
    acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    acpiphp: Slot [1] registered
    intel_idle: MWAIT substates: 0x42120
    intel_idle: does not run on family 6 model 60
    input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
    ACPI: Power Button [PWRB]
    input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
    ACPI: Power Button [PWRF]
    fan PNP0C0B:00: registered as cooling_device0
    ACPI: Fan [FAN0] (off)
    fan PNP0C0B:01: registered as cooling_device1
    ACPI: Fan [FAN1] (off)
    fan PNP0C0B:02: registered as cooling_device2
    ACPI: Fan [FAN2] (off)
    fan PNP0C0B:03: registered as cooling_device3
    ACPI: Fan [FAN3] (off)
    fan PNP0C0B:04: registered as cooling_device4
    ACPI: Fan [FAN4] (off)
    ACPI: acpi_idle registered with cpuidle
    ACPI: SSDT 00000000d8897c18 003D3 (v01 PmRef Cpu0Cst 00003001 INTL 20091112)
    Monitor-Mwait will be used to enter C-1 state
    Monitor-Mwait will be used to enter C-2 state
    processor LNXCPU:00: registered as cooling_device5
    ACPI: SSDT 00000000d8897618 005AA (v01 PmRef ApIst 00003000 INTL 20091112)
    ACPI: SSDT 00000000d8896d98 00119 (v01 PmRef ApCst 00003000 INTL 20091112)
    processor LNXCPU:01: registered as cooling_device6
    processor LNXCPU:02: registered as cooling_device7
    processor LNXCPU:03: registered as cooling_device8
    thermal LNXTHERM:01: registered as thermal_zone0
    ACPI: Thermal Zone [TZ00] (28 C)
    thermal LNXTHERM:02: registered as thermal_zone1
    ACPI: Thermal Zone [TZ01] (30 C)
    ERST: Table is not found!
    GHES: HEST is not enabled!
    Non-volatile memory driver v1.3
    Linux agpgart interface v0.103
    crash memory driver: version 1.1
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    brd: module loaded
    loop: module loaded
    input: Macintosh mouse button emulation as /devices/virtual/input/input2
    Fixed MDIO Bus: probed
    ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
    alloc irq_desc for 20 on node -1
    alloc kstat_irqs on node -1
    ehci_hcd 0000:00:1a.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
    ehci_hcd 0000:00:1a.0: setting latency timer to 64
    ehci_hcd 0000:00:1a.0: EHCI Host Controller
    ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1
    ehci_hcd 0000:00:1a.0: debug port 2
    ehci_hcd 0000:00:1a.0: cache line size of 64 is not supported
    ehci_hcd 0000:00:1a.0: irq 20, io mem 0xf7d08000
    ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 2.6.32-220.el6.x86_64 ehci_hcd
    usb usb1: SerialNumber: 0000:00:1a.0
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 2 ports detected
    alloc irq_desc for 23 on node -1
    alloc kstat_irqs on node -1
    ehci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
    ehci_hcd 0000:00:1d.0: setting latency timer to 64
    ehci_hcd 0000:00:1d.0: EHCI Host Controller
    ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
    ehci_hcd 0000:00:1d.0: debug port 2
    ehci_hcd 0000:00:1d.0: cache line size of 64 is not supported
    ehci_hcd 0000:00:1d.0: irq 23, io mem 0xf7d07000
    ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: EHCI Host Controller
    usb usb2: Manufacturer: Linux 2.6.32-220.el6.x86_64 ehci_hcd
    usb usb2: SerialNumber: 0000:00:1d.0
    usb usb2: configuration #1 chosen from 1 choice
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 2 ports detected
    ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
    uhci_hcd: USB Universal Host Controller Interface driver
    PNP: No PS/2 controller found. Probing ports directly.
    serio: i8042 KBD port at 0x60,0x64 irq 1
    serio: i8042 AUX port at 0x60,0x64 irq 12
    mice: PS/2 mouse device common for all mice
    rtc_cmos 00:07: RTC can wake from S4
    rtc_cmos 00:07: rtc core: registered rtc_cmos as rtc0
    rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
    cpuidle: using governor ladder
    cpuidle: using governor menu
    usbcore: registered new interface driver hiddev
    usbcore: registered new interface driver usbhid
    usbhid: v2.6:USB HID core driver
    TCP cubic registered
    Initializing XFRM netlink socket
    NET: Registered protocol family 17
    registered taskstats version 1
    rtc_cmos 00:07: setting system clock to 2015-07-23 13:00:35 UTC (1437656435)
    Initalizing network drop monitor service
    Freeing unused kernel memory: 1244k freed
    Write protecting the kernel read-only data: 10240k
    Freeing unused kernel memory: 1040k freed
    Freeing unused kernel memory: 1760k freed
    dracut: dracut-004-256.el6
    dracut: rd_NO_LUKS: removing cryptoluks activation
    dracut: rd_NO_LVM: removing LVM activation
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.22.6-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    udev: starting version 147
    dracut: Starting plymouth daemon
    dracut: rd_NO_DM: removing DM RAID activation
    dracut: rd_NO_MD: removing MD RAID activation
    ahci 0000:00:1f.2: version 3.0
    alloc irq_desc for 19 on node -1
    alloc kstat_irqs on node -1
    ahci 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
    alloc irq_desc for 29 on node -1
    alloc kstat_irqs on node -1
    ahci 0000:00:1f.2: irq 29 for MSI/MSI-X
    ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0xc impl SATA mode
    ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part ems apst
    ahci 0000:00:1f.2: setting latency timer to 64
    scsi0 : ahci
    scsi1 : ahci
    scsi2 : ahci
    scsi3 : ahci
    scsi4 : ahci
    scsi5 : ahci
    ata1: DUMMY
    ata2: DUMMY
    ata3: SATA max UDMA/133 abar m2048@0xf7d06000 port 0xf7d06200 irq 29
    ata4: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 29
    ata5: DUMMY
    ata6: DUMMY
    usb 1-1: new high speed USB device using ehci_hcd and address 2
    usb 1-1: New USB device found, idVendor=8087, idProduct=8008
    usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    usb 1-1: configuration #1 chosen from 1 choice
    hub 1-1:1.0: USB hub found
    hub 1-1:1.0: 6 ports detected
    ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    ata3.00: ACPI _SDD failed (AE 0x5)
    usb 2-1: new high speed USB device using ehci_hcd and address 2
    usb 2-1: New USB device found, idVendor=8087, idProduct=8000
    usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    usb 2-1: configuration #1 chosen from 1 choice
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 6 ports detected
    usb 1-1.2: new high speed USB device using ehci_hcd and address 3
    usb 1-1.2: New USB device found, idVendor=148f, idProduct=760b
    usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.2: Product: 802.11 n WLAN
    usb 1-1.2: Manufacturer: MediaTek
    usb 1-1.2: SerialNumber: 1.0
    usb 1-1.2: configuration #1 chosen from 1 choice
    usb 2-1.3: new low speed USB device using ehci_hcd and address 3
    ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    ata4.00: ACPI _SDD failed (AE 0x5)
    usb 2-1.3: New USB device found, idVendor=04d9, idProduct=1603
    usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 2-1.3: Product: USB Keyboard
    usb 2-1.3: Manufacturer:
    usb 2-1.3: configuration #1 chosen from 1 choice
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input3
    generic-usb 0003:04D9:1603.0001: input,hidraw0: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:00:1d.0-1.3/input0
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input4
    generic-usb 0003:04D9:1603.0002: input,hidraw1: USB HID v1.10 Device [ USB Keyboard] on usb-0000:00:1d.0-1.3/input1
    usb 2-1.4: new low speed USB device using ehci_hcd and address 4
    usb 2-1.4: New USB device found, idVendor=093a, idProduct=2510
    usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 2-1.4: Product: USB Optical Mouse
    usb 2-1.4: Manufacturer: PixArt
    usb 2-1.4: configuration #1 chosen from 1 choice
    input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input5
    generic-usb 0003:093A:2510.0003: input,hidraw2: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:1d.0-1.4/input0
    ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    ata3.00: ACPI _SDD failed (AE 0x5)
    ata3.00: ACPI: failed the second time, disabled
    ata3.00: ATAPI: ASUS DVD-E818A9T b, 2.00, max UDMA/133, ATAPI AN
    ata3.00: configured for UDMA/133
    scsi 2:0:0:0: CD-ROM ASUS DVD-E818A9T b 2.00 PQ: 0 ANSI: 5
    ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    ata4.00: ACPI _SDD failed (AE 0x5)
    ata4.00: ACPI: failed the second time, disabled
    ata4.00: supports DRM functions and may not be fully accessable.
    ata4.00: ATA-9: ST1000DM003-1ER162, CC43, max UDMA/133
    ata4.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
    ata4.00: supports DRM functions and may not be fully accessable.
    ata4.00: configured for UDMA/133
    scsi 3:0:0:0: Direct-Access ATA ST1000DM003-1ER1 CC43 PQ: 0 ANSI: 5
    sr0: scsi3-mmc drive: 24x/48x cd/rw xa/form2 cdda tray
    Uniform CD-ROM driver Revision: 3.20
    sr 2:0:0:0: Attached scsi CD-ROM sr0
    sd 3:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
    sd 3:0:0:0: [sda] 4096-byte physical blocks
    sd 3:0:0:0: [sda] Write Protect is off
    sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
    sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
    sda: sda1 sda2
    sd 3:0:0:0: [sda] Attached SCSI disk
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (sda8): mounted filesystem with ordered data mode
    dracut: Mounted root filesystem /dev/sda8
    dracut: Loading SELinux policy
    type=1404 audit(1437656444.995:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
    SELinux: 2048 avtab hash slots, 225596 rules.
    SELinux: 2048 avtab hash slots, 225596 rules.
    SELinux: 9 users, 12 roles, 3576 types, 179 bools, 1 sens, 1024 cats
    SELinux: 81 classes, 225596 rules
    SELinux: Completing initialization.
    SELinux: Setting up existing superblocks.
    SELinux: initialized (dev sda8, type ext3), uses xattr
    SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
    SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
    SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
    SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
    SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
    SELinux: initialized (dev devpts, type devpts), uses transition SIDs
    SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
    SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
    SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
    SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
    SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
    SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
    SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
    SELinux: initialized (dev proc, type proc), uses genfs_contexts
    SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
    SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
    SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
    type=1403 audit(1437656445.324:3): policy loaded auid=4294967295 ses=4294967295
    dracut:
    dracut: Switching root
    readahead: starting
    udev: starting version 147
    alloc irq_desc for 22 on node -1
    alloc kstat_irqs on node -1
    HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
    alloc irq_desc for 30 on node -1
    alloc kstat_irqs on node -1
    HDA Intel 0000:00:1b.0: irq 30 for MSI/MSI-X
    HDA Intel 0000:00:1b.0: setting latency timer to 64
    hda_codec: ALC887-VD: BIOS auto-probing.
    input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
    shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
    microcode: CPU0 sig=0x306c3, pf=0x2, revision=0x19
    platform microcode: firmware: requesting intel-ucode/06-3c-03
    microcode: CPU1 sig=0x306c3, pf=0x2, revision=0x19
    platform microcode: firmware: requesting intel-ucode/06-3c-03
    microcode: CPU2 sig=0x306c3, pf=0x2, revision=0x19
    platform microcode: firmware: requesting intel-ucode/06-3c-03
    microcode: CPU3 sig=0x306c3, pf=0x2, revision=0x19
    platform microcode: firmware: requesting intel-ucode/06-3c-03
    Microcode Update Driver: v2.00 , Peter Oruba
    sr 2:0:0:0: Attached scsi generic sg0 type 5
    sd 3:0:0:0: Attached scsi generic sg1 type 0
    r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
    r8169 0000:03:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
    r8169 0000:03:00.0: setting latency timer to 64
    r8169 0000:03:00.0: unknown MAC, using family default
    alloc irq_desc for 31 on node -1
    alloc kstat_irqs on node -1
    r8169 0000:03:00.0: irq 31 for MSI/MSI-X
    eth0: RTL8168b/8111b at 0xffffc9000554e000, 10:c3:7b:6d:20:38, XID 0c000800 IRQ 31
    parport_pc 00:0a: reported by Plug and Play ACPI
    parport0: PC-style at 0x378, irq 5 [PCSPP]
    ppdev: user-space parallel port driver
    kvm: disabled by bios
    tun: Universal TUN/TAP device driver, 1.6
    tun: (C) 1999-2004 Max Krasnyansky
    EXT3-fs (sda8): using internal journal
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (sda10): using internal journal
    EXT3-fs (sda10): mounted filesystem with ordered data mode
    SELinux: initialized (dev sda10, type ext3), uses xattr
    Adding 16777208k swap on /dev/sda9. Priority:-1 extents:1 across:16777208k
    SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
    NET: Registered protocol family 10
    lo: Disabled Privacy Extensions
    ip6_tables: (C) 2000-2006 Netfilter Core Team
    nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    ip_tables: (C) 2000-2006 Netfilter Core Team
    r8169: eth0: link down
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
    SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
    SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
    SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
    Bridge firewalling registered
    device virbr0-nic entered promiscuous mode
    New device virbr0-nic does not support netpoll
    Disabling netpoll for virbr0
    virbr0: starting userspace STP failed, starting kernel STP
    Ebtables v2.0 registered
    SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
    SELinux: initialized (dev proc, type proc), uses genfs_contexts
    SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
    lo: Disabled Privacy Extensions
    SELinux: initialized (dev proc, type proc), uses genfs_contexts
    hda-intel: Invalid position buffer, using LPIB read method instead.
    hda-intel: Invalid position buffer, using LPIB read method instead.
    hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
    fuse init (API version 7.13)
    ISO 9660 Extensions: Microsoft Joliet Level 3
    ISOFS: changing to secondary root
    SELinux: initialized (dev sr0, type iso9660), uses genfs_contexts
    rtusb init rt2870 —>
    usbcore: registered new interface driver rt2870
    usb 1-1.2: USB disconnect, address 3
    usb 1-1.1: new high speed USB device using ehci_hcd and address 4
    usb 1-1.1: New USB device found, idVendor=148f, idProduct=760b
    usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.1: Product: 802.11 n WLAN
    usb 1-1.1: Manufacturer: MediaTek
    usb 1-1.1: SerialNumber: 1.0
    usb 1-1.1: configuration #1 chosen from 1 choice
    usb 1-1.1: USB disconnect, address 4
    usb 1-1.2: new high speed USB device using ehci_hcd and address 5
    usb 1-1.2: New USB device found, idVendor=148f, idProduct=760b
    usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.2: Product: 802.11 n WLAN
    usb 1-1.2: Manufacturer: MediaTek
    usb 1-1.2: SerialNumber: 1.0
    usb 1-1.2: configuration #1 chosen from 1 choice
    usbcore: deregistering interface driver rt2870

    usbcore: registered new interface driver rt2870
    usb 1-1.2: USB disconnect, address 5
    usb 2-1.6: new high speed USB device using ehci_hcd and address 5
    usb 2-1.6: New USB device found, idVendor=148f, idProduct=760b
    usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 2-1.6: Product: 802.11 n WLAN
    usb 2-1.6: Manufacturer: MediaTek
    usb 2-1.6: SerialNumber: 1.0
    usb 2-1.6: configuration #1 chosen from 1 choice
    usb 2-1.6: USB disconnect, address 5
    usb 1-1.2: new high speed USB device using ehci_hcd and address 6
    usb 1-1.2: New USB device found, idVendor=148f, idProduct=760b
    usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.2: Product: 802.11 n WLAN
    usb 1-1.2: Manufacturer: MediaTek
    usb 1-1.2: SerialNumber: 1.0
    usb 1-1.2: configuration #1 chosen from 1 choice
    usb 2-1.3: USB disconnect, address 3
    usb 2-1.3: new low speed USB device using ehci_hcd and address 6
    usb 2-1.3: New USB device found, idVendor=04d9, idProduct=1603
    usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 2-1.3: Product: USB Keyboard
    usb 2-1.3: Manufacturer:
    usb 2-1.3: configuration #1 chosen from 1 choice
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input7
    generic-usb 0003:04D9:1603.0004: input,hidraw0: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:00:1d.0-1.3/input0
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input8
    generic-usb 0003:04D9:1603.0005: input,hidraw1: USB HID v1.10 Device [ USB Keyboard] on usb-0000:00:1d.0-1.3/input1
    usb 2-1.3: USB disconnect, address 6
    usb 2-1.3: new low speed USB device using ehci_hcd and address 7
    usb 2-1.3: New USB device found, idVendor=04d9, idProduct=1603
    usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 2-1.3: Product: USB Keyboard
    usb 2-1.3: Manufacturer:
    usb 2-1.3: configuration #1 chosen from 1 choice
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input9
    generic-usb 0003:04D9:1603.0006: input,hidraw0: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:00:1d.0-1.3/input0
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input10
    generic-usb 0003:04D9:1603.0007: input,hidraw1: USB HID v1.10 Device [ USB Keyboard] on usb-0000:00:1d.0-1.3/input1
    usb 2-1.3: USB disconnect, address 7
    usb 2-1.3: new low speed USB device using ehci_hcd and address 8
    usb 2-1.3: New USB device found, idVendor=04d9, idProduct=1603
    usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 2-1.3: Product: USB Keyboard
    usb 2-1.3: Manufacturer:
    usb 2-1.3: configuration #1 chosen from 1 choice
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input11
    generic-usb 0003:04D9:1603.0008: input,hidraw0: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:00:1d.0-1.3/input0
    input: USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input12
    generic-usb 0003:04D9:1603.0009: input,hidraw1: USB HID v1.10 Device [ USB Keyboard] on usb-0000:00:1d.0-1.3/input1

    [root@localhost 桌面]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 10:C3:7B:6D:20:38
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:31 Base address:0xc000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:8 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

    virbr0 Link encap:Ethernet HWaddr 52:54:00:4F:B2:4E
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:3953 (3.8 KiB)

    virbr0-nic Link encap:Ethernet HWaddr 52:54:00:4F:B2:4E
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:500
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    [root@localhost 桌面]# iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.

    virbr0 no wireless extensions.

    virbr0-nic no wireless extensions.

    [root@localhost 桌面]#

  36. Pingback引用通告: 2016新年好 | 李凡希的Blog

  37. 博主你好 我在RPi2上编译的mt7610ap加载之后似乎读不了配置,日志如下
    kernel: [47203.199782] RTMP_TimerListAdd: add timer obj b90cd050!
    kernel: [47203.620633] no file read method
    kernel: [47203.620657] Read file “/etc/Wireless/RT2870AP/RT2870AP.dat” failed(errCode=-1)!
    kernel: [47203.620670] 1. Phy Mode = 6
    kernel: [47203.620678] 2. Phy Mode = 6
    kernel: [47203.620687] NVM is Efuse and its size =1d[1e0-1fc]
    kernel: [47203.630202] ERROR!!! MT7601 E2PROM: WRONG VERSION 0xd, should be 12
    kernel: [47203.645531] 3. Phy Mode = 6
    kernel: [47203.645545] AntCfgInit: primary/secondary ant 0/1
    kernel: [47203.849695] RTMPSetPhyMode: channel is out of range, use first channel=0
    kernel: [47203.853012] MCS Set = 00 00 00 00 00
    kernel: [47203.870632] SYNC – BBP R4 to 20MHz.l
    kernel: [47206.072136] RTMP_TimerListAdd: add timer obj b90ccd60!
    kernel: [47206.072499] RTMPSetPhyMode: channel is out of range, use first channel=0
    kernel: [47206.555639] Main bssid = c8:3a:35:cc:ed:b2
    kernel: [47206.555662] <==== rt28xx_init, Status=0

    iwconfig中有ra0-ra15十六个interface
    请问有什么解决方法吗
    4.1.19-v7+

  38. hi,我在最后sudo modprobe mt7601Usta时被提示mt7601Usta not found, 百思不得其解,请帮我分析一下原因,我用的是360 wifi 3, 非常感谢!!!!!!!!!!1

      • Hi, 非常感谢您的回复,我是属于刚开始接触Linux,命令行还看不懂,我私自做主把命令都粘过来,还麻烦您帮我看一下,谢谢!
        root@zl-Tools:/home/zl/桌面/mt7601u# make
        make -C src/ osutil
        make[1]: 正在进入目录 `/home/zl/桌面/mt7601u/src’
        cp -f os/linux/Makefile.6.util /home/zl/桌面/mt7601u/src/os/linux/Makefile
        make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/zl/桌面/mt7601u/src/os/linux modules
        make[2]: 正在进入目录 `/usr/src/linux-headers-3.13.0-32-generic’
        Building modules, stage 2.
        MODPOST 1 modules
        make[2]:正在离开目录 `/usr/src/linux-headers-3.13.0-32-generic’
        make[1]:正在离开目录 `/home/zl/桌面/mt7601u/src’
        make -C src/ build_tools
        make[1]: 正在进入目录 `/home/zl/桌面/mt7601u/src’
        make -C tools
        make[2]: 正在进入目录 `/home/zl/桌面/mt7601u/src/tools’
        gcc -g bin2h.c -o bin2h
        make[2]:正在离开目录 `/home/zl/桌面/mt7601u/src/tools’
        /home/zl/桌面/mt7601u/src/tools/bin2h
        make[1]:正在离开目录 `/home/zl/桌面/mt7601u/src’
        make -C src/ osdrv
        make[1]: 正在进入目录 `/home/zl/桌面/mt7601u/src’
        cp -f os/linux/Makefile.6 /home/zl/桌面/mt7601u/src/os/linux/Makefile
        make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/zl/桌面/mt7601u/src/os/linux modules
        make[2]: 正在进入目录 `/usr/src/linux-headers-3.13.0-32-generic’
        CC [M] /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.o
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_INIT_CAL’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:889:8: warning: unused variable ‘Temperature’ [-Wunused-variable]
        UCHAR Temperature;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘NICInitMT7601RFRegisters’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1007:9: warning: unused variable ‘IdReg’ [-Wunused-variable]
        UINT32 IdReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘NICInitMT7601MacRegisters’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1045:9: warning: unused variable ‘IdReg’ [-Wunused-variable]
        UINT32 IdReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘NICInitMT7601BbpRegisters’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1087:6: warning: unused variable ‘IdReg’ [-Wunused-variable]
        INT IdReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_ChipSwitchChannel’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1385:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
        UINT32 value;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1214:6: warning: unused variable ‘IdReg’ [-Wunused-variable]
        INT IdReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601DisableTxRx’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1440:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
        return;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601UsbAsicRadioOff’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1667:9: warning: unused variable ‘Value’ [-Wunused-variable]
        UINT32 Value, ret;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601UsbAsicRadioOn’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1732:16: warning: unused variable ‘pChipOps’ [-Wunused-variable]
        RTMP_CHIP_OP *pChipOps = &pAd->chipOps;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1731:22: warning: unused variable ‘GloCfg’ [-Wunused-variable]
        WPDMA_GLO_CFG_STRUC GloCfg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_ReadChannelPwr’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:1847:10: warning: unused variable ‘bUseDefault’ [-Wunused-variable]
        BOOLEAN bUseDefault = TRUE;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601AsicTemperatureCompensation’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2224:6: warning: unused variable ‘IdReg’ [-Wunused-variable]
        INT IdReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_EnableTSSI’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2413:9: warning: unused variable ‘ret’ [-Wunused-variable]
        UINT32 ret;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2412:15: warning: unused variable ‘BBPReg’ [-Wunused-variable]
        UCHAR RFReg, BBPReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2412:8: warning: unused variable ‘RFReg’ [-Wunused-variable]
        UCHAR RFReg, BBPReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_InitDesiredTSSITable’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2546:16: warning: unused variable ‘offset’ [-Wunused-variable]
        UINT16 index, offset;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2546:9: warning: unused variable ‘index’ [-Wunused-variable]
        UINT16 index, offset;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_GetTssiCompensationParam’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2617:9: warning: unused variable ‘ret’ [-Wunused-variable]
        UINT32 ret;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2616:7: warning: unused variable ‘count’ [-Wunused-variable]
        UINT count;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2610:8: warning: unused variable ‘RFReg’ [-Wunused-variable]
        UCHAR RFReg, BBPReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_AsicTxAlcGetAutoAgcOffset’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:2884:8: warning: unused variable ‘BBPReg’ [-Wunused-variable]
        UCHAR BBPReg;
        ^
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c: In function ‘MT7601_Init’:
        /home/zl/桌面/mt7601u/src/os/linux/../../chips/mt7601.c:3334:24: warning: assignment from incompatible pointer type [enabled by default]
        pChipOps->DisableTxRx = MT7601DisableTxRx;
        ^
        LD [M] /home/zl/桌面/mt7601u/src/os/linux/mt7601Uap.o
        Building modules, stage 2.
        MODPOST 1 modules
        LD [M] /home/zl/桌面/mt7601u/src/os/linux/mt7601Uap.ko
        make[2]:正在离开目录 `/usr/src/linux-headers-3.13.0-32-generic’
        make[1]:正在离开目录 `/home/zl/桌面/mt7601u/src’
        make -C src/ osnet
        make[1]: 正在进入目录 `/home/zl/桌面/mt7601u/src’
        cp -f os/linux/Makefile.6.netif /home/zl/桌面/mt7601u/src/os/linux/Makefile
        make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/zl/桌面/mt7601u/src/os/linux modules
        make[2]: 正在进入目录 `/usr/src/linux-headers-3.13.0-32-generic’
        Building modules, stage 2.
        MODPOST 1 modules
        make[2]:正在离开目录 `/usr/src/linux-headers-3.13.0-32-generic’
        make[1]:正在离开目录 `/home/zl/桌面/mt7601u/src’
        root@zl-Tools:/home/zl/桌面/mt7601u# make install
        make -C src/ install
        make[1]: 正在进入目录 `/home/zl/桌面/mt7601u/src’
        make -C /home/zl/桌面/mt7601u/src/os/linux -f Makefile.6 install
        make[2]: 正在进入目录 `/home/zl/桌面/mt7601u/src/os/linux’
        mkdir -pv /etc/Wireless/RT2870AP
        cp -v /home/zl/桌面/mt7601u/src/../etc/Wireless/RT2870AP/RT2870AP.dat /etc/Wireless/RT2870AP/.
        “/home/zl/桌面/mt7601u/src/../etc/Wireless/RT2870AP/RT2870AP.dat” -> “/etc/Wireless/RT2870AP/./RT2870AP.dat”
        install -d /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        install -m 644 -c mt7601Uap.ko /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        /sbin/depmod -a 3.13.0-32-generic
        make[2]:正在离开目录 `/home/zl/桌面/mt7601u/src/os/linux’
        make -C /home/zl/桌面/mt7601u/src/os/linux -f Makefile.6.util install
        make[2]: 正在进入目录 `/home/zl/桌面/mt7601u/src/os/linux’
        install -d /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        install -m 644 -c rtutil7601Uap.ko /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        /sbin/depmod -a 3.13.0-32-generic
        make[2]:正在离开目录 `/home/zl/桌面/mt7601u/src/os/linux’
        make -C /home/zl/桌面/mt7601u/src/os/linux -f Makefile.6.netif install
        make[2]: 正在进入目录 `/home/zl/桌面/mt7601u/src/os/linux’
        install -d /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        install -m 644 -c rtnet7601Uap.ko /lib/modules/3.13.0-32-generic/kernel/drivers/net/wireless/
        /sbin/depmod -a 3.13.0-32-generic
        make[2]:正在离开目录 `/home/zl/桌面/mt7601u/src/os/linux’
        make[1]:正在离开目录 `/home/zl/桌面/mt7601u/src’
        root@zl-Tools:/home/zl/桌面/mt7601u# sudo modprobe mt7601Usta
        modprobe: FATAL: Module mt7601Usta not found.

        • 你编译的是那个AP模式的驱动吧?那modprobe时应该modprobe mt7601Uap。如果是我文章里说的那个驱动,才是mt7601Usta。那个AP驱动好像只能当AP模式用,如果要当无线网卡用,还是得用原来的sta驱动。

          • hi Fanxi, 经你点播找到问题所在,最后发出的错误变为:could not insert ‘m7601uUsta’: Exec format error, 这就是因为用的是第3代的缘故吧。我今天在网上还看到使用ndiswrapper,但是还是没有成功,不知道你那里还有没有更好的办法,谢谢!

          • Exec format error这一般是因为你的内核模块编译环境准备得不对,请参考http://www.freemindworld.com/blog/2015/150312_complie_kernel_module_for_raspberry_pi_2.shtml

  39. 您好!

    make的时候出现以下错误,麻烦您有空的时候帮看下。系统是Red Hat Enterprise Linux Server release 5.7,内核版本是2.6.18-274.el5

    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:1313:1: 警告:“RTUSBBulkCmdRspEventComplete”重定义
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:1288:1: 警告:这是先前定义的位置
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c: In function ‘rausb_autopm_put_interface’:
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c:124: 错误:隐式声明函数 ‘usb_autopm_put_interface’
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c:120: 警告:未使用的变量 ‘pm_usage_cnt’
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c: In function ‘rausb_autopm_get_interface’:
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c:155: 错误:隐式声明函数 ‘usb_autopm_get_interface’
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c:151: 警告:未使用的变量 ‘pm_usage_cnt’
    /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.c:157: 警告:在有返回值的函数中未发现 return 语句
    make[2]: *** [/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_usb_util.o] 错误 1
    make[1]: *** [_module_/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] 错误 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-274.el5-x86_64′
    make: *** [LINUX] 错误 2

    • 判断应该是Cent OS 5的内核太老了,不能支持这个驱动程序。所以最好要升级内核,或者找找看有没有更老的可以在这个内核上跑的驱动。

      另外,我找了一个很Tricky的通过修改代码绕过问题的方法,已经回复邮件给您参考。并不保证能用。

  40. Pingback引用通告: 将树莓派打造成无线路由器 | SuiYu.

回复 Li Fanxi 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据