
Figure 13. Switch configuration
ls /sys/bus/pci/devices/0000:00:00.5/net/
#Get switch device interfaces: eth4 eth5 eth6 eth7 eth8 eth9
ip link add name switch type bridge
ip link set switch up
ip link set eth4 master switch && ip link set eth4 up
ip link set eth5 master switch && ip link set eth5 up
ip link set eth6 master switch && ip link set eth6 up
ip link set eth7 master switch && ip link set eth7 up
ip link set eth8 master switch && ip link set eth8 up
ip link set eth9 master switch && ip link set eth9 up
4.2.13.4.2 Enable timestamp on switch
Follow the following commands to enable timestamp on switch:
#Init PTP:
devmem 0x1fc0900a0 w 0x00000004
#Get PTP real time(second):
devmem 0x1fc0900c4
4.2.13.4.3 Qbv test
The following figure shows the Qbv test setup.
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
118
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......