Figure 8. L2Switch configuration without bridge interface
The configuration script on the switch side is as follows:
#!/bin/bash
#
# Simple switch configuration without bridge
# Assume both ENETC and Felix drivers are already loaded
MAC_ROOT=bc:8d:bf:7c:5b
swpip=192.168
# Configure switch ports
swps=($(ls /sys/bus/pci/devices/0000:00:00.5/net/))
let nr=${#swps[@]}
for (( i=0; i<&nr; i++ ))
do
ip link set ${swps[$i]} address $MAC_ROOT:$(echo "${swps[$i]}" | tr -dc '0-9')
ip addr add ${swpip}.${i}.1/24 dev ${swps[$i]}
ip link set ${swps[$i]} up
done
# bring up ENETC Port3
seth=$(ls /sys/bus/pci/devices/0000:00:00.6/net/)
ip link set $seth up
4.2.13 TSN
4.2.13.1 Tsntool user manual
The tsntool is a tool to set the hardware TSN capability ethernet ports.
Source code
Use the following link to get the access of tsntool source code:
https://github.com/openil/tsntool.git
.
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
103
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......