Difference between revisions of "GPS"
(→Installing Packages) |
Ashcharles (Talk | contribs) (→Offline Install) |
||
Line 17: | Line 17: | ||
=== Offline Install === | === Offline Install === | ||
− | If your Overo doesn't have an Internet connection, the easiest way to install the required GPS packages is by including them in an image | + | If your Overo doesn't have an Internet connection, the easiest way to install the required GPS packages is by including them in an image. |
$ cd ~/overo-oe/org.openembedded.dev/recipes/images/ | $ cd ~/overo-oe/org.openembedded.dev/recipes/images/ | ||
Line 27: | Line 27: | ||
$ bitbake omap3-gps-image | $ bitbake omap3-gps-image | ||
− | Create a [http:// | + | Create a [http://gumstix.org/create-a-bootable-microsd-card.html bootable microSD] with the resulting image. |
== Configuration == | == Configuration == |
Latest revision as of 13:27, 1 April 2016
Testing GPS can be done using a daemon, gpsd, and console application, cgps, which is included in the gps-utils package.
Installing Packages
Here are two methods for installing gpsd and gps-utils.
Network Install
If your Overo is connected to the Internet installation is very simple. Very simple.
# opkg update # opkg download gpsd # opkg download gps-utils # opkg install gpsd # opkg install gps-utils
Offline Install
If your Overo doesn't have an Internet connection, the easiest way to install the required GPS packages is by including them in an image.
$ cd ~/overo-oe/org.openembedded.dev/recipes/images/ $ cp omap3-console-image.bb omap3-gps-image.bb $ nano omap3-gps-image.bb
Add the packages gpsd and gps-utils to the TOOLS_INSTALL section.
$ bitbake omap3-gps-image
Create a bootable microSD with the resulting image.
Configuration
gpsd will start automatically when you boot, however you will need to tell it what serial port the device is connected to.
# killall gpsd # gpsd /dev/ttyS0
You can change the ${GPS_DEV} variable in the /etc/default/gpsd to /dev/ttyS0 so it will work automatically on boot.
Test
# cgps