Hi,
Is it possible to install gpsd to R13.01?
Hi,
Is it possible to install gpsd to R13.01?
have you tried to install it in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc and rebuild the yocto image?
IMAGE_INSTALL_append = " gpsd gps-utils"
Please help me to add gpsd package to my yocto build.
All I want is to use gpsd in my python script like “import gpsd”
How about adding the following in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc ?
IMAGE_INSTALL_append = " gpsd gps-utils"
I have already tried this. While adding like this leads to installing gpsd utility not gpsd library so that we can’t use it in python
i have checked “pipoe -p gpsd --python python3” and “pipoe -p gpsd”. There is no such yocto receipe for using python-gpsd.
you might need to see whether you can add this python3-gpsd-py3 to your yocto build
https://layers.openembedded.org/layerindex/recipe/352258/
Here also shows how to import python3 in WP76 module:
In my current yocto build it already have python3 in it. So I only needs to add the library to it. Could you please help me
Here is my bblayers.conf file
LCONF_VERSION = “7”
BBPATH = “${TOPDIR}”
BSPDIR := “${@os.path.abspath(os.path.dirname(d.getVar(‘FILE’, True)) + ‘/…/…’)}”
BBFILES ?= “”
BBLAYERS = "
${BSPDIR}/sources/poky/meta
${BSPDIR}/sources/poky/meta-poky
${BSPDIR}/sources/meta-openembedded/meta-oe
${BSPDIR}/sources/meta-openembedded/meta-multimedia
${BSPDIR}/sources/meta-openembedded/meta-python
${BSPDIR}/sources/meta-freescale
${BSPDIR}/sources/meta-freescale-3rdparty
${BSPDIR}/sources/meta-freescale-distro
${BSPDIR}/sources/meta-kontron-samx8x
"
BBLAYERS += " ${BSPDIR}/sources/meta-imx/meta-bsp "
BBLAYERS += " ${BSPDIR}/sources/meta-imx/meta-sdk "
BBLAYERS += " ${BSPDIR}/sources/meta-imx/meta-ml "
BBLAYERS += “${BSPDIR}/sources/meta-browser”
BBLAYERS += “${BSPDIR}/sources/meta-rust”
BBLAYERS += “${BSPDIR}/sources/meta-openembedded/meta-gnome”
BBLAYERS += “${BSPDIR}/sources/meta-openembedded/meta-networking”
BBLAYERS += “${BSPDIR}/sources/meta-openembedded/meta-filesystems”
BBLAYERS += “${BSPDIR}/sources/meta-qt5”
local.conf file
MACHINE ??= ‘kontron-samx8x’
DISTRO ?= ‘fsl-imx-xwayland’
PACKAGE_CLASSES ?= ‘package_rpm’
EXTRA_IMAGE_FEATURES ?= “debug-tweaks”
USER_CLASSES ?= “buildstats image-mklibs image-prelink”
PATCHRESOLVE = “noop”
BB_DISKMON_DIRS ??= "
STOPTASKS,${TMPDIR},1G,100K
STOPTASKS,${DL_DIR},1G,100K
STOPTASKS,${SSTATE_DIR},1G,100K
STOPTASKS,/tmp,100M,100K
ABORT,${TMPDIR},100M,1K
ABORT,${DL_DIR},100M,1K
ABORT,${SSTATE_DIR},100M,1K
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = “1”
DL_DIR ?= “${BSPDIR}/downloads/”
ACCEPT_FSL_EULA = “1”
samx8x-image-gui.bb file
DESCRIPTION = “Image for Kontron SMARC-sAMX8X BSP”
LICENSE = “MIT”
inherit core-image
inherit extrausers systemd
IMAGE_FEATURES += "
package-management
ssh-server-dropbear
hwcodecs
"
IMAGE_INSTALL_append = "
packagegroup-core-full-cmdline
packagegroup-fsl-tools-audio
packagegroup-fsl-tools-gpu
packagegroup-fsl-tools-gpu-external
packagegroup-fsl-gstreamer1.0
packagegroup-fsl-gstreamer1.0-full
weston-init
weston-xwayland
xterm
lmsensors-sensors
lmsensors-sensorsdetect
lmsensors-config-libsensors
dconf
xdg-user-dirs
rng-tools
can-utils
dosfstools
linuxptp
mtd-utils
mmc-utils
weston-examples
i2c-tools
unzip
minicom
evtest
ldd
ntpdate
libgpiod
libkeapi3
libkeapi3-staticdev
ktool
rtc-synchronization
"
tweak_rootfs() {
install -C -D -m 644 ${THISDIR}/${PN}/weston.ini ${IMAGE_ROOTFS}/${sysconfdir}/xdg/weston/weston.ini
install -C -m 644 ${THISDIR}/${PN}/environment ${IMAGE_ROOTFS}/${sysconfdir}/environment
install -C -m 644 ${THISDIR}/${PN}/locale.conf ${IMAGE_ROOTFS}/${sysconfdir}/locale.conf
}
ROOTFS_POSTPROCESS_COMMAND += "tweak_rootfs; "
How about adding the following in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc ?
IMAGE_INSTALL_append = " python3-gpsd-py3"
I tried to add IMAGE_INSTALL_append = " python3-gpsd-py3"
in both samx8x-image-gui.bb(my_bsp/sources/meta-kontron-samx8x/recipes-bsp/images/samx8x-image-gui/samx8x-image-gui.bb) file and also in local.conf(my_bsp/build/conf/local.conf) file then I got errors like this
arun@cig-pc:~/my_bsp/build$ bitbake samx8x-image-gui
WARNING: Host distribution “ubuntu-20.04” has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 4104 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:02
Parsing of 2900 .bb files complete (2899 cached, 1 parsed). 4104 targets, 240 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES ‘python3-gpsd-py3’ (but /home/arun/my_bsp/sources/meta-kontron-samx8x/recipes-bsp/images/samx8x-image-gui.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target ‘python3-gpsd-py3’ is unbuildable, removing…
Missing or unbuildable dependency chain was: [‘python3-gpsd-py3’]
ERROR: Required build target ‘samx8x-image-gui’ has no buildable providers.
Missing or unbuildable dependency chain was: [‘samx8x-image-gui’, ‘python3-gpsd-py3’]
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
arun@cig-pc:~/my_bsp/build$ bitbake samx8x-image-gui
WARNING: Host distribution “ubuntu-20.04” has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |##########################################| Time: 0:01:21
Parsing of 2900 .bb files complete (0 cached, 2900 parsed). 4104 targets, 240 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES ‘python3-gpsd-py3’ (but /home/arun/my_bsp/sources/meta-kontron-samx8x/recipes-bsp/images/samx8x-image-gui.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target ‘python3-gpsd-py3’ is unbuildable, removing…
Missing or unbuildable dependency chain was: [‘python3-gpsd-py3’]
ERROR: Required build target ‘samx8x-image-gui’ has no buildable providers.
Missing or unbuildable dependency chain was: [‘samx8x-image-gui’, ‘python3-gpsd-py3’]
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
arun@cig-pc:~/my_bsp/build$
Have you tried to put this bb file in
meta-openembedded/meta-python/recipes-devtools/python ?
In this case, you might need to put the following in ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
IMAGE_INSTALL_append = " python3-gpsd-py3"
I have never tried this, so you need to make some test on it
I can make it work with WP76 R17 by the following procedure:
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
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
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
>>>