Tool/software: Linux
Hi,
I am porting the Igh Etherlab Master library on the AM437x PREEMPT_RT Linux 4.14.67-rt40 platform.
It does not work and show the following messages while connecting one PRU-ICSS Ethernet Port with EtherCAT slave device
```
[ 3647.211927] EtherCAT 1: Link state of ecm1 changed to DOWN.
[ 3648.151832] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
[ 3649.151855] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
[ 3650.151850] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
[ 3651.151849] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
[ 3652.151850] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
[ 3653.151851] EtherCAT WARNING 0: 50 datagrams TIMED OUT!
...
(unplug the cable)
[ 3653.362718] prueth pruss1_eth eth1: Link is Down
[ 3653.372085] EtherCAT 0: Link state of ecm0 changed to DOWN.
```
It seems like AM437x did send out the EtherCAT packet through the PRU-ICSS Ethernet port but did not receive any packets back.
```
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 2E:98:04:77:3A:C8
inet6 addr: fe80::2c98:4ff:fe77:3ac8/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:22426 (21.9 KiB)
```
And here are the tcpdump messages:
```
# tcpdump -i eth1 -v -c 5
[ 117.011859] device eth1 entered promiscuous mode
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
[ 126.162884] prueth pruss1_eth eth1: Link is Up - 100Mbps/Full - flow control off
[ 126.171964] EtherCAT 0: Link state of ecm0 changed to UP.
00:02:06.175730 2e:98:04:77:3a:c8 (oui Unknown) > Broadcast, ethertype Unknown (0x88a4), length 60:
0x0000: 0e10 076c 0000 3[ 126.193249] EtherCAT WARNING 0: 14 datagrams TIMED OUT!
001 0200 0000 0000 0000 ...l..0.........
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
00:02:06.190162 IP6 (hlim 1, next-header Options (0) payload length: 36) fe80::2c98:4ff:fe77:3ac8 > ff02::16: HBH
(rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff77
:3ac8 to_ex, 0 source(s)]
00:02:06.202319 2e:98:04:77:3a:c8 (oui Unknown) > Broadcast, ethertype Unknown[ 126.243578] device eth1 left prom
iscuous mode
(0x88a4), length 60:
0x0000: 0e10 076d 0000 3001 0200 0000 0000 0000 ...m..0.........
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
00:02:06.220193 2e:98:04:77:3a:c8 (oui Unknown) > Broadcast, ethertype Unknown (0x88a4), length 60:
0x0000: 0e10 076e 0000 3001 0200 0000 0000 0000 ...n..0.........
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
00:02:06.240115 2e:98:04:77:3a:c8 (oui Unknown) > Broadcast, ethertype Unknown (0x88a4), length 60:
0x0000: 0e10 076f 0000 3001 0200 0000 0000 0000 ...o..0.........
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
5 packets captured
5 packets received by filter
0 packets dropped by kernel
```
I also test our EtherCAT slave device on PC with PREEMPT_RT Linux 4.14.71-rt44 by using the Igh Etherlab master. It works without any problem.
How shall I do to clarify this problem?
I would greatly appreciate it if there is any suggestion for me.
Thanks.