# Flashing Custom Yocto Image

**URL:** <https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875>\
**Category:** mangOH Red\
**Created:** [August 25, 2019, 9:15pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875 "2019-08-25T21:15:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbranover](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sbranover](https://mangoh.discourse.group/u/sbranover)\
**Post date:** [August 25, 2019, 9:15pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875/1 "2019-08-25T21:15:30Z")

</div>

Hi,

I am trying to add IPSec to the WP7702 on the magOH Red.

To achieve this I downloaded the tarbal and

Added the following to local.conf  
`DISTRO_FEATURES_append = " ipsec"`

And created a custom recipe file similar to mdm9x28-image-minimal with the addition of  
IMAGE\_INSTALL\_append = "   
strongswan   
"

I then successfully built the image

I downloaded the modem firmware and legato firmware from the [source site](https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-latest-release-components/)

I created a custom spk using:  
`swicwe -o custom-firmware.spk -c SWI9X06Y_02.22.12.00_00_SIERRA_001.021_000.spk yocto_wp77xx.4k.cwe legato-18.09.2.cwe`

Flashed it using:  
`swiflash -m WP77XX -i custom-firmware.spk`

I got:  
`Firmware Download SUCCESS`

However it seems that the image on the device does not contain the updated firmware, I was wondering if I am doing something wrong along the way.

Thanks,  
S

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [September 18, 2019, 8:31pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875/2 "2019-09-18T20:31:48Z")

</div>

> I then successfully built the image  
> Can you elaborate on what you did to build the image?

Are you sure that the firmware you built/installed is not running? Have you considered the possibility that `strongswan` wasn’t included in your build? Maybe you can search the build directories to see if it looks like it was built.

---

<div class="post-metadata">

**Author:** ![sbranover](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sbranover](https://mangoh.discourse.group/u/sbranover)\
**Post date:** [September 19, 2019, 5:52pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875/3 "2019-09-19T17:52:48Z")

</div>

> Can you elaborate on what you did to build the image?

- I ran `make dev`
- Added `DISTRO_FEATURES_append = " ipsec"` to local.conf
- made a renamed copy of /meta-swi/meta-swi-mdm9x28/recipes-core/mdm9x28-image-minimal.bb
- made a renamed copy of /meta-swi-extras/meta-swi-mdm9x28/recipes/images/mdm9x28-image-minimal.bbappend
- Added `IMAGE_INSTALL_append = " \ strongswan \ "` to the bbapend file
- Then ran `bitbake <custom image recipe name>`

> Are you sure that the firmware you built/installed is not running? Have you considered the possibility that strongswan wasn’t included in your build?

i’m not sure how to check it, the tarbal in `/tmp/deploy/images` named `mdm9x28-<custom image>-swi-mdm9x28-wp.tar.bz2` contains `ipsec` in `/usr/sbin/` however it is not in the module’s file system.

I’m not sure how to check if it is contained in `yocto_wp77xx.4k.cwe`

---

<div class="post-metadata">

**Author:** ![franzkaiser](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franzkaiser](https://mangoh.discourse.group/u/franzkaiser)\
**Post date:** [January 24, 2020, 11:05pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875/4 "2020-01-24T23:05:47Z")

</div>

Hi, have you been successful meanwhile?

---

<div class="post-metadata">

**Author:** ![sbranover](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sbranover](https://mangoh.discourse.group/u/sbranover)\
**Post date:** [January 26, 2020, 5:10pm UTC](https://mangoh.discourse.group/t/flashing-custom-yocto-image/2875/5 "2020-01-26T17:10:38Z")

</div>

I have not, I haven’t really worked on this much
