Other Parts Discussed in Thread: TLK105,
Tool/software: Linux
on our custom board, we want to use prueth ports as general 100Mbps ethernet interfaces. We have modified the device-tree,pinmux and the pru_rproc.c driver . Now it can generate the eth2 and eth3 and the firmware (am57xx-pru0-prueth-fw.elf,am57xx-pru1-prueth-fw.elf) can also be loaded successfully. However we can not ping another ip address using eth2 or eth3, and the pc host can not ping eth2 or eth3 ip address,at the same time we get the pru2_mii0_rxctl signal changed only, the pru2_mii0_txctl always stay on "0". when we use 'ifup eth2', the output is stop at 'send discover..' as follows, it seems the emac_ndo_open function is not called.
What wrong with it ? Could some one give me some advices, please?
root@am57xx-evm:~# ifup eth2
udhcpc (v1.24.1) started
Sending discover...
Sending discover...
^C
root@am57xx-evm:~#
the boot messages related to PRU is:
root@am57xx-evm:~# dmesg |grep pru
[ 8.183248] ti-pruss 4b280000.pruss: creating PRU cores and other child platform devices
[ 8.220098] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/pruss@4b280000/mdio@4b2b2400[0]' - status (0)
[ 8.579299] remoteproc2: 4b2b4000.pru0 is available
[ 8.662804] pru-rproc 4b2b4000.pru0: PRU rproc node /ocp/pruss@4b280000/pru0@4b2b4000 probed successfully
[ 8.676090] remoteproc3: 4b2b8000.pru1 is available
[ 8.734207] pru-rproc 4b2b8000.pru1: PRU rproc node /ocp/pruss@4b280000/pru1@4b2b8000 probed successfully
[ 8.801613] prueth pruss2_eth: port 1: using random MAC addr: f2:99:72:32:e4:15
[ 8.971744] prueth pruss2_eth: port 2: using random MAC addr: 2a:8e:bd:58:e1:f0
[ 9.198300] prueth pruss2_eth: TI PRU ethernet driver initialized
[ 10.524458] remoteproc3: powering up 4b2b8000.pru1
[ 10.524767] remoteproc3: Booting fw image am57xx-pru2_1-fw, size 76004
[ 10.524947] ti-pruss 4b280000.pruss: configured system_events = 0x00000000000c0000 intr_channels = 0x0000000a host_intr = 0x0000000a
[ 10.533844] remoteproc3: remote processor 4b2b8000.pru1 is now up
[ 10.609410] remoteproc2: powering up 4b2b4000.pru0
[ 10.609676] remoteproc2: Booting fw image am57xx-pru2_0-fw, size 76004
[ 10.609833] ti-pruss 4b280000.pruss: configured system_events = 0x0000000000030000 intr_channels = 0x00000005 host_intr = 0x00000005
[ 10.627875] remoteproc2: remote processor 4b2b4000.pru0 is now up
[ 11.228039] virtio_rpmsg_bus virtio2: creating channel rpmsg-pru addr 0x20
[ 11.254469] virtio_rpmsg_bus virtio3: creating channel rpmsg-pru addr 0x21
[ 11.550919] rpmsg_pru rpmsg2: new rpmsg_pru device: /dev/rpmsg_pru32
[ 11.565268] rpmsg_pru rpmsg3: new rpmsg_pru device: /dev/rpmsg_pru33
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: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Link detected: yes
root@am57xx-evm:~# ifconfig eth2 192.168.2.3
root@am57xx-evm:~# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes
^C
--- 192.168.2.2 ping statistics ---
12 packets transmitted, 0 packets received, 100% packet loss
Best Regards