取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Explorer
Explorer
286 次查看
注册日期: ‎12-01-2017

ZYNQ7000 EMIO ETH PING NORESPONSE

eth0 ps<-->mio<-->ksz9031

eth1 ps<-->emio<-->gmii2rgmii<-->ksz9031

eth1 网口ping不通,识别正常,u-boot下读phy寄存器正常。

时钟信号在示波器上量也正常,但是shell里面提示没有正确产生。

petalinux2018.3 vivado2018.3 webpack

 

各位专家是否有好的建议?

 

 

Net:   ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
eth0: ethernet@e000b000ZYNQ GEM: e000c000, phyaddr 7, interface gmii

Warning: ethernet@e000c000 (eth1) using random MAC address - 2a:a5:ef:15:4d:5b
, eth1: ethernet@e000c000
U-BOOT for SecondEth2018
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 33 (00:0a:35:00:1e:53)
Micrel KSZ9031 Gigabit PHY e000b000.ethernet-ffffffff:07: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:07, irq=POLL)
libphy: MACB_mii_bus: probed
macb e000c000.ethernet eth1: Cadence GEM rev 0x00020118 at 0xe000c000 irq 34 (00:0a:35:00:01:23)
Micrel KSZ9031 Gigabit PHY e000c000.ethernet-ffffffff:07: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e000c000.ethernet-ffffffff:07, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.

macb e000c000.ethernet eth1: link down
macb e000c000.ethernet eth1: unable to generate target frequency: 125000000 Hz
macb e000c000.ethernet eth1: link up (1000/Full)

 


---/\/\/\/\/\/\/\---
Always Online
0 项奖励
4 回复数
Highlighted
Xilinx Employee
Xilinx Employee
198 次查看
注册日期: ‎09-14-2018

看起来eth1也link up了?

可否linux下 ip a 看下eth1的状态?

 

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

0 项奖励
Highlighted
Explorer
Explorer
182 次查看
注册日期: ‎12-01-2017

专家您好,情况如下:

root@SecondEth2018:~# ls
root@SecondEth2018:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:35:00:1e:53 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:0a:35:00:01:23 brd ff:ff:ff:ff:ff:ff
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
root@SecondEth2018:~# ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:0a:35:00:1e:53 brd ff:ff:ff:ff:ff:ff
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0a:35:00:01:23 brd ff:ff:ff:ff:ff:ff
    inet 10.163.234.148/8 brd 10.255.255.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::20a:35ff:fe00:123/64 scope link
       valid_lft forever preferred_lft forever
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
root@SecondEth2018:~#

---/\/\/\/\/\/\/\---
Always Online
0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
174 次查看
注册日期: ‎09-14-2018

@sdyang 

看起来link是正常的,可以再试下:

1. ifconfig eth1 down后再up, 看看还能不能link up;

2. power on启动后,再soft 启动(reboot)下,看看是否能ping通。

3. 是否可能有其它上层因素导致ping不通的,比如对端的设置之类。

 

----------------------------------------------------------------------------------------------
如果帖子有帮助,别忘“接受为解决方案”或“奖励”。谢谢!
Don't forget to "Accept as solution" or "Kudo" if it helps. Thanks!
----------------------------------------------------------------------------------------------

0 项奖励
Explorer
Explorer
172 次查看
注册日期: ‎12-01-2017

情况如下:

对端交换机、路由器、台式机直连都试过了。不行,ifconfig中rx有错误。ifconfig up提示不能产生时钟,事件示波器测有时钟。

root@SecondEth2018:~# ls
root@SecondEth2018:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:1E:53
          inet addr:10.163.234.84  Bcast:10.163.235.255  Mask:255.255.254.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:5280 errors:0 dropped:0 overruns:0 frame:0
          TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:333366 (325.5 KiB)  TX bytes:45964 (44.8 KiB)
          Interrupt:33 Base address:0xb000

eth1      Link encap:Ethernet  HWaddr 00:0A:35:00:01:23
          inet addr:10.163.234.148  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::20a:35ff:fe00:123%lo/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:34 dropped:0 overruns:0 frame:34
          TX packets:6617 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1906670 (1.8 MiB)
          Interrupt:34 Base address:0xc000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:33 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3446 (3.3 KiB)  TX bytes:3446 (3.3 KiB)

root@SecondEth2018:~# ifconfig eth1 down
root@SecondEth2018:~# macb e000c000.ethernet eth1: link down

root@SecondEth2018:~# ifconfig eth1 up
macb e000c000.ethernet eth1: unable to generate target frequency: 25000000 Hz
root@SecondEth2018:~# macb e000c000.ethernet eth1: link up (100/Full)

root@SecondEth2018:~#

---/\/\/\/\/\/\/\---
Always Online
0 项奖励