You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I have a couple tasks in the ptp.yml tasks file that I still need to write:
Set up the Pi as a PTP grandmaster on eth1: sudo ptp4l -i eth1 -m
Maybe set up configuration inside /etc/linuxptp/ptp4l.conf?
Set up phc2sys to sync the clock on the NIC: phc2sys -a -rr
(Maybe) use testptp to set PPS out on the proper pin:
Install from testptp.c and gcc -Wall -lrt testptp.c -o testptp, then sudo mv testptp /usr/bin/
sudo testptp -d /dev/ptp0 -L2,0 (not sure if that's the right pin...?)
sudo ./testptp -d /dev/ptp0 -p 1000000000
For reference:
$ phc2sys -h
usage: phc2sys [options]
automatic configuration:
-a turn on autoconfiguration
-r synchronize system (realtime) clock
repeat -r to consider it also as a time source
$ testptp -h
usage: testptp [options]
-c query the ptp clock's capabilities
-d name device to open
-l list the current pin configuration
-L pin,val configure pin index 'pin' with function 'val'
the channel index is taken from the '-i' option
'val' specifies the auxiliary function:
0 - none
1 - external time stamp
2 - periodic output
-p val enable output with a period of 'val' nanoseconds
The text was updated successfully, but these errors were encountered:
@jauderho - I was planning on configuring the individual portions by hand, but timemaster does seem like a potential way to tie it all together as well.
Right now I have a couple tasks in the
ptp.yml
tasks file that I still need to write:eth1
:sudo ptp4l -i eth1 -m
/etc/linuxptp/ptp4l.conf
?phc2sys
to sync the clock on the NIC:phc2sys -a -rr
testptp
to set PPS out on the proper pin:gcc -Wall -lrt testptp.c -o testptp
, thensudo mv testptp /usr/bin/
sudo testptp -d /dev/ptp0 -L2,0
(not sure if that's the right pin...?)sudo ./testptp -d /dev/ptp0 -p 1000000000
For reference:
The text was updated successfully, but these errors were encountered: