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 03:12] 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 130: Line 136:
     * http://www.unixwiz.net/techtips/raspberry-pi3-gps-time.html     * http://www.unixwiz.net/techtips/raspberry-pi3-gps-time.html
     * https://ava.upuaut.net/?p=951     * https://ava.upuaut.net/?p=951
 +
 +====== Optimizations ======
 +
 +  * 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
 +    * <code>apt -y install cpufrequtils
 +echo 'GOVERNOR="performance"' > /etc/default/cpufrequtils
 +systemctl restart cpufrequtils</code>
 +  * Remove useless stuff
 +    * <code>apt -y purge bluez triggerhappy wpasupplicant alsa-utils
 +systemctl stop avahi-daemon
 +systemctl disable avahi-daemon
 +apt -y autoremove
 +apt clean
 +</code>
 +  * Set serial to low latency
 +    * <code>crontab -e
 +@reboot setserial /dev/ttyAMA0 low_latency
 +</code>
  
stratum1ntp.1566270741.txt.gz · Last modified: 2019/08/20 03:12 by andrew
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0