diff options
author | John Klug <john.klug@multitech.com> | 2019-03-18 10:38:41 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-07-03 17:08:20 -0500 |
commit | 039f7ce7bff47748eb8e5569a2c52df039ea2ad9 (patch) | |
tree | 5f82e2eb81d6aa49175645f214e3ace899d0e0e2 | |
parent | 85af41395697c8deb1b00d59d4394a62e14dbb9c (diff) | |
download | meta-mlinux-039f7ce7bff47748eb8e5569a2c52df039ea2ad9.tar.gz meta-mlinux-039f7ce7bff47748eb8e5569a2c52df039ea2ad9.tar.bz2 meta-mlinux-039f7ce7bff47748eb8e5569a2c52df039ea2ad9.zip |
Fix cold boot issue with vizzini driver and gpsd
-rw-r--r-- | recipes-navigation/gpsd/gpsd/gpsd-default | 14 | ||||
-rw-r--r-- | recipes-navigation/gpsd/gpsd_3.18.1.bb | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default index 168b0cf..3450731 100644 --- a/recipes-navigation/gpsd/gpsd/gpsd-default +++ b/recipes-navigation/gpsd/gpsd/gpsd-default @@ -51,16 +51,22 @@ GPSFIX="3" # function SET_GPS_SPEED { if [[ $(cat /run/config/gpstype) == u-blox ]] ; then - logger -t gpsd -p daemon.info "Attempting to set baud rate to ${GPS_BAUD}" + logger -st gpsd -p daemon.info "Attempting to set baud rate to ${GPS_BAUD}" if ! gpsctl -T 20 -t u-blox -s $GPS_BAUD -b -f $GPS_LINE ; then - logger -t gpsd -p daemon.info "WARNING: Unable to set GPS serial port speed." + logger -st gpsd -p daemon.warning "Unable to set GPS serial port speed." stty -F $GPS_LINE 9600 + sleep 1 if ! gpsctl -T 20 -t u-blox -s $GPS_BAUD -b -f $GPS_LINE ; then - logger -t gpsd -p daemon.info "WARNING: Unable to set GPS serial port speed." + logger -st gpsd -p daemon.warning "Unable to set GPS serial port speed." + stty -F $GPS_LINE $GPS_BAUD + sleep 1 + if ! gpsctl -T 20 -t u-blox -s $GPS_BAUD -b -f $GPS_LINE ; then + logger -st gpsd -p daemon.warning "Unable to set GPS serial port speed -- giving up!" + fi fi fi stty -F $GPS_LINE $GPS_BAUD - logger -t gpsd -p daemon.info "Expect a timeout error here. Need this error." + logger -st gpsd -p daemon.info "Expect a timeout error here. Need this error." gpsctl -T 2 -f $GPS_LINE stty -F $GPS_LINE $GPS_BAUD fi diff --git a/recipes-navigation/gpsd/gpsd_3.18.1.bb b/recipes-navigation/gpsd/gpsd_3.18.1.bb index 5793344..975482c 100644 --- a/recipes-navigation/gpsd/gpsd_3.18.1.bb +++ b/recipes-navigation/gpsd/gpsd_3.18.1.bb @@ -4,7 +4,7 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-replacement-native pps-tools" PROVIDES = "virtual/gpsd" -PR="m5" +PR="m6" EXTRANATIVEPATH += "chrpath-native" |