gpsd: get rid of shaky baudrate configuration
serial gnss receiver baudrate configuration with gpsctl tool is too shaky and not reliable. gps CLI tools calls are reconfigure baudrate back to 9600 instead of forced 115200 baud. Configuration is then blocking whole gpsd action and no gnss positon data are delivered. BugzID: 60550 Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
parent
ef5ab78de0
commit
8023b19728
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=GPS baud rate configuration
|
||||
Requires=gpsd.socket
|
||||
After=gpsd.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/gpsctl -s 115200 /dev/ttyS3
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=gpsd.socket
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
SRC_URI_prepend = " \
|
||||
file://gpsbaud.service \
|
||||
git://gitlab.com/netmodule/third-party/gpsd.git;protocol=ssh;user=git;branch=3.19/hancock \
|
||||
file://60-ublox-neo.rules \
|
||||
"
|
||||
|
|
@ -11,10 +10,8 @@ SRCREV = "${AUTOREV}"
|
|||
S = "${WORKDIR}/git"
|
||||
|
||||
SYSTEMD_SERVICE_${PN} += "${BPN}.service \
|
||||
gpsbaud.service \
|
||||
"
|
||||
|
||||
FILES_${PN} += " gpsbaud.serivce "
|
||||
|
||||
TTY_DEVICE = "/dev/ttyS3"
|
||||
TTY_DEVICE_imx8-nmhw23 = "/dev/gps0"
|
||||
|
|
@ -26,9 +23,6 @@ do_install_append () {
|
|||
install -d ${D}${sysconfdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/60-ublox-neo.rules ${D}${sysconfdir}/udev/rules.d
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${WORKDIR}/gpsbaud.service ${D}${systemd_unitdir}/system/
|
||||
|
||||
sed -i 's|DEVICES=""|DEVICES="${TTY_DEVICE}"|g' ${D}/etc/default/gpsd.default
|
||||
sed -i 's|USBAUTO="true"|USBAUTO="${USBAUTO_STATE}"|g' ${D}/etc/default/gpsd.default
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue