Tool/software: Linux
we have 5 same custom board base on am5728. on our custom board, we want to use prueth ports as general 100Mbps ethernet interfaces. We use the linux-rt-4.4.4, the prueth work well on 3 board, the other 2 don't work.(the 2 board can recognize prueth, but cann't ping with host.) When we change the kernel to linux-rt-4.9.69, all the 5 prueth work well.
The pru code(am57xx-pruX-prueth-f) are different on linux-rt-4.4.4 and linux-rt-4.9.69. so we replace the pru code of linux-rt-4.4.4 with linux-rt-4.9.69, the prueth still don't work.
when the prueth don't work, the power off command work not well too.
Could some one give me some advices, please?
The dmesg on linux-rt-4.4.4 is :
root@am57xx-evm:~# dmesg |grep pru
[ 8.674651] ti-pruss 4b280000.pruss: creating PRU cores and other child platform devices
[ 8.786518] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/pruss@4b280000/mdio@4b2b2400[0]' -)
[ 8.968892] remoteproc1: 4b2b4000.pru0 is available
[ 8.971645] pru-rproc 4b2b4000.pru0: booting the PRU core manually
[ 8.971651] remoteproc1: powering up 4b2b4000.pru0
[ 8.971720] remoteproc1: Booting fw image am57xx-pru2_0-fw, size 5028
[ 8.971860] ti-pruss 4b280000.pruss: configured system_events = 0x0000060000500000 intr_channels = 0x00000095 host_i5
[ 8.971865] remoteproc1: remote processor 4b2b4000.pru0 is now up
[ 8.971877] pru-rproc 4b2b4000.pru0: PRU rproc node /ocp/pruss@4b280000/pru0@4b2b4000 probed successfully
[ 8.972235] remoteproc2: 4b2b8000.pru1 is available
[ 8.973763] pru-rproc 4b2b8000.pru1: booting the PRU core manually
[ 8.973768] remoteproc2: powering up 4b2b8000.pru1
[ 8.973827] remoteproc2: Booting fw image am57xx-pru2_1-fw, size 5060
[ 8.973963] ti-pruss 4b280000.pruss: configured system_events = 0x0060000000a00000 intr_channels = 0x0000012a host_ia
[ 8.973968] remoteproc2: remote processor 4b2b8000.pru1 is now up
[ 8.973981] pru-rproc 4b2b8000.pru1: PRU rproc node /ocp/pruss@4b280000/pru1@4b2b8000 probed successfully
[ 8.980989] prueth pruss2_eth: port 1: using random MAC addr: 3e:37:87:86:7c:96
[ 9.069795] prueth pruss2_eth: port 2: using random MAC addr: 92:88:64:be:22:46
[ 10.129372] prueth pruss2_eth: TI PRU ethernet driver initialized
lrwxrwxrwx 1 root root 48 Mar 29 21:03 am57xx-pru2_0-fw -> /lib/firmware/ti-pruss/am57xx-pru0-prueth-f
lrwxrwxrwx 1 root root 48 Mar 29 21:03 am57xx-pru2_1-fw -> /lib/firmware/ti-pruss/am57xx-pru1-prueth-f
root@am57xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 94:E3:6D:41:7B:1C
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:92
eth1 Link encap:Ethernet HWaddr 94:E3:6D:41:7B:1D
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)
eth2 Link encap:Ethernet HWaddr 3E:37:87:86:7C:96
inet6 addr: fe80::3c37:87ff:fe86:7c96%131536/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:117095365 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2590 (2.5 KiB)
eth3 Link encap:Ethernet HWaddr 92:88:64:BE:22:46
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)
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: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Link detected: yes
when the prueth don't work, the power off command always stop on follow message:
[*** ] A stop job is running for Network Service(1min 27s / 1min 31s)
[*** ] A stop job is running for Avahi mDN...S-SD Stack (1min 27s / 2min 31s)