[已解决]360wifi_2代的驱动问题_ubuntu14.04x64

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
peteryeh64
论坛版主
帖子: 9386
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

[已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#1

帖子 peteryeh64 » 2015-12-16 17:41

代码: 全选

peteryeh64@peteryeh:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c534 Logitech, Inc. 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
peteryeh64@peteryeh:~$ lsusb
Bus 001 Device 005: ID 148f:760b Ralink Technology, Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c534 Logitech, Inc. 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

代码: 全选

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

看得到确没有驱动起来

代码: 全选

peteryeh64@peteryeh:~/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ make
make -C tools
make[1]: Entering directory `/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/3.19.0-39-generic/build SUBDIRS=/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.19.0-39-generic'
  CC [M]  /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
  ULONG i;
        ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:497:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
   NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
   ^
In file included from ./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 ./arch/x86/include/asm/cpumask.h:4,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/thread_info.h:23,
                 from include/linux/thread_info.h:54,
                 from ./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/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
./arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
 void *memmove(void *dest, const void *src, size_t count);
       ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:499:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
   NdisMoveMemory(skb->tail, pData, DataSize);
   ^
In file included from ./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 ./arch/x86/include/asm/cpumask.h:4,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/thread_info.h:23,
                 from include/linux/thread_info.h:54,
                 from ./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/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
./arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
 void *memmove(void *dest, const void *src, size_t count);
       ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:650:20: warning: assignment makes integer from pointer without a cast [enabled by default]
   pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
                    ^
In file included from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44:0,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
                 from /home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast [enabled by default]
   ((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
                                  ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:669:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
  SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
  ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:695:15: warning: assignment makes integer from pointer without a cast [enabled by default]
  pOSPkt->tail = pOSPkt->data + pOSPkt->len;
               ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/peteryeh64/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/peteryeh64/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();
                    ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: warning: passing argument 2 of ‘file_w->f_op->write’ from incompatible pointer type [enabled by default]
    file_w->f_op->write(file_w, pBuf, BufLen, &file_w->f_pos);
    ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
  UINT32 macAddr = 0, macValue = 0;
                      ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
  UINT32 macAddr = 0, macValue = 0;
         ^
/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/peteryeh64/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/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/peteryeh64/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.19.0-39-generic'
make: *** [LINUX] Error 2
peteryeh64@peteryeh:~/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ 
编译遇到的错误...(编译环境ubuntu14.04x64)
请各位前辈给个方向...

参考文章
附件
README_STA_usb.tar.gz
驱动说明文件
(4.52 KiB) 已下载 196 次
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 请问360wifi_2代的驱动问题

#2

帖子 vickycq » 2015-12-16 19:04

360wifi_2代
方案应该是 MT7601U,rt2800usb 不支持
参考
http://tieba.baidu.com/p/2783842865
https://wireless.wiki.kernel.org/en/use ... /rt2800usb
(rt2800usb) Unsupported chips
* MT7601U 802.11b/g/n 1T1R 2.4 GHz USB Single Chip. (4.2+) (Git tree: http://github.com/kuba-moo/mt7601u )
家15.04
Linux 4.2 新添加了 MT7601U 的驱动
https://github.com/torvalds/linux/tree/ ... ek/mt7601u
建议试用 4.2 内核

需要固件 mt7601u.bin
在 Ubuntu 套件库中没有搜到:http://packages.ubuntu.com/search?mode= ... n=contents
可以从这里获得:
官方驱动中 DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/mcu/bin/MT7601.bin,拷贝到 /lib/firmware/mt7601u.bin


另外可用的驱动:
Now that Kernel 4.2 has been released which contains a driver for mt7601u, these repositories are now deprecated.
https://github.com/porjo/mt7601
https://github.com/kuba-moo/mt7601u

另外参考 https://github.com/raspberrypi/linux/issues/1090
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
peteryeh64
论坛版主
帖子: 9386
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: 请问360wifi_2代的驱动问题

#3

帖子 peteryeh64 » 2015-12-16 22:15

附件
ok-success.png
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#4

帖子 vickycq » 2015-12-24 9:09

hmm...我也买了一块 MT7601UN 的无线网卡(360随身wifi 2代),直接在 debian 的 4.2 内核上测试,稍微传输一点数据就会导致死机。
github 上一看,原来 "...kernel 4.2 is missing the last few DMA patches..."
不知 4.3 能否稳定运作

你是自己编译的么,是否稳定?
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#5

帖子 vickycq » 2015-12-25 16:46

debian testing 内核升级到 4.3 了。插上一试,完全无法使用

代码: 全选

Dec 25 13:37:46 localhost kernel: [  206.580314] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.580337] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e580 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:46 localhost kernel: [  206.598969] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.598992] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e590 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:46 localhost kernel: [  206.599306] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.599328] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e5a0 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:49 localhost kernel: [  209.434362] ieee80211 phy3: wlx24050f7bac46: No probe response from AP 88:25:93:5b:c7:47 after 500ms, disconnecting.
Dec 25 13:37:49 localhost kernel: [  209.794400] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:49 localhost kernel: [  210.094441] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.394485] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.694495] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.994570] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.994593] mt7601u 2-2:1.0: Error: mt7601u_mcu_wait_resp timed out
Dec 25 13:37:51 localhost kernel: [  211.494986] mt7601u 2-2:1.0: Error: send MCU cmd failed:-110
:Cry
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#6

帖子 vickycq » 2015-12-25 16:46

debian testing 内核升级到 4.3 了。插上一试,完全无法使用

代码: 全选

Dec 25 13:37:46 localhost kernel: [  206.580314] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.580337] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e580 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:46 localhost kernel: [  206.598969] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.598992] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e590 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:46 localhost kernel: [  206.599306] xhci_hcd 0000:05:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 8 comp_code 13
Dec 25 13:37:46 localhost kernel: [  206.599328] xhci_hcd 0000:05:00.0: Looking for event-dma 000000008401e5a0 trb-start 000000008401e4a0 trb-end 000000008401e4b0 seg-start 000000008401e000 seg-end 000000008401eff0
Dec 25 13:37:49 localhost kernel: [  209.434362] ieee80211 phy3: wlx24050f7bac46: No probe response from AP 88:25:93:5b:c7:47 after 500ms, disconnecting.
Dec 25 13:37:49 localhost kernel: [  209.794400] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:49 localhost kernel: [  210.094441] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.394485] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.694495] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.994570] mt7601u 2-2:1.0: Warning: mt7601u_mcu_wait_resp retrying
Dec 25 13:37:50 localhost kernel: [  210.994593] mt7601u 2-2:1.0: Error: mt7601u_mcu_wait_resp timed out
Dec 25 13:37:51 localhost kernel: [  211.494986] mt7601u 2-2:1.0: Error: send MCU cmd failed:-110
:Cry
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
peteryeh64
论坛版主
帖子: 9386
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#7

帖子 peteryeh64 » 2015-12-25 17:24

vickycq 写了:hmm...我也买了一块 MT7601UN 的无线网卡(360随身wifi 2代),直接在 debian 的 4.2 内核上测试,稍微传输一点数据就会导致死机。
github 上一看,原来 "...kernel 4.2 is missing the last few DMA patches..."
不知 4.3 能否稳定运作

你是自己编译的么,是否稳定?
我是按照下面的文章操作的...使用起來正常穩定...
https://github.com/kuba-moo/mt7601u
我的運行環境是ubuntu14.04x64...內核是3.19.0-39
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#8

帖子 vickycq » 2015-12-28 14:57

为 sunxi-3.4 内核编译官方驱动
Linux localhost 3.4.109-sun7i #4 SMP PREEMPT Sun Oct 11 14:32:15 CEST 2015 armv7l GNU/Linux

代码: 全选

cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make
make install
chmod 755 /lib/modules/3.4.109-sun7i/kernel/drivers/net/wireless/mt7601Usta.ko
modprobe mt7601Usta
echo 148f 760b > /sys/bus/usb/drivers/rt2870/new_id
此时会出现错误
ERROR: 256 KiB atomic DMA coherent pool is too small!
Please increase it with coherent_pool= kernel parameter!
<-- ERROR in Alloc Bulk buffer for HTTxContext!
---> RTMPFreeTxRxRingMemory
<--- RTMPFreeTxRxRingMemory
ERROR!!! Failed to allocate memory - TxRxRing
于是编辑 /boot/boot.cmd 或 uEnv.txt 添加参数 coherent_pool=2M

代码: 全选

mkimage -C none -A arm -T script -d boot.cmd boot.scr
reboot
modprobe mt7601Usta
echo 148f 760b > /sys/bus/usb/drivers/rt2870/new_id
之后可以看到并正常使用 ra0

问题是:dmesg is flooded with
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...
RtmpUSBNullFrameKickOut - Send NULL Frame @24 Mbps...

也可添加 148f:760b 到 源代码 common/rtusb_dev_id.c
找到这一段

代码: 全选

#ifdef MT7601U
        {USB_DEVICE(0x148f,0x6370)}, /* Ralink 6370 */
        {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */
#endif /* MT7601U */
添加 id 即可
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#9

帖子 vickycq » 2015-12-28 16:33

由于没在源代码中找到 debug verbose level 控制,只好将相关的 DBGPRINT 直接注释掉

代码: 全选

--- common/cmm_data_usb.c.old   2015-12-28 09:31:43.000000000 +0100
+++ common/cmm_data_usb.c       2015-12-28 09:20:52.000000000 +0100
@@ -1178,7 +1178,7 @@
 
                /* Fill out frame length information for global Bulk out arbitor*/
                /*pNullContext->BulkOutSize = TransferBufferLength;*/
-               DBGPRINT(RT_DEBUG_TRACE, ("%s - Send NULL Frame @%d Mbps...\n", __FUNCTION__, RateIdToMbps[pAd->CommonCfg.TxRate]));
+/*             DBGPRINT(RT_DEBUG_TRACE, ("%s - Send NULL Frame @%d Mbps...\n", __FUNCTION__, RateIdToMbps[pAd->CommonCfg.TxRate]));*/
 #ifdef CONFIG_MULTI_CHANNEL
                if ((QueIdx == HCCA_PIPE) && (pAd->Multi_Channel_Enable == TRUE))
                        RTUSB_SET_BULK_FLAG(pAd, fRTUSB_BULK_OUT_DATA_NULL_HCCA);
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#10

帖子 vickycq » 2015-12-30 13:29

在另一块板子上用 4.3.3 主线内核,驱动情况不错。

代码: 全选

Linux debian-foxconn 4.3.3 #1 SMP Tue Dec 29 07:18:47 UTC 2015 armv7l GNU/Linux

代码: 全选

[  111.807285] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  111.968831] usb 1-1: New USB device found, idVendor=148f, idProduct=760b
[  111.975889] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  111.983422] usb 1-1: Product: 802.11 n WLAN
[  111.987851] usb 1-1: Manufacturer: MediaTek
[  111.992247] usb 1-1: SerialNumber: 1.0
[  112.227260] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[  112.380288] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
[  112.393023] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[  112.793671] mt7601u 1-1:1.0: EEPROM ver:0c fae:00
[  113.027347] usbcore: registered new interface driver mt7601u
[  113.123923] mt7601u 1-1:1.0 wlan1: renamed from wlan0
[  113.130423] systemd-udevd[1468]: renamed network interface wlan0 to wlan1
奇怪的是固件明明成功加载,lshw 却显示 firmware=N/A

代码: 全选

  *-network:1
       description: Wireless interface
       physical id: 2
       bus info: usb@1:1
       logical name: wlan1
       serial: 24:05:0f:7b:ac:46
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=mt7601u driverversion=4.3.3 firmware=N/A ip=192.168.1.105 link=yes multicast=yes wireless=IEEE 802.11bgn
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
qy117121
论坛版主
帖子: 50587
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#11

帖子 qy117121 » 2015-12-30 13:55

想起我去年的腾讯全民wifi了
编译了驱动,但是一插上wifi就 kernel panic

wifi现在弄没了。。。
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 [email protected]
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: [已解决]360wifi_2代的驱动问题_ubuntu14.04x64

#12

帖子 vickycq » 2015-12-30 14:13

qy117121 写了:想起我去年的腾讯全民wifi了
编译了驱动,但是一插上wifi就 kernel panic
好像也是 MT7601,貌似官方驱动在较新的内核上无法工作
github 上 kuba-moo 等人的驱动也有死机问题
从 4.2 开始加入内核的驱动 mt7601u 开发不够积极,问题多
不过还好 在 Linux 4.3.3 下 “能用”
kuba-moo 写了: The original vendor driver can be downloaded from MediaTek's website (http://www.mediatek.com/en/downloads1/d ... 7601u-usb/). However, version 3.0.0.4 is broken on recent kernels so you may want to grab one of the improved versions which people put up on GH (like this one:https://github.com/porjo/mt7601).
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复