找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6978|回复: 12

MT7621A的单个物理接口的路由器板子WAN口无法联网

[复制链接]
发表于 2016-3-23 19:41 | 显示全部楼层 |阅读模式
本帖最后由 BlueCode 于 2016-3-23 20:10 编辑

如题:最近小弟在做一款自己定制的路由器板子,配置如下:

SoC CPU MHz RAM MBRAM MB WLAN Hardware WLAN2.4 WLAN5.0 Gbit ports USB
MTK MT7621A 88016MB 64MB MTK MT7603EN + MT7612EN b/g/n ac/n 1 1x 3.0 1X2.0

板子图片:

系统使用:openwrt 15.05 【 (Chaos Calmer, r48205)】
目前uboot及固件以及正常加载,遇到一个问题,该主板只有一个物理网口,  想用来做WAN口使用, 可是查了多种资料,修改了无数次/etc/config/network的配置,依然无法连接上层的网络:
如下是配置文件
  1. root@RayBoxMaster:/# cat /etc/config/network

  2. config interface 'loopback'
  3.         option ifname 'lo'
  4.         option proto 'static'
  5.         option ipaddr '127.0.0.1'
  6.         option netmask '255.0.0.0'

  7. config globals 'globals'
  8.         option ula_prefix 'fda0:9c2a:52d0::/48'

  9. config interface 'lan'
  10.         option ifname 'eth0.1'
  11.         option force_link '1'
  12.         #option macaddr 'e6:c3:75:fa:c7:bd'
  13.         option type 'bridge'
  14.         option proto 'static'
  15.         option ipaddr '192.168.61.1'
  16.         option netmask '255.255.255.0'
  17.         option ip6assign '60'

  18. config interface 'wan'
  19.         option ifname 'eth0.2'
  20.         #option force_link '1'
  21.         #option macaddr 'e6:c3:75:fa:c7:be'
  22.         option proto 'dhcp'
复制代码

