Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


alix_voyage_linux_ntp

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
Next revisionBoth sides next revision
alix_voyage_linux_ntp [2015/02/13 14:33] adminalix_voyage_linux_ntp [2020/01/01 14:05] admin
Line 1: Line 1:
-{{tag>[hardware alix ntp]}} +=====PC Engines APU1 - Hopf NTP Server=====
-~~TOC~~ +
- +
-=====PC Engines Alix 1E - Hopf NTP Server=====+
  
 ====Create device symlinks==== ====Create device symlinks====
 ===Hopf=== ===Hopf===
 <code> <code>
-cd /etc/udev/rules.d/ + 
-cat hopf.rules+cat > /etc/udev/rules.d/hopf.rules <<EOF
 KERNEL=="ttyS0", SYMLINK+="hopfclock0" KERNEL=="ttyS0", SYMLINK+="hopfclock0"
-KERNEL=="ttyS0", RUN+="/bin/setserial -/dev/%k low_latency" +KERNEL=="ttyS0", RUN+="stty -/dev/%k 9600 cs8 -cstopb -parenb"
-KERNEL=="rtc", OWNER="root", GROUP="tty", MODE="0664" +
-</code> +
- +
-===GPS / PPS=== +
-<code> +
-cat pps.rules +
-KERNEL=="ttyS0", SYMLINK+="gps0" +
-KERNEL=="ttyS0", RUN+="/bin/setserial -v /dev/%k low_latency" +
-KERNEL=="ttyS0", RUN+="/usr/sbin/ldattach pps /dev/%k" +
-KERNEL=="pps0", OWNER="root", GROUP="tty", MODE="0660", SYMLINK+="gpspps0"+
 KERNEL=="rtc", OWNER="root", GROUP="tty", MODE="0664" KERNEL=="rtc", OWNER="root", GROUP="tty", MODE="0664"
 +EOF
 </code> </code>
  
Line 29: Line 17:
  
 cd /root cd /root
-apt-get install dpkg-dev dialog devscripts fakeroot pps-utils+apt-get install dpkg-dev dialog devscripts fakeroot pps-tools
      
 apt-get source ntp && apt-get build-dep ntp apt-get source ntp && apt-get build-dep ntp
Line 191: Line 179:
 ## ntp 2.4.7 removed monlist in favour of ntpq's mrulist ## ntp 2.4.7 removed monlist in favour of ntpq's mrulist
 ntpq -c "mrulist"</code> ntpq -c "mrulist"</code>
 +
 +{{tag>[hardware alix ntp]}}