TI中文支持网
TI专业的中文技术问题搜集分享网站

AM5718: pru1支持两路100MH以太网无法通信

Part Number:AM5718

专家们好:

        我们使用am5718的pru1支持两路100MH以太网, phy已经识别,配置IP地址后无法成功ping通。实用SDK版本:ti-processor-sdk-linux-am57xx-evm-04.03.00.05

查找原因发现启动日志中相关内容如下:

***************************************************************

[ 7.339728] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[ 7.339810] remoteproc remoteproc0: 58820000.ipu is available
[ 7.339904] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.339910] remoteproc remoteproc0: powering up 58820000.ipu
[ 7.339929] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.339933] remoteproc remoteproc0: request_firmware failed: -2
[ 7.340073] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
[ 7.340142] remoteproc remoteproc1: 55020000.ipu is available
[ 7.340200] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 7.340204] remoteproc remoteproc1: powering up 55020000.ipu
[ 7.340222] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 7.340226] remoteproc remoteproc1: request_firmware failed: -2
[ 7.494824] ata1: SATA link down (SStatus 0 SControl 300)
[ 7.844529] ti-pruss 4b200000.pruss: creating PRU cores and other child platform devices
[ 7.900999] davinci_mdio 4b232400.mdio: davinci mdio revision 1.6
[ 7.901003] libphy: 4b232400.mdio: probed
[ 7.923018] davinci_mdio 4b232400.mdio: phy[3]: device 4b232400.mdio:03, driver TI DP83822 10/100 Mbps PHY
[ 7.923023] davinci_mdio 4b232400.mdio: phy[4]: device 4b232400.mdio:04, driver TI DP83822 10/100 Mbps PHY
[ 7.923153] ti-pruss 4b280000.pruss: creating PRU cores and other child platform devices
[ 7.980999] davinci_mdio 4b2b2400.mdio: davinci mdio revision 1.6
[ 7.981003] libphy: 4b2b2400.mdio: probed
[ 7.985135] remoteproc remoteproc2: 4b234000.pru0 is available
[ 7.985179] pru-rproc 4b234000.pru0: PRU rproc node /ocp/pruss_soc_bus@4b226000/pruss@4b200000/pru@4b234000 probed successfully
[ 7.985383] remoteproc remoteproc3: 4b238000.pru1 is available
[ 7.985416] pru-rproc 4b238000.pru1: PRU rproc node /ocp/pruss_soc_bus@4b226000/pruss@4b200000/pru@4b238000 probed successfully
[ 7.985599] remoteproc remoteproc4: 4b2b4000.pru0 is available
[ 7.985633] pru-rproc 4b2b4000.pru0: PRU rproc node /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/pru@4b2b4000 probed successfully
[ 7.985807] remoteproc remoteproc5: 4b2b8000.pru1 is available
[ 7.985837] pru-rproc 4b2b8000.pru1: PRU rproc node /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/pru@4b2b8000 probed successfully
[ 7.991615] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 7.991826] prueth pruss2_eth: port 1: using random MAC addr: 4e:14:f2:8e:70:5f
[ 7.992021] prueth pruss1_eth: pruss MC Mask 0:0:0:0:0:0
[ 7.992207] prueth pruss1_eth: port 1: using random MAC addr: 06:83:c2:31:2c:d4
[ 8.092174] prueth pruss1_eth: port 2: using random MAC addr: ca:8b:92:e9:f8:8b
[ 8.192209] prueth pruss1_eth: request for sync latch pins failed: -19
[ 9.153520] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.153640] prueth pruss2_eth: port 1: using random MAC addr: e2:84:e8:93:cf:b1
[ 9.155221] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.155335] prueth pruss2_eth: port 1: using random MAC addr: 92:84:d3:6f:25:50
[ 9.322629] usbcore: registered new interface driver usbfs
[ 9.323153] usbcore: registered new interface driver hub
[ 9.323689] usbcore: registered new device driver usb
[ 9.375565] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 9.375584] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 9.376578] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[ 9.376616] xhci-hcd xhci-hcd.0.auto: irq 437, io mem 0x48890000
[ 9.377678] hub 1-0:1.0: USB hub found
[ 9.377704] hub 1-0:1.0: 1 port detected
[ 9.378272] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.378395] prueth pruss2_eth: port 1: using random MAC addr: 7a:8c:a6:f9:37:c3
[ 9.378837] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.378940] prueth pruss2_eth: port 1: using random MAC addr: 6e:c3:fc:ed:ad:0c
[ 9.379059] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 9.379070] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 9.379131] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 9.380118] hub 2-0:1.0: USB hub found
[ 9.380142] hub 2-0:1.0: 1 port detected
[ 9.380609] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.380719] prueth pruss2_eth: port 1: using random MAC addr: ae:c2:4c:a5:b6:b9
[ 9.381300] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.381401] prueth pruss2_eth: port 1: using random MAC addr: 56:91:fd:77:7c:9a
[ 9.381485] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 9.381502] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 9.381721] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[ 9.381756] xhci-hcd xhci-hcd.1.auto: irq 438, io mem 0x488d0000
[ 9.395525] hub 3-0:1.0: USB hub found
[ 9.395552] hub 3-0:1.0: 1 port detected
[ 9.396021] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.396132] prueth pruss2_eth: port 1: using random MAC addr: c6:9c:00:78:d9:e9
[ 9.396531] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.396630] prueth pruss2_eth: port 1: using random MAC addr: ea:96:bd:6d:16:af
[ 9.396745] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 9.396755] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 9.396810] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 9.397754] hub 4-0:1.0: USB hub found
[ 9.397778] hub 4-0:1.0: 1 port detected
[ 9.398213] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.398319] prueth pruss2_eth: port 1: using random MAC addr: 3e:a3:65:b7:29:4f
[ 9.399476] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 9.399583] prueth pruss2_eth: port 1: using random MAC addr: de:fe:9c:31:c0:cc
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
Starting Synchronize System and HW clocks…
[ OK ] Started Print notice about GPLv3 packages.
[ 9.842123] Micrel KSZ9031 Gigabit PHY 48485000.mdio:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=-1)
[FAILED] Failed to start Synchronize System and HW c[ 9.868428] cpts ptp bc clkid 0
locks.
[ 9.877107] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 9.884553] net eth0: initializing cpsw version 1.15 (0)
See 'systemctl status sync-clocks.service' for details.
[ 10.049212] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=-1)
[ 10.107035] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.138972] prueth pruss1_eth: TI PRU ethernet (type 0) driver initialized
[ OK ] Started Network Name Resolution.
[ 10.198110] prueth pruss2_eth: pruss MC Mask 0:0:0:0:0:0
[ 10.270904] remoteproc remoteproc2: powering up 4b234000.pru0
[ 10.273334] remoteproc remoteproc2: Booting fw image ti-pruss/am57xx-pru0-prueth-fw.elf, size 5028
[ 10.273452] ti-pruss 4b200000.pruss: configured system_events = 0x0000060000500000 intr_channels = 0x00000095 host_intr = 0x00000115
[ 10.273456] remoteproc remoteproc2: remote processor 4b234000.pru0 is now up
[ 10.273475] net eth2: started
[ 10.273703] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 10.303063] remoteproc remoteproc3: powering up 4b238000.pru1
[ 10.303761] remoteproc remoteproc3: Booting fw image ti-pruss/am57xx-pru1-prueth-fw.elf, size 5060
[ 10.303875] ti-pruss 4b200000.pruss: configured system_events = 0x0060000000a00000 intr_channels = 0x0000012a host_intr = 0x0000022a
[ 10.303880] remoteproc remoteproc3: remote processor 4b238000.pru1 is now up
[ 10.303900] net eth3: started
[ 10.304126] IPv6: ADDRCONF(NETDEV_UP): eth3: link is not ready
[ 10.547811] prueth pruss2_eth: port 1: using random MAC addr: ee:d7:ff:c9:81:6e
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ 11.929587] cpsw 48484000.ethernet eth1: Link is Up – 10Mbps/Half – flow control off
[ 11.937427] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

