Created
January 31, 2018 03:15
-
-
Save Grogdor/27691c45bab78617e875fd53ca2d094c to your computer and use it in GitHub Desktop.
NanoPi Neo running armbian debian with ntp serial uart GPS gpio PPS from u-blox NEO-6M (GY-NEO6MV2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux nanopineo 4.14.15-sunxi #28 SMP Mon Jan 29 07:24:48 CET 2018 armv7l GNU/Linux | |
Order "GY-NEO6MV2" GPS module from Aliexpress for $4 | |
Add uart1 and pps-gpio fdt overlays, assign PPS pin | |
per https://docs.armbian.com/User-Guide_Allwinner_overlays/ | |
Using a GPIO pin instead of a uart control pin because this | |
armbian kernel already has CONFIG_PPS_CLIENT_GPIO=m instead | |
of LDISC and not even sure it would work on a CTS pin anyway. | |
/boot/armbianEnv.txt | |
overlays=usbhost1 usbhost2 uart1 pps-gpio | |
param_pps_pin=PA6 | |
Install gpsd (can be built as "timeservice" per "Building gpsd" | |
in howto, or just installed as package with defaults is fine too), | |
gpsd-clients, pps-tools | |
Read, understand and follow: | |
http://catb.org/gpsd/gpsd-time-service-howto.html | |
http://catb.org/gpsd/troubleshooting.html | |
(hints: delete /run/gpsd.sock between all runs/tests, | |
follow startup troubleshooting for systemd) | |
Set proper flags in /etc/default/gpsd | |
START_DAEMON="true" | |
USBAUTO="false" | |
DEVICES="/dev/ttyS1 /dev/pps0" | |
GPSD_OPTIONS="-n -F /run/gpsd.sock" | |
Beat systemd into actually starting it on boot | |
logs: journalctl -u <service-name> -b | |
Checking with gpsmon/cgps every step of the way.... | |
Configure ntpd.conf | |
ntpq -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment