GPS issue with latest snapshot images

Hi,

I am trying GPS in DragonBoard410 with latest snapshot images (602) (http://snapshots.linaro.org/96boards/dragonboard410c/linaro/debian/latest/)

I followed the release note steps from (https://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/) but it is not working. Status of gpsd service is as below:

   ● gpsd.service - GPS (Global Positioning System) Daemon
       Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
       Active: active (running) since Mon 2019-11-18 12:23:07 UTC; 42s ago
      Process: 2395 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
     Main PID: 2396 (gpsd)
        Tasks: 1 (limit: 1083)
       Memory: 1.1M
       CGroup: /system.slice/gpsd.service
               └─2396 /usr/sbin/gpsd

    Nov 18 12:23:09 linaro-alip gpsd[2396]: gpsd:ERROR: SER: device open of pds://any failed: No such file or directory - retrying read-only
    Nov 18 12:23:09 linaro-alip gpsd[2396]: gpsd:ERROR: SER: read-only device open of pds://any failed: No such file or directory
    Nov 18 12:23:09 linaro-alip gpsd[2396]: gpsd:ERROR: pds://any: device activation failed.
    Nov 18 12:23:09 linaro-alip gpsd[2396]: gpsd:ERROR: pds://any: activation failed, freeing device

Before that i am using 19.01 release binaries from (https://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/) and with that images GPS is working.

So whats changed in latest snapshot images? It seems to me that there is some change in gpsd package, so is there any gpsd source available in which Qualcomm PDS is supported.

Thanks,
Hiren

right… gpsd was upgraded in Debian Buster, and it overrides the package we had customized in the Linaro archive of Debian packages. We need to reupload our changes.

thanks for reporting it.

There is a patch in GPSD to add support for QCOM GPS, see
https://obs.linaro.org/package/show/linaro-overlay-buster/gpsd

Hi Hiren,

I just upload a new gpsd package to my home overlay [1] after testing i will upload to our main debian buster overlay and we will get a new image.

Thanks!,
Anibal

[1] Show home:anibal.limon:branches:linaro-overlay-buster / gpsd - Open Build Service

Hi,

Thanks for the reply.

I have cloned gpsd but when i tried to scons check it failed and give me below error:

gcc -o test_packet -pthread test_packet.o -L. -lgpsd -lgps_static -lm -lrt
Consistency-checking driver methods…
./test_packet -c >/dev/null
Qualcomm PDS has event hook but no send
scons: *** [method-regress] Error 1
scons: building terminated because of errors.

Below is the steps i followed to get new gpsd:

$ git clone working/qualcomm/pkg/gpsd.git - [no description]
$ cd gpsd
$ git checkout buster
$ git am debian/patches/0001-Introduce-Qualcomm-PDS-service-support.patch
$ scons (succeed)
$ scons check (failed)

I have also tried apt-get update and upgrade but it is still not working.

So please tell me if i am doing anything wrong and how to get gpsd with QCOM PDS support and what steps i need to follow for that.

Thanks,
Hiren

Hi,

I also tried to downgrade gpsd and gpsd-client packages to 3.17-5+linaro1 in which Qualcomm PDS driver is supported. I confirm that using gpsd -h command in which Qualcomm PDS is present in available compiled driver list.

Below is the command i used to downgrade the packages:
sudo apt-get install gpsd=3.17-5+linaro1 libgps23=3.17-5+linaro1 gpsd-clients=3.17-5+linaro1

But in this case also when i tried to run gpsmon it is not working and give me below error in gpsd service:

● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2019-11-19 11:17:28 UTC; 1min 52s ago
Process: 1961 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
Main PID: 1962 (gpsd)
Tasks: 1 (limit: 1083)
Memory: 512.0K
CGroup: /system.slice/gpsd.service
└─1962 /usr/sbin/gpsd

Nov 19 11:18:27 linaro-alip gpsd[1962]: gpsd:ERROR: QRTR open: No PDS service found.
Nov 19 11:18:27 linaro-alip gpsd[1962]: gpsd:ERROR: pds://any: device activation failed.
Nov 19 11:18:27 linaro-alip gpsd[1962]: gpsd:ERROR: pds://any: activation failed, freeing device

So is there any other dependency for GPS which is broken?

Thanks,
Hiren

Hi Hiren,

I just upload the new gpsd package to the linaro-overlay-buster [1], this will generate a new debian image.

Now we are using a new rmtfs package and now we have an issue that dosen’t modprobe automatically the qcom_q6v5_pil kernel module so for fix.

root@linaro-alip:~# modprobe qcom_q6v5_pil

After that you should see Location service in qrtr-lookup, example:

root@linaro-alip:~# qrtr-lookup
Service Version Instance Node Port
51 1 2 0 9 CoreSight remote tracing service
22 1 1 0 12 Time service
43 1 0 0 2 Subsystem control service
15 1 0 0 8 Test service
23 1 0 0 11 Thermal sensors service
16 2 0 0 14 Location service (~ PDS v2)
256 0 1 0 1
24 1 0 0 10 Thermal mitigation device service
34 1 0 0 13 Coexistence service
14 1 0 1 14 Remote file system service
15 1 0 7 2 Test service
256 0 1 7 1

Regards,
Anibal

[1] Show linaro-overlay-buster / gpsd - Open Build Service

Hi,

After following above steps now GPS is working with latest snapshot images.

Thank you for your support.

-Hiren

Why this code is not part of upstream gpsd project, by the way?

We are tying to get it merged. See Add Qualcomm PDS (!139) · Merge requests · gpsd / gpsd · GitLab. But so far the GPSd community is not willing to accept the patches without better documentation for the underlying QCOM protocol.

1 Like

I’m not sure if @alimon fully understands what Gary was asking for with regards to protocol documentation requirements.

Gary said “If you could document the he protocols for us that might be acceptable.” – in other words, instead of wasting time looking for non-existent documentation, just write it yourself.

yes, this is how we understood as well. we will get to it…

1 Like

@doitright As @anon91830841 said, We understand the request and we are working on it. Thx!.