TIwilliam hill官网
直播中

颜小玲

7年用户 162经验值
私信 关注
[问答]

lan8710 双网口

1. mii 模式接入2路phy lan8710,phy地址phy1 为0 ,phy2为1,dual mac模式;
2.2路ip配置分别为192.168.0.8 192.168.1.8;
3.当2路都接入交换机时不停的up down;
[ 4082.624549] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
root@ARM:/lib# [ 4084.602947] phy->addr = 1,slave_port = 2phy->addr = 1,slave_port = 2
[ 4085.616926] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Half - flow control off
[ 4085.649686] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 4087.183188] phy->addr = 0,slave_port = 1phy->addr = 1,slave_port = 2
[ 4087.665679] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 4089.222960] phy->addr = 0,slave_port = 1
[ 4089.226767] cpsw 4a100000.ethernet eth0: Link is Down
[ 4089.713149] phy->addr = 1,slave_port = 2phy->addr = 0,slave_port = 1
[ 4090.225759] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 4091.762943] phy->addr = 1,slave_port = 2
[ 4091.766751] cpsw 4a100000.ethernet eth1: Link is Down
[ 4092.293187] phy->addr = 0,slave_port = 1phy->addr = 1,slave_port = 2
[ 4092.785896] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 4095.332954] phy->addr = 0,slave_port = 1
[ 4095.336761] cpsw 4a100000.ethernet eth0: Link is Down
[ 4095.833229] phy->addr = 1,slave_port = 2phy->addr = 0,slave_port = 1
[ 4096.335757] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow con
trol rx/tx
4  down掉eth1 开始恢复正常,也能ping通;
root@arm:/lib# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=128 time=0.419 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=128 time=0.442 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=128 time=0.427 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=128 time=0.417 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=128 time=0.392 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=128 time=0.416 ms
5  比较奇怪的是我把这一路网口的ip改到192.168.1.8,竟然能ping竟然还是能ping通


同样的现象在eth1上也一样;
感觉像是交换层面的问题,请ti的专家们指导一下;

回帖(5)

罗兰君

2018-6-1 02:08:43
您好,我们的双网口有3种模式可以配置,请您首先参考下这篇文档:
http://processors.wiki.ti.com/index.php/SK_ETH
举报

颜小玲

2018-6-1 02:26:31
引用: 344868615qq 发表于 2018-6-1 02:08
您好,我们的双网口有3种模式可以配置,请您首先参考下这篇文档:
http://processors.wiki.ti.com/index.php/SK_ETH

Jian Zhou ,这些东西怎么配置编译条件,我看不懂,或者哪个app的源码,谢谢
举报

罗兰君

2018-6-1 02:43:18
引用: ally4462 发表于 2018-6-1 02:26
Jian Zhou ,这些东西怎么配置编译条件,我看不懂,或者哪个app的源码,谢谢

这个是在文件系统的/etc目录下的init脚本里配置的。
举报

颜小玲

2018-6-1 02:54:25
引用: 344868615qq 发表于 2018-6-1 02:43
这个是在文件系统的/etc目录下的init脚本里配置的。

已解决,将芯片从lan8710->lan8720 ,接口从mii->rmii方式,不再出现不停up down的情况,也不会一个逻辑网口ping通2个物理网口的情况;
举报

更多回帖

发帖
×
20
完善资料,
赚取积分