WP7702 and Yocto


I have a WP7702 on a MangohRed board.
I’d like to use a python script (speedtest-cli.py) which require some “standard” librairies such as csv but I’m unsuccessfull to execute it as this lib is not present (or not fully present?).
So I decided to rebuild the Linux image from the source and the find how to add my missing stuff.
I downloaded the tar.gz onto my VM (VirtualBox 4.15.0-39-generic #42~16.04.1-Ubuntu SMP Wed Oct 24 17:05:15 UTC 2018 i686 i686 i686 GNU/Linux), extracted it.
When I execute the make, here is my log:
_make _
“meta-swi/build.sh” -p poky/ -o meta-openembedded/ -l meta-swi -x “kernel/.git” -j 9 -t 9 -g -a “LEGATO_WORKDIR=/home/satimo/yocto_wp77/legato/” -a “IMA_SUPPORT_TOOLS_REPO=file:///home/satimo/yocto_wp77/legato/3rdParty/ima-support-tools/” -a “LK_REPO=”/home/satimo/yocto_wp77/lk"" -m swi-mdm9x28 -P wp -b build_bin -q
Poky dir: /home/satimo/yocto_wp77/poky
OE meta: /home/satimo/yocto_wp77/meta-openembedded
SWI meta dir: /home/satimo/yocto_wp77/meta-swi
Linux repo dir: /home/satimo/yocto_wp77/kernel/.git
Number of make threads 9
Number of bitbake tasks 9
With Legato
Extra options added - LEGATO_WORKDIR=/home/satimo/yocto_wp77/legato/
Extra options added - IMA_SUPPORT_TOOLS_REPO=file:///home/satimo/yocto_wp77/legato/3rdParty/ima-support-tools/
Extra options added - LK_REPO=/home/satimo/yocto_wp77/lk
SWI machine: swi-mdm9x28
SWI product: wp
Build dir: /home/satimo/yocto_wp77/build_bin
Enable Qualcomm Proprietary bin

### Shell environment set up for builds. ###

You can now run 'bitbake ’

Common targets are:
_ core-image-minimal_
_ core-image-sato_
_ meta-toolchain_
_ meta-ide-support_

You can also run generated qemu images with a command like ‘runqemu qemux86’
Error: bash is not set as default provider for /bin/sh
_ build is not guaranteed to work, aborting_
Makefile:247: recipe for target ‘image_bin’ failed
make: *** [image_bin] Error 1

Can someone guide me through how to rebuild the system and where find the configuration for my python lib?

seems same issue as this one:

Thanks for your help, that post solve one part of my problem.
I also needed to add
sudo apt-get install default-jre

With this I’m able to build the new yocto image, and with developer studio I managed to load it on my target.
Now, how can I add the missing csv python lib?

How about this?

I’m not sure it’s the best way to do it but I managed to install my package by editing the file

And I added:

IMAGE_INSTALL_append = " python-textutils"
IMAGE_INSTALL_append = " python-threading"
IMAGE_INSTALL_append = " python-xml"
IMAGE_INSTALL_append = " python-subprocess"
IMAGE_INSTALL_append = " python-fcntl"
IMAGE_INSTALL_append = " python-compression"
IMAGE_INSTALL_append = " python-json"
IMAGE_INSTALL_append = " python-argparse"
1 Like