67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
#/etc/linuxptp/ptp4l-gm.conf
|
|
|
|
[global]
|
|
# extra logging
|
|
verbose 1
|
|
|
|
# use hardware timestamping (alternative is software, which isn't nearly as accurate/precise)
|
|
time_stamping hardware
|
|
|
|
# This needs to be set to full rather than default normal because RPi5 Hardware Rx timestamping doesn't support richer filters. This is why it is better to tell the NIC to timestamp every Rx packet.
|
|
hwts_filter full
|
|
|
|
# you can specify a "domain number", which is analogus to VLAN
|
|
domainNumber 0
|
|
network_transport UDPv4
|
|
delay_mechanism E2E
|
|
|
|
# force this node to act as a master (won't revert to slave).
|
|
serverOnly 1
|
|
|
|
# priority settings, 128 is default. lower numbers are higher priority in case there are multiple grandmasters
|
|
# BMCA priority
|
|
priority1 128
|
|
priority2 128
|
|
|
|
# clockClass=6 for GNSS reference
|
|
# other classes = https://documentation.nokia.com/srlinux/24-10/books/network-synchronization/ieee-1588-ptp.html
|
|
clockClass 6
|
|
|
|
# timeSource is where time comes from - 0x10 is "atomic clock" which is a bit sus for us but not ultimately wrong
|
|
|
|
# | Value | Meaning | Use case |
|
|
# | -----: | --------------------- | --------------------------------------- |
|
|
# | `0x10` | `ATOMIC_CLOCK` | Direct atomic/rubidium/cesium reference |
|
|
# | `0x20` | `GPS` | GPS/GNSS-disciplined time source |
|
|
# | `0x30` | `TERRESTRIAL_RADIO` | Radio time source |
|
|
# | `0x40` | `PTP` | Synced from another external PTP source |
|
|
# | `0x50` | `NTP` | Synced from NTP |
|
|
# | `0x60` | `HAND_SET` | Manually set by human/operator |
|
|
# | `0x90` | `OTHER` | Other external source |
|
|
# | `0xA0` | `INTERNAL_OSCILLATOR` | Free-running/local oscillator/default |
|
|
timeSource 0x20
|
|
|
|
|
|
|
|
# Start conservatively. 0x23 would claim <= 1 us.
|
|
clockAccuracy 0xFE
|
|
|
|
# Unknown/not characterized yet.
|
|
offsetScaledLogVariance 0xFFFF
|
|
|
|
# PTP/TAI - UTC.
|
|
utc_offset 37
|
|
|
|
# Two-step is the linuxptp default and is also a good match for Nexus.
|
|
twoStepFlag 1
|
|
|
|
summary_interval 1
|
|
|
|
[eth0]
|
|
|
|
|
|
# log output to a file, summary interval is 2^x, so 1 = 2^1 = every 2 seconds
|
|
# can also output with -m
|
|
# summary_interval 1
|
|
# logfile /var/log/ptp4l.log
|