Install gpsd on R13.01

I can make it work with WP76 R17 by the following procedure:

  1. follow this document to run python3 in WP76 FW R17
  1. download “python3-gpsd-py3_0.3.0.bb” from following link and put to ./meta-openembedded/meta-python/recipes-devtools/python

https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-gpsd-py3_0.3.0.bb?h=nanbield

  1. add the following in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

IMAGE_INSTALL_append = " python3 python3-gpsd-py3"

  1. make (there will be error as the image is too big to put into yocto cwe image)

  2. the gpsd libarary is located here:
    yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/python3-gpsd-py3/0.3.0-r0/image/usr/lib/python3.8/site-packages

use scp to transfer the whole “site-packages” folder to /usr/lib/python3.8 in module

  1. also we need to use scp to transfer the followings to /usr/lib/python3.8 in module:

yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/python3/3.8.13-r0/image/usr/lib/python3.8/lib-dynload
yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/python3/3.8.13-r0/image/usr/lib/python3.8/collections
yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/python3/3.8.13-r0/image/usr/lib/python3.8/json
yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/python3/3.8.13-r0/image/usr/lib/python3.8/logging

  1. now gpsd library can be imported in python3:
root@fx30:~# python3 --version
Python 3.8.13
root@fx30:~# python3
Python 3.8.13 (default, Mar 16 2022, 13:02:57)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gpsd
>>>