TSN SWITCH IN STM32MP257 DK BOARD
Hello ST Team,
I am working on the STM32MP257F , using OpenSTLinux 5.0.17 and the ST TSN switch stack v6.
I would like to confirm whether the TSN Ethernet switch is officially supported on the STM32MP257F-DK board
NOTE:I understand that the DK board has only one externally accessible Ethernet port and that it can be used as a TSN endpoint.
I have enabled the TSN switch, and the following interfaces are available:
lo
wlan0
end0
sw0p1
sw0p2
sw0p3
sw0ep
With the TSN switch enabled, the switch interfaces are created and sw0p1, sw0p2, and sw0p3 are visible.
I have connected an external PHY to sw0p3.
root@stm32mp2-e3-d2-99:~# ethtool sw0p3
Settings for sw0p3:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Full
100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Full
100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Link detected: yes
…………………………...
root@stm32mp2-e3-d2-99:~# cat /etc/modprobe.d/edgx_sw_core.conf
options edgx_pfm_lkm netif="end1:0"
I Change to
options edgx_pfm_lkm netif="end0:0"
……………………………….
I configured an IP address directly on sw0ep.
………………
The PC and board are on the same subnet.
PC → Board
When I ping the board from the PC, the board can see the ICMP echo requests with:
root@stm32mp2-e3-d2-99:~# tcpdump -ni sw0ep -e -vv
150.100.50.38 > 150.100.50.27: ICMP echo request, id 3, seq 11, length 64
18:55:20.250046 00:dd:c5:eb:d8:bf > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has 150.100.50.1 tell 150.100.50.38, length 46
18:55:21.210117 00:dd:c5:eb:d8:bf > ea:a3:64:82:5f:ff, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 25861, offset 0, flags [DF], proto ICMP (1), length 84)
150.100.50.38 > 150.100.50.27: ICMP echo request, id 3, seq 12, length 64
Board → PC
When I ping from the board to the PC, the PC can see the ICMP echo request and the corresponding reply, but the ping test on the board still reports failure.
150.100.50.38 > 150.100.50.27: ICMP echo request, id 10, seq 4, length 64
18:50:55.189043 10:e7:7a:e3:d2:99 > 00:dd:c5:eb:d8:bf, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 11531, offset 0, flags [none], proto ICMP (1), length 84)
150.100.50.27 > 150.100.50.38: ICMP echo reply, id 10, seq 4, length 64
18:50:56.085175 00:dd:c5:eb:d8:bf > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Ethernet (len 6), IPv4 (len 4), Request who-has 150.100.50.1 tell 150.100.50.38, length 46
