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)
3. Configure the IP address and run
ptp4l
on two boards:
# ifconfig eno0 <ip_addr>
# ptp4l -i eno0 -p /dev/ptp0 -m
4. After running, one board would be automatically selected as the master, and the slave board would print synchronization
messages.
5. For 802.1AS testing, just use the configuration file
gPTP.cfg
in linuxptp source. Run the below command on the boards,
instead:
# ptp4l -i eno0 -p /dev/ptp0 -f gPTP.cfg -m
8.1.3.2 Qbv test
This test includes the Basic gates closing test, Basetime test, and the Qbv performance test. These are described in the following
sections.
8.1.3.2.1 Basic gates closing
The commands below describe the steps for closing the basic gates:
cat > qbv0.txt << EOF
t0 00000000b 20000
EOF
#Explanation:
# 'NUMBER' : t0
# 'GATE_VALUE' : 00000000b
# 'TIME_LONG' : 20000 ns
cp libtsn.so /lib
./tsntool
tsntool> verbose
tsntool> qbvset --device eno0 --entryfile ./qbv0.txt
ethtool -S eno0
ping 192.168.0.2 -c 1 #Should not pass any frame since gates are all off.
8.1.3.2.2 Basetime test
Base on case 1
qbv1.txt
gate list.
#create 1s gate
cat > qbv1.txt << EOF
t0 11111111b 10000
t1 00000000b 99990000
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
107 / 199