# Rebuilding Legato Kernel

**URL:** <https://mangoh.discourse.group/t/rebuilding-legato-kernel/65>\
**Category:** mangOH Green\
**Created:** [May 17, 2016, 2:29pm UTC](https://mangoh.discourse.group/t/rebuilding-legato-kernel/65 "2016-05-17T14:29:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlapsley](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tlapsley](https://mangoh.discourse.group/u/tlapsley)\
**Post date:** [May 17, 2016, 2:29pm UTC](https://mangoh.discourse.group/t/rebuilding-legato-kernel/65/1 "2016-05-17T14:29:28Z")

</div>

We would like to rebuild/reconfigure a custom kernel for the wp85 using instructions from this link:

[http://legato.io/legato-docs/latest/yocto\_legato.html#getstartedYoctoLinux\_rebuildYoctoImages](http://legato.io/legato-docs/latest/yocto_legato.html#getstartedYoctoLinux_rebuildYoctoImages)  
There does not appear to be a [stdbuild.sh](http://stdbuild.sh) file  
If attempting to run the standard example from README.build:  
./build.sh -p …/poky/ -o …/meta-openembedded/ -l …/meta-swi -m swi-mdm9x15 -q -t -4 j 4 -d  
gets this error:  
loading cache: 100% |####################################################################################| ETA: 00:00:00  
Loaded 782 entries from dependency cache.  
NOTE: Error during finalise of /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt\_3.14.bb| ETA: --:–:--  
NOTE: Error during finalise of /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto\_3.14.bb  
ERROR: ExpansionError during parsing /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt\_3.14.bb: Failure expanding variable do\_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get\_srcrev(d)} which triggered exception MalformedUrl: The URL: ‘git://;protocol=file;branch=standard/swi-mdm9x15-yocto-1.7-swi-le55,meta-yocto-1.7-swi-le55;name=machine,meta’ is invalid and cannot be interpreted  
Summary: There was 1 WARNING message shown.  
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Is the swi-mdm9x15 argument correct for wp85 or is it possible the Legato-Dist-Source-mdm9x15-SWI9x15Y\_07.08.03.00.tar.bz2 (from the Legato Downloads link) is not the latest?

If attempting to simply run ‘make’ (via these instructions [http://legato.io/legato-docs/latest/yocto\_build.html](http://legato.io/legato-docs/latest/yocto_build.html)) from the yocto build generates the following errors:

Failed to fetch URL git://codeaurora.org/platform/hardware/libhardware;branch=LNX.LE.2.1  
…  
Fatal : unable to connect to [codeaurora.org](http://codeaurora.org):

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [May 18, 2016, 2:47am UTC](https://mangoh.discourse.group/t/rebuilding-legato-kernel/65/2 "2016-05-18T02:47:46Z")

</div>

Hi,  
Would be better to ask this particular question on the legato forum:  
[https://forum.sierrawireless.com/viewforum.php?f=177](https://forum.sierrawireless.com/viewforum.php?f=177)  
cheers,  
Ashish

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 6, 2017, 5:19am UTC](https://mangoh.discourse.group/t/rebuilding-legato-kernel/65/3 "2017-03-06T05:19:17Z")

</div>


