I am using an old Adafruit Ultimate GPS Breakout -- you may have to adjust for whatever you are using. I wired up its rx,tx,vcc,gnd,pps pins to the gpio bus (you can find info about it elsewhere).
pkg Install u-boot-tools
- Rename the attached boot.txt to boot.cmd and create a boot.scr like so:
mkimage -C none -A arm -T script -d boot.cmd /boot/msdos/boot.scr
-- this is needed as u-boot stops booting if there is any traffic on the serial line. - From /boot/msdos/config.txt, edit out
dtoverlay=disable-bt
or prefix with a#
. Adddtoverlay=pps
, andenable_uart=1
. - Rename the attached pps.txt file to pps.dts and compile with
dtc -@ -o /boot/msdos/pps.dtbo pps.dts
. - reboot
- as root
kldmon gpiopps
- Now you should see /dev/cuau0 and /dev/cuau1.
stty -f /dev/cuau1.init 4800 raw cs8 clocal cstopb
gpsd -n /dev/cuau1
- Monitor with
gpsmon -n
orxgps