
4.2.13.3.1 Linuxptp test
To test 1588 synchronization on ENETC interface, connect ENETC interface on two boards using back-to-back method. (For
example, eth0 to eth0.)
The Linux booting log shows the following:
…
pps pps0: new PPS source ptp0
…
Check PTP clock and timestamping capability:
# ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
all (HWTSTAMP_FILTER_ALL)
Configure IP address and run
ptp4l
on two boards:
# ifconfig eth0 <ip_addr>
# ptp4l -i eth0 -p /dev/ptp0 -m
After running the above commands, one board is selected as master automatically, and the slave board prints synchronization
messages.
For 802.1AS testing, use configure file
gPTP.cfg in linuxptp source. Run the following commands on boards instead.
# ptp4l -i eth0 -p /dev/ptp0 -f gPTP.cfg -m
4.2.13.3.2 Qbv test
Following are the qbv tests:
Case 1: Basic gates close
cat > qbv0.txt << EOF
t0 00000000b 20000
EOF
#Exmplain:
# 'NUMBER' : t0
# 'GATE_VLAUE' : 00000000b
# 'TIME_LONG' : 20000 ns
cp libtsn.so /lib
./tsntool
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
112
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......