usb wifi driver run in ubuntu support 360/xiaodu and with 3.13.0-32-generic

时间:2020-12-25 01:18:37

(为了实现usb-wifi用在linux系统上,需求解决方案,过程记录和如何实现)

重点解决3.13.0-32-generic内核编译 mt7601 usb wifi 驱动问题。

1:首先下载usb wifi driver run in ubuntu support 360/xiaodu and with 3.13.0-32-genericMT7601U_Linux usb驱动源代码

2:修改common/rtusb_dev_id.c文件,

find    {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */ then add the following rows to support your usb devices(examples)
 45     //modify by zhaoxi int date 3/29 2016 to support 360 wifi
 46     {USB_DEVICE(0x2955,0x0001)}, /* XiaoDu Wifi */
 47     {USB_DEVICE(0x2955,0x1001)}, /* XiaoDu Wifi */
 48     {USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi */
save and exit.

3:编译驱动源码,make && makeinstall

如果编译出错:make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-32-generic' 当前内核版本存在兼容问题

uname -r (查看内核版本,如果结果和我的内核版本是3.13.0-32-generic)
解决办法:cd /os/linux vi rt_linux.c

find current_fsuid();current_fsgid();

modify  them :

pOSFSInfo->fsuid = current_fsuid().val;
 pOSFSInfo->fsgid = current_fsgid().val;

save and exit

4:then sudo make && make install

 

common/rtusb_dev_id.c文件
-->