GPS on OE

Hello,
Is there GPS support in Yocto releases?
Thank you.

hey,

if you mean using the Linaro OE RPB manifest/repos, then yes. It should work.

The Yocto/OE build for the 410c uses the kernel pointed by this recipe

I double checked, and the patches mentioned in this thread were indeed merged into the release kernel.

Just for completeness, I re-generated the 16.06 release from the Yocto/OE recipies and I can confirm that /dev/ttyGPS0 is present and the GPS utils are installed.

However, to get the NMEA string, I still had to manually boot the DSP (so the GPS starts)
$ systemctl start qdsp-start

@Leonid, I just thought I’d mention, for future reference you can track the release notes:
http://builds.96boards.org/releases/dragonboard410c/linaro/debian/16.09/

Using the onboard GPS

The GPS software stack mostly runs on the DSP subsystem. The communication between the main CPU and the DSP is done with a specific IPC driver called QRTR (see ./net/qrtr/ in the kernel source tree). Because of bug 416, the DSP is not started automatically at boot. To start the GPS, the DSP needs to be started first. Once the DSP is started any gpsd client can be started and will be able to retrieve GPS data.

Please note that the sensitivity of the onboard antenna is quite low, so getting a FIX will take several minutes. Please refer to the dedicated application note to install an external antenna for better GPS performance.

To get started with GPS, first install the following packages:

sudo apt-get install gpsd-clients gnss-gpsd
The package gnss-gpsd will bring all the needed dependencies to use the onboard GPS. Then you need to start the DSP:

sudo systemctl start qdsp-start.service
From now on, you can use any gpsd client, such as gpsmon or xgps.

Hello,
I’m trying to enable GPS.
When I run sudo systemctl start qdsp-start.service I get error exit code.
When I run journalctl -xe I get the following errormessage:

> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: device open of - failed: No such file or directory - retrying read-only
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: read-only device open of - failed: No such file or directory
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: initial GPS device - open failed
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: device open of 3 failed: No such file or directory - retrying read-only
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: read-only device open of 3 failed: No such file or directory
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: initial GPS device 3 open failed
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: device open of - failed: No such file or directory - retrying read-only
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: read-only device open of - failed: No such file or directory
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: -: device activation failed.
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: -: activation failed, freeing device
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: device open of 3 failed: No such file or directory - retrying read-only
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: read-only device open of 3 failed: No such file or directory
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: 3: device activation failed.
> May 04 09:21:01 linaro-alip gpsd[3194]: gpsd:ERROR: 3: activation failed, freeing device
> May 04 09:25:01 linaro-alip sudo[3213]: linaro : TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl start qdsp-start.service
> May 04 09:25:01 linaro-alip sudo[3213]: pam_unix(sudo:session): session opened for user root by (uid=0)
> May 04 09:25:01 linaro-alip qdsp-start[3216]: Found Hexagon at /sys/class/remoteproc/remoteproc0
> May 04 09:25:01 linaro-alip qdsp-start[3216]: sh: echo: I/O error
> May 04 09:25:01 linaro-alip systemd[1]: Failed to start Start the Hexagon QDSP.
> – Subject: Unit qdsp-start.service has failed
> – Defined-By: systemd
> – Support: Debian -- Support
**> – **
> – Unit qdsp-start.service has failed.
**> – **
> – The result is failed.
> May 04 09:25:01 linaro-alip systemd[1]: qdsp-start.service: Failed with result ‘exit-code’.
> May 04 09:25:01 linaro-alip sudo[3213]: pam_unix(sudo:session): session closed for user root
> May 04 09:36:59 linaro-alip sudo[3258]: linaro : TTY=pts/0 ; PWD=/bin ; USER=root ; COMMAND=/bin/systemctl start qdsp-start.service
> May 04 09:36:59 linaro-alip sudo[3258]: pam_unix(sudo:session): session opened for user root by (uid=0)
> May 04 09:36:59 linaro-alip qdsp-start[3261]: Found Hexagon at /sys/class/remoteproc/remoteproc0
> May 04 09:36:59 linaro-alip qdsp-start[3261]: sh: echo: I/O error
> May 04 09:36:59 linaro-alip systemd[1]: Failed to start Start the Hexagon QDSP.
> – Subject: Unit qdsp-start.service has failed
> – Defined-By: systemd
> – Support: Debian -- Support
**> – **
> – Unit qdsp-start.service has failed.
**> – **
> – The result is failed.
> May 04 09:36:59 linaro-alip systemd[1]: qdsp-start.service: Failed with result ‘exit-code’.
> May 04 09:36:59 linaro-alip sudo[3258]: pam_unix(sudo:session): session closed for user root

…Does anybody know what my problem could be?

Blockquote