User Tools

Site Tools


network:gps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
network:gps [2026/03/14 21:51] gm5alxnetwork:gps [2026/03/14 21:52] (current) – [Step D: Configure PTP (linuxptp)] gm5alx
Line 67: Line 67:
 PTP on Linux uses ''%%ptp4l%%'' to manage the hardware clock and ''%%phc2sys%%'' to sync the System Clock (disciplined by your GPS) to the Ethernet controller’s PTP Hardware Clock (PHC). PTP on Linux uses ''%%ptp4l%%'' to manage the hardware clock and ''%%phc2sys%%'' to sync the System Clock (disciplined by your GPS) to the Ethernet controller’s PTP Hardware Clock (PHC).
  
-<HTML><ol style="list-style-type: decimal;"></HTML> + 
-<HTML><li></HTML><HTML><p></HTML>**Sync System Clock to PHC:**<HTML></p></HTML> +**Sync System Clock to PHC:** 
-<HTML><p></HTML>''%%sudo phc2sys -s CLOCK_REALTIME -c eth0 -w &%%''<HTML></p></HTML><HTML></li></HTML> + 
-<HTML><li></HTML><HTML><p></HTML>**Run PTP4L:**<HTML></p></HTML> +  * ''%%sudo phc2sys -s CLOCK_REALTIME -c eth0 -w &%%'' 
-<HTML><p></HTML>''%%sudo ptp4l -i eth0 -m -S%%'' (The ''%%-S%%'' is for software-assisted hardware timestamping).<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML>+ 
 +**Run PTP4L:** 
 + 
 +  * ''%%sudo ptp4l -i eth0 -m -S%%'' (The ''%%-S%%'' is for software-assisted hardware timestamping).
  
 To turn your Raspberry Pi 4 into a **PTP Grandmaster**, you need a configuration that tells ''%%ptp4l%%'' two things: “I am the boss” and “Never listen to anyone else’s clock.” To turn your Raspberry Pi 4 into a **PTP Grandmaster**, you need a configuration that tells ''%%ptp4l%%'' two things: “I am the boss” and “Never listen to anyone else’s clock.”
network/gps.1773525104.txt.gz · Last modified: by gm5alx