回答

收藏

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

Raspberry Pi Raspberry Pi 4928 人阅读 | 0 人回复 | 2015-03-09

本帖最后由 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


分享到:
回复

使用道具 举报

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

本版积分规则

关闭

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