查看: 4642|回复: 0

[求助] Raspberry Pi2驱动小米Wifi 编译失败

[复制链接]
  • TA的每日心情
    郁闷
    2015-3-11 16:44
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    发表于 2015-3-9 02:11:16 | 显示全部楼层 |阅读模式
    分享到:
    本帖最后由 baidu0216 于 2015-3-9 02:13 编辑

    请问有人在Pi2下驱动小米随身Wifi吗?

    我卡在DPO_MT7601U_LinuxSTA_3.0.0.4_20130913下make不会过,找过网路上很多文章,不过似乎没用

    https://groups.google.com/forum/#!topic/ustc_lug/zWCVlylXSyI

    我的狀況和他非常類似,不過下面沒有確切解決的方式
    所以上來求助大大們幫助


    下面是我的Pi2的終端機訊息

    root@raspberry:uname -r
    3.18.8-v7+
    root@raspberry:uname -a
    Linux raspberry 3.18.8-v7+ #765 SMP PREEMPT Thu Mar 5 15:47:06 GMT 2015 armv7l armv7l armv7l GNU/Linux
    root@raspberry:/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913# make
    make -C tools
    make[1]: Entering directory '/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory '/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
    /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
    cp -f os/linux/Makefile.6 /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
    make -C /home/linaro/Downloads/rpi-linux SUBDIRS=/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
    make[1]: Entering directory '/home/linaro/Downloads/rpi-linux'
      CC [M]  /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
    /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
    /home/linaro/Downloads/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);
           ^
    /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5359:27: warning: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type
       RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
                               ^
    In file included from /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:64:0,
                     from /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:28:
    /home/linaro/Downloads/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(
          ^
    /home/linaro/Downloads/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;
                          ^
    /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
    /home/linaro/Downloads/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__ );
                                                                                         ^
    /home/linaro/Downloads/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__ );
                                                                                                   ^
    /home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
    /home/linaro/Downloads/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:257: recipe for target '/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o' failed
    make[2]: *** [/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o] Error 1
    Makefile:1381: recipe for target '_module_/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed
    make[1]: *** [_module_/home/linaro/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
    make[1]: Leaving directory '/home/linaro/Downloads/rpi-linux'
    Makefile:398: recipe for target 'LINUX' failed
    make: *** [LINUX] Error 2


    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-11-19 15:28 , Processed in 0.118458 second(s), 15 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.