This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM62A:无法在 SDK-LINUX-RT-edgeai-am62a-EVM-11.01.07.05 上 ping 以太网

Guru**** 2550800 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1555949/processor-sdk-am62a-failed-to-ping-ethernet-on-sdk-linux-rt-edgeai-am62a-evm-11-01-07-05

器件型号:PROCESSOR-SDK-AM62A


工具/软件:

TI 专家:

我们有一个使用 AM62A 且 SDK 版本为 9.1 的工程、已完成 Marvell MV88Q2112 PHY 驱动程序的调试。

由于某些原因、我们现在已升级到最新的 11.01 RTLinux SDK。 在新的 SDK 上、无法成功 ping 通以太网。 请帮助分析可能的原因。

ping 命令始终返回“Network is unreachable“(无法访问网络)

root@am62axx-evm:~# ping 192.168.1.100
ping: connect: Network is unreachable

ifconfig 信息  

root@am62axx-evm:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.198  netmask 255.255.255.255  broadcast 0.0.0.0
        inet6 fe80::625:e8ff:feb1:698c  prefixlen 64  scopeid 0x20<link>
        ether 04:25:e8:b1:69:8c  txqueuelen 1000  (Ethernet)
        RX packets 21  bytes 1260 (1.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9  bytes 726 (726.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethtool 信息

root@am62axx-evm:~# ethtool eth0
Settings for eth0:
        Supported ports: [  ]
        Supported link modes:   100baseT1/Full
                                1000baseT1/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT1/Full
                                1000baseT1/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: off
        master-slave cfg: forced master
        master-slave status: master
        Port: Twisted Pair
        PHYAD: 2
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x000020f7 (8439)
                               drv probe link ifdown ifup rx_err tx_err hw
        Link detected: yes
        SQI: 15/15

dmesg 信息

root@am62axx-evm:~# dmesg | grep am65-cpsw-nuss
[    1.702480] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[    1.739917] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[    1.739925] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512, Policers 32
[    1.740744] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
[    1.781292] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[    6.971283] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:02] driver [mv88q2112] (irq=POLL)
[    6.971300] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
[   10.152251] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

  从主机 PC ping 电路板时、我可以通过 tcpdump 捕获一些 ARP 数据包。

root@am62axx-evm:~# tcpdump -i eth0 -v
[ 4762.694189] am65-cpsw-nuss 8000000.ethernet eth0: entered promiscuous mode
[ 4762.694284] audit: type=1700 audit(1748549262.513:4): dev=eth0 prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
[ 4762.694597] audit: type=1300 audit(1748549262.513:4): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=107 a2=1 a3=ffffd84a0fa0 items=0 ppid=845 pid=3074 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0)
[ 4762.694626] audit: type=1327 audit(1748549262.513:4): proctitle=74637064756D70002D690065746830002D76
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
20:07:43.031649 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:44.055663 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:46.104761 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:47.128682 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:48.151815 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:50.199762 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:51.224599 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:52.247652 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:53.271986 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:54.295636 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46
20:07:55.319710 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has am62axx-evm tell 192.168.1.100, length 46

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Chi Chen、  

    对延迟响应表示歉意。  

    请问您是如何获取您的 IP 地址的? 即它是动态分配还是静态/手动配置?

    我注意到您的网络掩码为 255.255.255.255、这是个问题、因为这意味着您的 AM62A 板及其连接的器件不会位于同一子网、因此 ping 失败的原因可能是。

    -道林