mt7688 + AIR720 / AIR724 简单测试
-
首先,重新编译op,将Kernel modules ---> USB Support ---> 下的
kmod-usb-net
kmod-usb-net-rndiskmod-usb-serial
kmod-usb-serial-wwan
打开AT端口是ttyUSB2,但必须要修改内核里usb-serial才行。修改地方参考官方资料:http://ask.openluat.com/article/37
我懒得改了,直接测rndis。
启动后,看logrndis_host 1-1:1.0 eth1: register 'rndis_host' at usb-101c0000.ehci-1, RNDIS device, ac:62:4f:1f:3a:9d
发现新注册了eth1,我们手动将eth1添加到network中的wan部分。
/etc/config/networkconfig interface 'wan' option force_link '1' option macaddr '0c:ef:af:d2:a9:f2' option proto 'dhcp' option ifname 'eth1'
在nr一下(/etc/init.d/network restart)
ifconfig eth1root@Widora:~# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 0C:EF:AF:D2:A9:F2 inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::eef:afff:fed2:a9f2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40 errors:0 dropped:0 overruns:0 frame:0 TX packets:76 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3715 (3.6 KiB) TX bytes:15194 (14.8 KiB)
我们在7688中先尝试ping qq.com
root@Widora:~# ping qq.com PING qq.com (111.161.64.40): 56 data bytes 64 bytes from 111.161.64.40: seq=0 ttl=53 time=21.816 ms 64 bytes from 111.161.64.40: seq=1 ttl=53 time=19.773 ms 64 bytes from 111.161.64.40: seq=2 ttl=53 time=19.538 ms 64 bytes from 111.161.64.40: seq=3 ttl=53 time=15.324 ms ^C --- qq.com ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max = 15.324/19.112/21.816 ms
此时,ifconfig eth0,发现已经获取IP地址,电脑通过NEO的网口连接,可正常浏览网页,我们测个速。 AIR720
懒人固件: openwrt-ramips-mt7688-WIDORA32128-squashfs-sysupgrade.bin
值得一提的是上网和测试,CPU使用率一直极低,这应该是rndis接口的好处吧。
-
Air724 on MT7688 测速
-
请问系统重启后,/etc/config/network 又恢复成原来状态是什么原因?
-
@tuzhyi 两种原因:
1、重新编译的固件忘了选择overlay。
2、首次启动需要等待jffs2初始化完毕,大约1分钟。如果在这个时间之前修改文件系统,重启后一定会丢失。 -
@mangogeek 谢谢,是第二个原因!
紧急事务请联系:hello @ widora.io