如下是串口输出信息:
  1. root@RayBoxMaster:/# [ 2657.030000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  2. [ 2660.920000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  3. [ 2729.530000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  4. [ 2732.070000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  5. [ 2796.230000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  6. [ 2798.770000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  7. [ 2850.330000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  8. [ 2854.180000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  9. [ 2916.030000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  10. [ 2918.590000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  11. [ 2952.040000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  12. [ 2954.630000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  13. [ 3149.780000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  14. [ 3153.680000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  15. [ 3348.850000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  16. [ 3351.330000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
  17. [ 3459.080000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link down
  18. [ 3461.770000] ralink_soc_eth 1e100000.ethernet eth0: port 4 link up
复制代码

把唯一的网口设置成wan口,死活连不上……


我发现eth0获取不到上层路由的IP,而且网口灯也不亮,但是网卡是正常的,之前从uboot刷固件是通过tftp用这个网卡和PC连接刷入的; 驱动应该也是没有问题,而且我拔掉网线的时候,TTL是有打印eth0 down掉的
这个应该怎么配,求大神们解惑啊{:soso_e134:}



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2016-3-23 19:45 | 显示全部楼层
也参考了weereew的帖子:wr703n刷openwrt单网口wan、lan自动识别切换达成:
https://www.right.com.cn/forum/thread-75532-1-1.html

也参照配置,都没有成功。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-23 20:30 | 显示全部楼层
都自己定制路由器了,为何要用MT7621A + mt7603 / mt7612这种方案?
Openwrt对这方案的支持还不成熟,问题很多。
另外我看Trunk上新支持的几款MT7621A路由都改用mt7602 + mt7612的无线芯片了。
难道mt7603有问题?

点评

硬件是其他团队做的,我现在主要做固件编译移植,用mt7603e作为2.4G wifi 芯片,主要是它支持MIMO 2X2, 确实发现问题很多,好不容易把固件编译运行起来,现在就是唯一的网口无法设置为WAN口, ttl一直报down ,lin  详情 回复 发表于 2016-3-24 08:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-23 21:59 | 显示全部楼层
USB3.0不加屏蔽会不会干扰哦

点评

多谢你的提醒,网上搜了下,好像USB3.0与2.4G无线设备确实会产生干扰,这个再给硬件团队提一下,现在只是测试版,还有许多需要改进的地方。  详情 回复 发表于 2016-3-24 08:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-24 08:47 | 显示全部楼层
daidai1984 发表于 2016-3-23 20:30
都自己定制路由器了,为何要用MT7621A + mt7603 / mt7612这种方案?
Openwrt对这方案的支持还不成熟,问题 ...

硬件是其他团队做的,我现在主要做固件编译移植,用mt7603e作为2.4G wifi 芯片,主要是它支持MIMO 2X2,
确实发现问题很多,好不容易把固件编译运行起来,现在就是唯一的网口无法设置为WAN口, ttl一直报down ,link;
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-24 08:53 | 显示全部楼层
好猫不一样 发表于 2016-3-23 21:59
USB3.0不加屏蔽会不会干扰哦

多谢你的提醒,网上搜了下,好像USB3.0与2.4G无线设备确实会产生干扰,这个再给硬件团队提一下,现在只是测试版,还有许多需要改进的地方。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-24 14:11 | 显示全部楼层
自己顶一下,别让帖子沉了。求大神......
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-25 14:38 | 显示全部楼层
既然你只有一个网口,貌似你不应该会有eth0.1 / eth0.2这两个硬件网卡。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-26 11:19 来自手机 | 显示全部楼层
这个soc不是集成了5口交换机了吗?

点评

是的,不过我们只设计了一个口作为WAN,没有用其他口。所以现在就是WAN不通  详情 回复 发表于 2016-3-26 15:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-26 15:02 | 显示全部楼层
verycd 发表于 2016-3-26 11:19
这个soc不是集成了5口交换机了吗?

是的,不过我们只设计了一个口作为WAN,没有用其他口。所以现在就是WAN不通
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-26 15:42 | 显示全部楼层
如果这货量产,价值如何?
我现在最想要的是千兆网口和Sata接口。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-30 21:54 | 显示全部楼层
能检测up以及down,驱动肯定是没有问题的,建议先使用swconfig查看一下内部交换机的信息,尤其的port,再看network里面switch配置对不对,而且要和wan的配置对应,这样下来应该就OK了

点评

谢谢你的回复,问题已经解决了,忘了结了 单网口的设备来说,是不存在switch的,所以,switch可以去掉了,而当时我的设备使用的是AR8035的phy,所以,网口直接使用eth0,划分到lan即可,而无需使用虚拟的eth0.0或  详情 回复 发表于 2016-3-31 15:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-31 15:11 | 显示全部楼层
本帖最后由 BlueCode 于 2016-3-31 15:12 编辑
shbaiyxr 发表于 2016-3-30 21:54
能检测up以及down,驱动肯定是没有问题的,建议先使用swconfig查看一下内部交换机的信息,尤其的port,再看 ...

谢谢你的回复,问题已经解决了,忘了结了

单网口的设备来说,是不存在switch的,所以,switch可以去掉了,而当时我的设备使用的是AR8035的phy,所以,网口直接使用eth0,划分到lan即可,而无需使用虚拟的eth0.0或者是其他的
  1. <div class="blockcode"><blockquote>config interface 'loopback'
  2.         option ifname 'lo'
  3.         option proto 'static'
  4.         option ipaddr '127.0.0.1'
  5.         option netmask '255.0.0.0'

  6. config globals 'globals'
  7.         option ula_prefix 'fdca:d6bd:5c11::/48'

  8. config interface 'lan'
  9.         option ifname 'ra0 rai0'
  10.         option force_link '1'
  11.         option type 'bridge'
  12.         option proto 'static'
  13.         option ipaddr '192.168.60.1'
  14.         option netmask '255.255.255.0'

  15. config interface 'wan'
  16.         option ifname 'eth0'
  17.         option proto 'dhcp'

  18. config interface 'wan6'
  19.         option ifname '@wan'
  20.         option proto 'dhcpv6'
复制代码

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 18:10

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表