Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
r 20 17:37:02 raspberrypi kernel: [ 1.511196] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
Mar 20 17:37:02 raspberrypi kernel: [ 1.512923] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
Mar 20 17:37:02 raspberrypi kernel: [ 1.685941] usb 1-1: new high-speed USB device number 2 using dwc_otg
Mar 20 17:37:02 raspberrypi kernel: [ 1.687945] Indeed it is in host mode hprt0 = 00001101
Mar 20 17:37:02 raspberrypi kernel: [ 1.886243] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
Mar 20 17:37:02 raspberrypi kernel: [ 1.888045] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Mar 20 17:37:02 raspberrypi kernel: [ 1.890996] hub 1-1:1.0: USB hub found
Mar 20 17:37:02 raspberrypi kernel: [ 1.892944] hub 1-1:1.0: 5 ports detected
Mar 20 17:37:02 raspberrypi kernel: [ 2.175993] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
Mar 20 17:37:02 raspberrypi kernel: [ 2.276260] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Mar 20 17:37:02 raspberrypi kernel: [ 2.278141] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Mar 20 17:37:02 raspberrypi kernel: [ 2.282974] smsc95xx v1.0.4
Mar 20 17:37:02 raspberrypi kernel: [ 2.340420] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:2$
Mar 20 17:37:02 raspberrypi kernel: [ 3.365329] EXT4-fs (mmcblk0p2): recovery complete
Mar 20 17:37:02 raspberrypi kernel: [ 3.375856] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Mar 20 17:37:02 raspberrypi kernel: [ 3.379670] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
Mar 20 17:37:02 raspberrypi kernel: [ 3.382999] devtmpfs: mounted
Mar 20 17:37:02 raspberrypi kernel: [ 3.386063] Freeing unused kernel memory: 340K (c0795000 - c07ea000)
Mar 20 17:37:02 raspberrypi kernel: [ 6.500913] pps_core: LinuxPPS API ver. 1 registered
Mar 20 17:37:02 raspberrypi kernel: [ 6.504828] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
Mar 20 17:37:02 raspberrypi kernel: [ 6.606428] pps pps0: new PPS source pps.-1
Mar 20 17:37:02 raspberrypi kernel: [ 6.622724] pps pps0: Registered IRQ 398 as PPS source
Mar 20 17:37:02 raspberrypi kernel: [ 10.185885] random: nonblocking pool is initialized
Mar 20 17:37:02 raspberrypi kernel: [ 11.070863] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Mar 20 17:37:02 raspberrypi kernel: [ 11.511605] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Mar 20 17:37:02 raspberrypi kernel: [ 22.312139] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Mar 20 17:37:02 raspberrypi kernel: [ 23.892676] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Mar 20 17:37:04 raspberrypi kernel: [ 27.987548] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:2134012k SSFS
pi@raspberrypi ~ $ lsof /dev/ttyAMA0
-bash: lsof: command not found
pi@raspberrypi ~ $ lsof /dev/pss0
-bash: lsof: command not found
Re: Raspberry Pi GPS Stratum 1 NTP Server
# grep ntp /var/log/syslog
Mar 20 13:29:55 ernie ntpd[16759]: ntpd 4.2.6p5@1.2349-o Thu Feb 5 14:49:17 UTC 2015 (1)
Mar 20 13:29:55 ernie ntpd[16760]: proto: precision = 0.558 usec
Mar 20 13:29:55 ernie ntpd[16760]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Mar 20 13:29:55 ernie ntpd[16760]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Mar 20 13:29:55 ernie ntpd[16760]: Listen and drop on 1 v6wildcard :: UDP 123
Mar 20 13:29:55 ernie ntpd[16760]: Listen normally on 2 lo 127.0.0.1 UDP 123
...
# ls -al /dev
<snip>
lrwxrwxrwx 1 root root 7 Mar 17 09:59 gps0 -> ttyAMA0
lrwxrwxrwx 1 root root 7 Mar 17 09:59 gpspps0 -> pps0
<snip>
#
Re: Raspberry Pi GPS Stratum 1 NTP Server
Mar 20 17:37:05 raspberrypi ntpd[2057]: format error frequency file /var/lib/ntp/ntp.drift
Mar 20 17:37:02 raspberrypi kernel: [ 0.001987] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mar 20 17:37:04 raspberrypi ntpd[2061]: ntpd 4.2.8p1@1.3265-o Thu Mar 19 14:29:47 UTC 2015 (1): Starting
Mar 20 17:37:04 raspberrypi ntpd[2061]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
Mar 20 17:37:05 raspberrypi ntpd[2082]: proto: precision = 3.000 usec (-18)
Mar 20 17:37:05 raspberrypi ntpd[2082]: Listen and drop on 0 v4wildcard 0.0.0.0:123
Mar 20 17:37:05 raspberrypi ntpd[2082]: Listen normally on 1 lo 127.0.0.1:123
Mar 20 17:37:05 raspberrypi ntpd[2082]: Listen normally on 2 eth0 192.168.2.3:123
Mar 20 17:37:05 raspberrypi ntpd[2082]: Listening on routing socket on fd #19 for interface updates
Mar 20 17:37:05 raspberrypi ntpd[2082]: restrict 0.0.0.0: KOD does nothing without LIMITED.
Mar 20 17:37:05 raspberrypi ntpd[2082]: restrict ::: KOD does nothing without LIMITED.
Mar 20 17:37:05 raspberrypi ntpd[2082]: restrict: ignoring line 37, mask '::' unusable.
Mar 20 17:37:05 raspberrypi ntpd[2082]: format error frequency file /var/lib/ntp/ntp.drift
Mar 20 17:44:30 raspberrypi ntpd[2082]: ntpd exiting on signal 15 (Terminated)
Mar 20 17:44:33 raspberrypi ntpd[2408]: ntpd 4.2.8p1@1.3265-o Thu Mar 19 14:29:47 UTC 2015 (1): Starting
Mar 20 17:44:33 raspberrypi ntpd[2408]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
Mar 20 17:44:33 raspberrypi ntpd[2411]: proto: precision = 3.000 usec (-18)
Mar 20 17:44:33 raspberrypi ntpd[2411]: Listen and drop on 0 v4wildcard 0.0.0.0:123
Mar 20 17:44:33 raspberrypi ntpd[2411]: Listen normally on 1 lo 127.0.0.1:123
Mar 20 17:44:33 raspberrypi ntpd[2411]: Listen normally on 2 eth0 192.168.2.3:123
Mar 20 17:44:33 raspberrypi ntpd[2411]: Listening on routing socket on fd #19 for interface updates
Mar 20 17:44:33 raspberrypi ntpd[2411]: restrict 0.0.0.0: KOD does nothing without LIMITED.
Mar 20 17:44:33 raspberrypi ntpd[2411]: restrict ::: KOD does nothing without LIMITED.
Mar 20 17:44:33 raspberrypi ntpd[2411]: restrict: ignoring line 37, mask '::' unusable.
Mar 20 17:44:33 raspberrypi ntpd[2411]: format error frequency file /var/lib/ntp/ntp.drift
Mar 20 17:54:06 raspberrypi ntpd[2411]: ntpd exiting on signal 15 (Terminated)
Mar 20 17:54:08 raspberrypi ntpd[2491]: ntpd 4.2.8p1@1.3265-o Thu Mar 19 14:29:47 UTC 2015 (1): Starting
Mar 20 17:54:08 raspberrypi ntpd[2491]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
Mar 20 17:54:08 raspberrypi ntpd[2494]: proto: precision = 3.000 usec (-18)
Mar 20 17:54:08 raspberrypi ntpd[2494]: Listen and drop on 0 v4wildcard 0.0.0.0:123
Mar 20 17:54:08 raspberrypi ntpd[2494]: Listen normally on 1 lo 127.0.0.1:123
Mar 20 17:54:08 raspberrypi ntpd[2494]: Listen normally on 2 eth0 192.168.2.3:123
Mar 20 17:54:08 raspberrypi ntpd[2494]: Listening on routing socket on fd #19 for interface updates
Mar 20 17:54:08 raspberrypi ntpd[2494]: restrict 0.0.0.0: KOD does nothing without LIMITED.
Mar 20 17:54:08 raspberrypi ntpd[2494]: restrict ::: KOD does nothing without LIMITED.
Mar 20 17:54:08 raspberrypi ntpd[2494]: restrict: ignoring line 37, mask '::' unusable.
Mar 20 17:54:08 raspberrypi ntpd[2494]: format error frequency file /var/lib/ntp/ntp.drift
Mar 20 19:44:25 raspberrypi ntpd[2494]: refclock_params: time_pps_kcbind: Operation not supported
Mar 20 19:54:57 raspberrypi ntpd[2494]: ntpd exiting on signal 15 (Terminated)
Mar 20 19:55:00 raspberrypi ntpd[2595]: ntpd 4.2.8p1@1.3265-o Thu Mar 19 14:29:47 UTC 2015 (1): Starting
Mar 20 19:55:00 raspberrypi ntpd[2595]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
Mar 20 19:55:00 raspberrypi ntpd[2598]: proto: precision = 3.000 usec (-18)
Mar 20 19:55:00 raspberrypi ntpd[2598]: Listen and drop on 0 v4wildcard 0.0.0.0:123
Mar 20 19:55:00 raspberrypi ntpd[2598]: Listen normally on 1 lo 127.0.0.1:123
Mar 20 19:55:00 raspberrypi ntpd[2598]: Listen normally on 2 eth0 192.168.2.3:123
Mar 20 19:55:00 raspberrypi ntpd[2598]: Listening on routing socket on fd #19 for interface updates
Mar 20 19:55:00 raspberrypi ntpd[2598]: restrict 0.0.0.0: KOD does nothing without LIMITED.
Mar 20 19:55:00 raspberrypi ntpd[2598]: restrict ::: KOD does nothing without LIMITED.
Mar 20 19:55:00 raspberrypi ntpd[2598]: restrict: ignoring line 37, mask '::' unusable.
Mar 20 19:55:00 raspberrypi ntpd[2598]: format error frequency file /var/lib/ntp/ntp.drift
Mar 20 20:09:43 raspberrypi ntpd[2598]: ntpd exiting on signal 15 (Terminated)
lrwxrwxrwx 1 root root 7 Jan 1 1970 gps0 -> ttyAMA0
lrwxrwxrwx 1 root root 4 Jan 1 1970 gpspps0 -> pps0
pi@raspberrypi ~ $ lsof /dev/ttyAMA0
pi@raspberrypi ~ $ lsof /dev/pss0
lsof: status error on /dev/pss0: No such file or directory
lsof 4.86
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
pi@raspberrypi ~ $ stty -F /dev/ttyAMA0 raw 9600 cs8 clocal -cstopb
pi@raspberrypi ~ $ cat /dev/ttyAMA0
V��PMR�``'���c3J��P6pC�yz"b;�Y��M����h�b�� ��,Ib/�
�o�ʩGEE�^XV��h`N���Ec�)JC�^C
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
#
./gpsinit -s 115200 /dev/ttyAMA0
./gpsinit -s 9600 -i factory_reset /dev/ttyAMA0
./gpsinit -s 115200 -i "PMTK314,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0" /dev/ttyAMA0
server 127.127.20.0 mode 88 minpoll 3 iburst
fudge 127.127.20.0 stratum 1 flag1 1 flag2 0 flag3 1 flag4 0 time1 0.0 time2 0.0 refid GPS0
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server