I can make it work with WP76 R17 by the following procedure:
- follow this document to run python3 in WP76 FW R17
- download “python3-gpsd-py3_0.3.0.bb” from following link and put to ./meta-openembedded/meta-python/recipes-devtools/python
- add the following in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
IMAGE_INSTALL_append = " python3 python3-gpsd-py3"
-
make (there will be error as the image is too big to put into yocto cwe image)
-
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
- 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
- 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
>>>