Adafruit Ultimate GPS using UART configuration on Raspberry Pi
By Andy Tael-Oracle on Mar 28, 2014
So in preparation for using the Adafruit Ultimate GPS with UART there are some configuration steps that needs to be done. First we need to edit /boot/cmdline.txt (so it doesn't provide a terminal connection by default.
Change the line:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwaitto:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Then we need to edit /etc/inittab so the Pi doesn't spawn a login to the serial connection (we need it when connecting the GPS later)
#Spawn a getty on Raspberry Pi serial line T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100to:
#Spawn a getty on Raspberry Pi serial line #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Install GPSD, GPSD is an open source project which provides a daemon which streams GPS data via a TCP socket, allowing you to communicate with a whole host of different GPS devices (not just this one). Just execute:
sudo apt-get install gpsd gpsd-clients python-gps
Now it is time to connect the GPS and test it, but that will be a later post. Stay Tuned!