Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
stratum1ntp [2019/08/20 05:23] andrewstratum1ntp [2021/11/28 02:51] (current) andrew
Line 1: Line 1:
 ====== Stratum 1 NTP Setup on Raspberry Pi ====== ====== Stratum 1 NTP Setup on Raspberry Pi ======
 +== By: Bun-Bun & guppy ==
 +
   * This guides uses Uputronics Raspberry Pi+ GPS Expansion Board and a rpi3 or newer   * This guides uses Uputronics Raspberry Pi+ GPS Expansion Board and a rpi3 or newer
   * Setup rpi with latest Raspbian, enable ssh, etc...   * Setup rpi with latest Raspbian, enable ssh, etc...
Line 9: Line 11:
     * Add the following to the bottom     * Add the following to the bottom
     * <code>enable_uart=1     * <code>enable_uart=1
 +dtoverlay=pi3-disable-wifi
 dtoverlay=pi3-disable-bt #same with rpi4 dtoverlay=pi3-disable-bt #same with rpi4
 #dtoverlay=pi3-miniuart-bt #if you want software BT #dtoverlay=pi3-miniuart-bt #if you want software BT
Line 115: Line 118:
   * {{ntpsetup.tar|gpsControl files and install.sh}} #for stationary mode (Credit to guppy for creating and Bun-Bun for correcting)   * {{ntpsetup.tar|gpsControl files and install.sh}} #for stationary mode (Credit to guppy for creating and Bun-Bun for correcting)
     * Download linked tar     * Download linked tar
 +      * wget -O ntpsetup.tar http://wiki.sktechworks.ca/lib/exe/fetch.php?media=ntpsetup.tar
     * tar -xvf ntpsetup.tar     * tar -xvf ntpsetup.tar
     * cd ntpsetup     * cd ntpsetup
Line 120: Line 124:
     * This copies the gpscontrol files and creates/enables its service. Also makes a gpsd requirement for ntp     * This copies the gpscontrol files and creates/enables its service. Also makes a gpsd requirement for ntp
   * Disable NTP from dhcp   * Disable NTP from dhcp
-    * echo "" > /etc/dhcp/dhclient-exit-hooks.d/ntp +    * <code> 
-    echo "" > /var/lib/ntp/ntp.conf.dhcp +echo "" > /etc/dhcp/dhclient-exit-hooks.d/ntp 
-    chattr +i /etc/dhcp/dhclient-exit-hooks.d/ntp +echo "" > /var/lib/ntp/ntp.conf.dhcp 
-    chattr +i /var/lib/ntp/ntp.conf.dhcp+chattr +i /etc/dhcp/dhclient-exit-hooks.d/ntp 
 +chattr +i /var/lib/ntp/ntp.conf.dhcp 
 +</code>
   * reboot   * reboot
   * gpsmon #also cgps -s   * gpsmon #also cgps -s
Line 133: Line 139:
 ====== Optimizations ====== ====== Optimizations ======
  
-  * Add nohz=off to the end of the line in /etc/cmdline.txt+  * https://www.ntpsec.org/white-papers/stratum-1-microserver-howto/ 
 +  * Add nohz=off to the end of the line in /boot/cmdline.txt
   * configure system to run cpu full speed   * configure system to run cpu full speed
     * <code>apt -y install cpufrequtils     * <code>apt -y install cpufrequtils
Line 139: Line 146:
 systemctl restart cpufrequtils</code> systemctl restart cpufrequtils</code>
   * Remove useless stuff   * Remove useless stuff
-    * <code>apt -y purge bluez triggerhappy +    * <code>apt -y purge bluez triggerhappy wpasupplicant alsa-utils 
-apt purge wpasupplicant +systemctl stop avahi-daemon 
-apt-get remove alsa-utils +systemctl disable avahi-daemon 
-systemctl stop raspbian avahi-daemon +apt -y autoremove
-systemctl disable raspbian avahi-daemon +
-apt autoremove+
 apt clean apt clean
 +</code>
 +  * Set serial to low latency
 +    * <code>crontab -e
 +@reboot setserial /dev/ttyAMA0 low_latency
 </code> </code>
  
stratum1ntp.1566278619.txt.gz · Last modified: 2019/08/20 05:23 by andrew
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0