上述为相关日志:

[ 7.339728] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[ 7.339810] remoteproc remoteproc0: 58820000.ipu is available
[ 7.339904] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.339910] remoteproc remoteproc0: powering up 58820000.ipu
[ 7.339929] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.339933] remoteproc remoteproc0: request_firmware failed: -2

从这段看好像是加载固件失败,请问是这个原因吗?如何正确加载固件?

附:

root@am57xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr C0:27:B9:00:14:AC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:99

eth1 Link encap:Ethernet HWaddr C0:27:B9:00:14:AD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:247 (247.0 B) TX bytes:29234 (28.5 KiB)

eth2 Link encap:Ethernet HWaddr 06:83:C2:31:2C:D4
inet6 addr: fe80::483:c2ff:fe31:2cd4%763860/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:7878 (7.6 KiB)

eth3 Link encap:Ethernet HWaddr CA:8B:92:E9:F8:8B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

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

root@am57xx-evm:~#

ethtool查看:

root@am57xx-evm:~# ethtool eth2
Settings for eth2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 3
Transceiver: external
Auto-negotiation: on
Link detected: yes
root@am57xx-evm:~# ethtool eth3
Settings for eth3:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Link detected: no
root@am57xx-evm:~#

请各位专家帮助!

谢谢

jiabin liu:

[ 7.339728] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000

[ 7.339810] remoteproc remoteproc0: 58820000.ipu is available

[ 7.339904] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2

[ 7.339910] remoteproc remoteproc0: powering up 58820000.ipu

[ 7.339929] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2

[ 7.339933] remoteproc remoteproc0: request_firmware failed: -2

这个错误是在文件系统添加对应=固件就可以了。但是这个固件好像不是以太网的吧?

另外,文件系统添加固件后,上述错误没有了,但是会有一个[   10.342085] prueth pruss2_eth: request for sync latch pins failed: -19错误。

我怀疑是设备树配置有问题,请专家帮助解决!

另外能否提供设备树配置的例子和教程,供学习一下

谢谢

,

Shine:

请问用的是自己的板子还是TI的板子?如果是自己的板子, PHY用的是什么?

赞(0)
未经允许不得转载:TI中文支持网 » AM5718: pru1支持两路100MH以太网无法通信
分享到: 更多 (0)