# Booting yocto-wp85 from uSD

**URL:** <https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331>\
**Category:** Legato Application Framework\
**Created:** [June 13, 2018, 8:50am UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331 "2018-06-13T08:50:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrousocomec](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mrousocomec](https://forum.legato.io/u/mrousocomec)\
**Post date:** [June 13, 2018, 8:50am UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/1 "2018-06-13T08:50:56Z")

</div>

Hello  
I am working on a custom yocto image with a nginx server and an influxdb database and django genucorn the image size is 40 MiB which exceeds the size of the memory of WP85 which is 32MiB I am looking for a solution for this problem I was thinking about booting from an SD card is what is possible and how to do it knowing that the format of the images yocto-wp85 is .spk how to flash this format on an SD card

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 13, 2018, 8:58am UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/2 "2018-06-13T08:58:12Z")

</div>

have you tried to modify the partition size of WP85 by AT!APPPARTCHG so that you can flash your image?

---

<div class="post-metadata">

**Author:** ![mrousocomec](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mrousocomec](https://forum.legato.io/u/mrousocomec)\
**Post date:** [June 13, 2018, 2:42pm UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/3 "2018-06-13T14:42:37Z")

</div>

I thank you for the response i can’t find that command in the wp85 AT commands guilde and when i try it i get an error

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 13, 2018, 2:50pm UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/4 "2018-06-13T14:50:52Z")

</div>

You need to enter AT! entercnd=“A710”  
To unlock the module first.

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [June 14, 2018, 10:59pm UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/5 "2018-06-14T22:59:06Z")

</div>

It might be hard to start the whole system from SD as I feel things are a bit hardcoded in the initramfs scripts.  
You could try to update the script (cf `meta-swi/meta-swi-mdm9xxx/recipes-core/initrdsripts/files/init.sh`) and you might need to update the cmdline as well (`meta-swi/meta-swi-mdm9x15/conf/machine/swi-mdm9x15.conf`).

In theory though I don’t think there is anything that would prevent you do to this.

Another possibility, a bit less hard to maintain: just ship part of your system on a SD card (all the influxdb, django, etc…) and mount it at some point of the boot sequence, and then init start the apps that you need from there.

---

<div class="post-metadata">

**Author:** ![mrousocomec](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mrousocomec](https://forum.legato.io/u/mrousocomec)\
**Post date:** [June 18, 2018, 12:01pm UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/6 "2018-06-18T12:01:18Z")

</div>

Hello  
i thank you for your propositions  
after doing the described steps up i got a problem with ethernet communication the Leds are off no automatic detection of ethernet on my host computer and when i put /sbin/ifconfig -a i dont find “eth0” in the list

---

<div class="post-metadata">

**Author:** ![apmangoh](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/apmangoh/32/496_2.png) [@apmangoh](https://forum.legato.io/u/apmangoh)\
**Post date:** [July 6, 2018, 9:34am UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/7 "2018-07-06T09:34:56Z")

</div>

Hi @mrousocomec ,  
you should add in startup script some lines:

echo 2 \> /sys/class/gpio/export  
echo out \> /sys/class/gpio/gpio2/direction  
echo 1 \>/sys/class/gpio/gpio2/value

This should resolve your problem.

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [October 12, 2018, 12:30pm UTC](https://forum.legato.io/t/booting-yocto-wp85-from-usd/3331/8 "2018-10-12T12:30:10Z")

</div>

Hi @mrousocomec,  
did you solve your issue by applying the last proposal?  
best regards,
