Tinkerboard
dropkick23 at gmail.com
dropkick23 at gmail.com
Mon Sep 18 17:44:51 UTC 2017
Well this is interesting!
Having seen Achim Gratz posts on the TinkerBoard, I purchased one.
Following his direction for building kernel with PPS I built the kernel,
gpsd and ntpsec.
$ ntpq -np
remote refid st t when poll
reach delay offset jitter
=======================================================================================================
+216.229.4.66 216.229.0.179 2 u 65 128
377 43.3647 6.4084 1.1088
+208.75.89.4 216.218.192.202 2 u 78 128
377 48.4814 -0.2700 0.9844
*70.59.91.235 .PPS. 1 u 83 128
377 52.3107 0.0303 0.6380
-23.227.178.17 105.100.222.35 2 u 61 128
377 71.3686 -2.4612 0.6974
NOTE: no shm
Details:
ntp.conf
refclock shm unit 1 maxpoll 4 refid PPS flag4 1 prefer
refclock shm unit 0 maxpoll 4 time1 0.133 refid GPS flag4 1
# ps -ef | grep ntp
ntp 539 1 0 10:08 ? 00:00:00 /usr/local/sbin/ntpd -g -u
ntp:ntp -c /etc/ntp.conf
# ntpd -V
ntpd ntpsec-0.9.7+1377 2017-09-18T00:43:35Z
# ntpq -V
ntpq ntpsec-0.9.7+1377 2017-09-18T00:43:35Z
# ps -ef | grep gpsd
nobody 440 1 0 10:08 ? 00:00:00 /usr/local/sbin/gpsd
/dev/gpsd0
# ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1505755269.000676484, sequence: 189 - clear 0.000000000,
sequence: 0
source 0 - assert 1505755270.000661312, sequence: 190 - clear 0.000000000,
sequence: 0
# ntpshmmon
ntpshmmon version 1
# Name Seen@ Clock Real
L Prec
sample NTP0 1505755316.421692833 1505755316.129519142 1505755316.000000000
0 -20
sample NTP1 1505755316.421722583 1505755316.000362932 1505755316.000000000
0 -30
sample NTP1 1505755317.000616081 1505755317.000361256 1505755317.000000000
0 -30
sample NTP0 1505755317.130793217 1505755317.130444092 1505755317.000000000
0 -20
sample NTP1 1505755318.000698405 1505755318.000358413 1505755318.000000000
0 -30
# cgps -s
shows data
ntp built with:
$ git clone https://gitlab.com/NTPsec/ntpsec.git
$ cd ntpsec
$ sudo ./buildprep 2>&1 | tee prep.waf
$ ./waf configure –-refclock=shm 2>&1 | tee conf.waf
$ ./waf build 2>&1 | tee build.waf
Nothing in ntpd.log of interest WRT shm/pps/gps
Not sure what to look at to detemine what the error is.
Found the topic about stand alone NTP with multiple clock sources of
interest
the Tinker board has 4 UARTs, currently there is a patch for PPS on GPIO
pin 22
will need to figure out how to add another or two PPS to GPIO header.
Thanks
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20170918/f7c62269/attachment.html>
More information about the users
mailing list