Skip to content

Instantly share code, notes, and snippets.

@Grogdor
Created January 31, 2018 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Grogdor/27691c45bab78617e875fd53ca2d094c to your computer and use it in GitHub Desktop.
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)
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