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.

[参考译文] TMDS64EVM:AM642 EVM eth0 无载波、在定制构建根映像上带有 DP83867 PHY

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1648609/tmds64evm-am642-evm-eth0-no-carrier-with-dp83867-phy-on-custom-buildroot-image

器件型号: TMDS64EVM

器件:AM642 EVM
内核:6.10.0
BuildRoot 版本:master(commit c17d110b10,2026年05月22日)

您好:

我在 AM642 EVM 上提供了定制 BuildRoot 映像。eth0检测到以太网接口 ()、但链路与保持断开 NO-CARRIER

当前观察结果:

  • ip a 显示了:

    • eth0 AS <NO-CARRIER,BROADCAST,MULTICAST,UP>

    • 分配的 IP 地址: 192.168.1.10/24

  • ping 失败、数据包丢失 100%。

  • /sys/class/net/eth0/carrier 该函数 0

  • /sys/class/net/eth0/operstate 该函数 down

器件树配置:

phy-mode = "rgmii-rxid";

ethernet-phy@0 {
    bootph-all;
    reg = <0x00>;
    ti,rx-internal-delay = <0x07>;
    ti,fifo-depth = <0x01>;
    phandle = <0x18>;
};

相关 dmesg 日志:

dmesg | grep -i eth

[    1.610397] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA00903, cpsw version 0x6BA80903 Ports: 3 quirks:00000002
[    1.623332] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.4
[    1.630477] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[    1.650571] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 16
[  295.479596] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
[  295.488951] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
dmesg | grep -i phy

[    1.602221] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver TI DP83867
[  295.479596] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
[  295.488951] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
 
 

PHY 似乎可以正确地被检测为 TI DP83867、并且 DTS 配置似乎与硬件设置一致。 但是、接口永远不会建立载波。

希望能就其他检查或可能的配置问题提供任何指导。

谢谢你。

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

    您好、

    您提到您使用的是 TI EVM、您是否尝试过 TI.com 上的 AM64 WIC 映像?

    我不熟悉内置图像。 此图中是否包含 ethtool?  

    此致、

    Schuyler

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

    嗨、Schuyler
    是的、我们使用预构建的映像进行了测试、检测到以太网并正常工作。 我们目前正在使用 BuildRoot 构建映像、生成的映像还包括 ethtool

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

    尊敬的 Manish:

    就像我提到的,我不熟悉如何 buildroot 带来一个接口。 在这里、我假设这是 EVM、DTS 文件没有改变。

    ethtool eth0 显示什么? 请在控制台上发布报告内容。

    链路伙伴是多少?预期的链路速度是多少?

    您是否尝试过:

    IP 链路设置 eth0 up?  

    此致、

    Schuyler

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

    尊敬的 Schuyler:

    评估板上有三个可用的以太网端口: 2× ICSSG1× CPSW

    我们已成功调出 CPSW 以太网端口 并能够 ping 通连接的主机。 以下是日志:

    Welcome to Buildroot
    buildroot login: root
    # ip addr add 192.168.1.30/24 dev eth0
    # ip link set eth0 up
    [   39.563438] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [Generic PHY] (irq=POLL)
    [   39.572912] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    # [   43.687768] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    
    # ping 192.168.1.100
    PING 192.168.1.100 (192.168.1.100): 56 data bytes
    64 bytes from 192.168.1.100: seq=0 ttl=64 time=0.632 ms
    64 bytes from 192.168.1.100: seq=1 ttl=64 time=0.347 ms
    64 bytes from 192.168.1.100: seq=2 ttl=64 time=0.277 ms
    64 bytes from 192.168.1.100: seq=3 ttl=64 time=0.253 ms
    64 bytes from 192.168.1.100: seq=4 ttl=64 time=0.323 ms
    64 bytes from 192.168.1.100: seq=5 ttl=64 time=0.603 ms
    ^C
    
    --- 192.168.1.100 ping statistics ---
    6 packets transmitted, 6 packets received, 0% packet loss
    round-trip min/avg/max = 0.253/0.405/0.632 ms
    #
    

    但是、我们在使用 ICSSG 端口时遇到问题

    对于其中一个 ICSSG 端口、我们能够建立接口、并在电路板和主机侧检测到链路。 但是、我们无法在设备之间 ping 通。 日志如下所示:

    Welcome to Buildroot
    buildroot login: root
    # ip addr add 192.168.1.10
    ip: need "dev IFACE"
    # ip addr add 192.168.1.10/24 dev eth2
    # ip link set dev eth2 up
    [ 90.782973] remoteproc remoteproc8: powering up 300b4000.pru
    [ 90.793836...]
    

    对于第二个 ICSSG 端口、我们根本无法启动该接口:

    # ip addr add 192.168.1.20/24 dev eth1
    # ip link set dev eth1 up
    ip: SIOCSIFFLAGS: No such device
    #
    

    您能帮助我们了解导致这些问题的原因吗?如果您需要其他详细信息、请告诉我。

    谢谢
    Manish