# WP7702 and Yocto

**URL:** <https://forum.sierrawireless.com/t/wp7702-and-yocto/14612>\
**Category:** WP Series\
**Created:** [November 27, 2018, 5:24pm UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612 "2018-11-27T17:24:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent.escarguel](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vincent.escarguel](https://forum.sierrawireless.com/u/vincent.escarguel)\
**Post date:** [November 27, 2018, 5:24pm UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612/1 "2018-11-27T17:24:32Z")

</div>

Hi,

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?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [November 28, 2018, 1:22am UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612/2 "2018-11-28T01:22:55Z")

</div>

seems same issue as this one:

> [@Yocto complication problem](https://forum.sierrawireless.com/t/yocto-complication-problem/14302):
>
> hi! i untar Legato-Dist-Source-mdm9x28-SWI9X07Y\_02.18.06.00.tar.bz2 and trying to compile yocto for wp76 what’s wrong here? Please help to find out!!! ruslans@ruslans-VirtualBox /work/work/legato/yocto $ make image\_bin Makefile:55: “Legato: build disabled since ‘/work/work/legato/yocto/legato/’ does not exist” “meta-swi/build.sh” -p poky/ -o meta-openembedded/ -l meta-swi -x “kernel/.git” -j 9 -t 9 -a “LK\_REPO=”/work/work/legato/yocto/lk"" -m swi-mdm9x28 -P wp -b build\_bin -q Po…

---

<div class="post-metadata">

**Author:** ![vincent.escarguel](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vincent.escarguel](https://forum.sierrawireless.com/u/vincent.escarguel)\
**Post date:** [November 28, 2018, 11:04am UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612/3 "2018-11-28T11:04:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [November 28, 2018, 2:23pm UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612/4 "2018-11-28T14:23:54Z")

</div>

How about this?

> **[Python receipts in Legato](https://forum.legato.io/t/python-receipts-in-legato/2356)**
>
> Hello all receipts for python and nodejs are available in Legaro plataform python-pip\_1.3.1.bb in the layer Meta-python and also Nodejs, Meta-oe (nodejs\_0.8.18.bb) but they are not availble as a resource in Legato. Whart is the reason? How the pip...

---

<div class="post-metadata">

**Author:** ![vincent.escarguel](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vincent.escarguel](https://forum.sierrawireless.com/u/vincent.escarguel)\
**Post date:** [November 29, 2018, 2:11pm UTC](https://forum.sierrawireless.com/t/wp7702-and-yocto/14612/5 "2018-11-29T14:11:45Z")

</div>

I’m not sure it’s the best way to do it but I managed to install my package by editing the file  
`meta-swi-extras/meta-swi-mdm9x28/recipes/images/mdm9x28-sierra-image.inc`

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"
```
