MA35D1互为Master和Slave测试流程: 1. Buildroot 配置
make menuconfig Target packages --> System tools --> util-linux --> hwclock
Target packages --> Networking applications --> ethtool
Target packages --> Networking applications --> linuxptp
2. 内核 配置 make linux-menuconfig
Device Drivers --> PTP clock support --> <*> PTP clock support
3. 测试: Master : # ifconfig eth0 192.168.10.88 netmask 255.255.255.0 # date "2023-09-14 9:17:00" # ifconfig eth0 allmulti # ptp4l -i eth0 -H -m
Slave : # ifconfig eth1 192.168.10.100 netmask 255.255.255.0 # ptp4l -i eth1 -H -m -s
|