- 论坛徽章:
- 0
|
本帖最后由 石世荣 于 2014-12-23 13:38 编辑
怎么还没高人出现,,,
都搞了好多天了还没搞好,现在又重新去找了个叫PO_MT7601U_LinuxSTA_3.0.0.4_20130913的驱动,然后按照网上说的
把common/rtusb_dev_id.c加上{USB_DEVICE(0x148f,0x7601)}。
把os/linux/config.mk 里的
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y,
然后make
报
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__ );
^
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__ );
的错误,
网上有大神说这个错误是因为编译选项开启了-Werror,可以这样解决:
修改/lib/modules/`uname -r`/build/Makefile
#gedit /lib/modules/`uname -r`/build/Makefile
查找-Werror 去掉下面4段文本
-Werror-implicit-function-declaration \
,-Werror=implicit-int
,-Werror=strict-prototypes
,-Werror=date-time
再make,
又报错
/home/ssr/文档/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
^
/home/ssr/文档/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
pOSFSInfo->fsgid = current_fsgid();
于是按照另外的帖子
把rt_linux.c里面报错的那里:
current_fsuid() 跟 current_fsgid()改成:
current_fsuid().val
current_fsgid().val
再make,警告很多但总算没报错,
然后make install
但是在最后一步modprobe rt2870sta的时候,提示找不到rt2870sta这个模块,鼓捣了很久也没弄好。
可是重启之后WIFI启动了,正高兴的时候结果发现,只要一联网就死机,怎么办? |
|