summaryrefslogtreecommitdiffstats
path: root/net/linuxptp/files/linuxptp.config
blob: 2e2787ceb5920f1f759796e5a220a30de1509dd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
config ptp4l 'ptp4l' # configures the ptp4l daemon
	#option role 'auto'			# role to use: 'auto' (default) - BMCA algo determines role
						# 'client' - will never attempt to be a server
						# 'server' - will never attempt to be a client

	#option loglevel '6'			# Logging verbosity for ptp4l (0-7). 6=INFO (default), 7=DEBUG.

	#option require_clock_sync '0'		# 0 - skip waiting for kernel to report clock is sync'd (default unless server)
						# 1 - require clock-in-sync check before starting (default if server)

	#option clock_sync_check_interval '15'	# Seconds between clock discipline checks (default: 15).
						# Only used when require_clock_sync is 1.

	#option clock_sync_max_tries '8'	# Max attempts before giving up clock sync wait (default: 8).
						# Total wait = clock_sync_check_interval x (tries - 1), ~105s at defaults.
						# Set to 0 to wait indefinitely (blocks boot until clock disciplines).

	# For global lines in ptp4l.conf - Each item is one line like "key value" for the [global] section
	#list global_opts 'clockClass 6'

	# For extra ptp4l command line options
	#list extra_args ''

# At least one ptp_interface section is required for ptp4l to start.
# Repeat this block for each interface ptp4l should listen on.
#config ptp_interface
#	option interface 'lan'			# required - UCI's interface name, init-script looks up kernel ifname as needed
#	#option transport 'UDPv4'		# Network transport: UDPv4 (default), UDPv6, L2.
#	#option delay_mechanism 'E2E'		# PTP delay mechanism: E2E (End-to-End, default), P2P (Peer-to-Peer).
#	#list interface_opts 'logSyncInterval -3'

config phc2sys 'phc2sys' # configures the phc2sys daemon, which syncs either system clock from PHC in NIC (as a client, or vice versa as a server)
	#option phc_device '/dev/ptp0'		# PTP Hardware Clock device - required, no default.
						# Verify this matches the PHC for your PTP interface (e.g. /dev/ptp0).
						# phc2sys will not start until this is set.
	# specifies clock sync'ing direction 	# 'phc_to_sys': PHC (sync'd by ptp4l) disciplines system clock (default unless ptp4l role is 'server')
	#option sync_direction 'phc_to_sys'	# 'sys_to_phc': System clock disciplines PHC (default if ptp4l's role is 'server')

	#option loglevel '5'			# Logging verbosity for phc2sys, 5 by default, 6 if stats_interval is set

	#option stats_interval '0'		# Log status updates every N seconds (N defaults to 1 when -R param (by-default) is 1Hz).
						# By default/if unset, log-level (above) will be set to 5 and these messages will not be seen

	#list extra_args ''			# For other phc2sys command line options.
						# Example: list extra_args '-O 0'