Symbol: MSCC_FELIX_SWITCH_TSN [=y]
Device Drivers --->
[*] Network device support --->
Distributed Switch Architecture drivers --->
<*> Ocelot / Felix Ethernet switch support --->
<*> TSN on FELIX switch driver
Symbol: NET_PKTGEN [=y]
[*] Networking support --->
Networking options --->
Network testing --->
<*> Packet Generator (USE WITH CAUTION)
Kernel configs for the QOS (For the command 'tc'):
Symbol: NET_SCH_MQPRIO [=y] && NET_SCH_CBS [=y] && NET_SCH_TAPRIO [=y]
[*] Networking support --->
Networking options --->
[*] QoS and/or fair queueing --->
<*> Credit Based Shaper (CBS)
<*> Time Aware Priority (taprio) Scheduler
<*> Multi-queue priority scheduler (MQPRIO)
Symbol: FSL_ENETC_QOS [=y]
Device Drivers--->
[*] Network device support --->
[*] Ethernet driver support --->
[*] Freescale devices
[*] ENETC hardware Time-sensitive Network support
Also require the Iproute2 version is higher version. ( IProute2 at least sync with above kernel 4.19).
8.1.3 Basic TSN configuration examples on ENETC
The tsntool is an application configuration tool to configure the TSN capability. You can find the file,
/usr/bin/tsntool
and
/usr/lib/libtsn.so
in the rootfs. Run
tsntool
to start the setting shell. The following sections describe the TSN
configuration examples on the ENETC ethernet driver interfaces.
Before testing the ENETC TSN test cases, you need to enable
mqprio
by using the command:
tc qdisc add dev eno0 root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 hw 1
8.1.3.1 Linuxptp test
To test 1588 synchronization on ENETC interfaces, use the following procedure:
1. Connect ENETC interfaces on two boards in a back-to-back manner. (For example, eno0 to eno0.)
The linux booting log is as follows:
…
pps pps0: new PPS source ptp0
…
2. Check PTP clock and timestamping capability:
# ethtool -T eno0
Time stamping parameters for eno0:
Capabilities:
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
106 / 199