# Wp85 rebuilding legato kernel

**URL:** https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220
**Category:** Legato Application Framework
**Created:** [May 24, 2016, 5:27pm UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220 "2016-05-24T17:27:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tlapsley](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tlapsley](https://forum.legato.io/u/tlapsley)
#### Post date: [May 24, 2016, 5:27pm UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/1 "2016-05-24T17:27:47Z")

</div>

We would like to rebuild/reconfigure a custom kernel for the wp85 using instructions from this link:  
[legato.io/legato-docs/latest/yoc … ctoImages3](http://legato.io/legato-docs/latest/yocto_legato.html#getstartedYoctoLinux_rebuildYoctoImages3)  
There does not appear to be a 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 [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/ … LNX.LE.2.1  
…  
Fatal : unable to connect to [codeaurora.org](http://codeaurora.org):

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![tlapsley](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@tlapsley](https://forum.legato.io/u/tlapsley)
#### Post date: [May 27, 2016, 12:03pm UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/2 "2016-05-27T12:03:16Z")

</div>

Is there anyone else that was successful to build the kernel for wp85 ?

---

<div class="post-metadata">

### Author: ![dmarinkovic](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@dmarinkovic](https://forum.legato.io/u/dmarinkovic)
#### Post date: [June 6, 2016, 9:00pm UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/3 "2016-06-06T21:00:20Z")

</div>

Hi tlapsley,

Have you tried to run:

```auto
    make image
```

Before building kernel? You need to run this command only once. After that you can:

```auto
    cd poky
    source ./oe-init-build-env
    cd ../../build_bin
    bitbake -c cleanall linux-yocto (to clean)
    bitbake linux-yocto (to build it again)
    bitbake -c compile linux-yocto -f (to force kernel compilation)
    etc.
```

You can read more about bitbake commands at [url][Welcome to the Yocto Project Documentation — The Yocto Project ® 4.0.999 documentation](https://www.yoctoproject.org/documentation/bitbake-user-manual-0%5B/url%5D) .

Please, let me know if you have any other questions.

Best regards,  
Dragan

---

<div class="post-metadata">

### Author: ![rio99](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@rio99](https://forum.legato.io/u/rio99)
#### Post date: [September 1, 2016, 8:21am UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/4 "2016-09-01T08:21:45Z")

</div>

I have the same problem, but `make image` didn’t help:

[color=#BF0000]ERROR: Fetcher failure: Fetch command failed with exit code 128, output:  
Cloning into bare repository ‘/home/igor/yocto/build\_bin/downloads/git2/codeaurora.org.platform.hardware.libhardware’…  
fatal: unable to connect to [codeaurora.org](http://codeaurora.org):  
[codeaurora.org](http://codeaurora.org)[0: 198.145.29.80]: errno=Connection refused  
ERROR: Function failed: Fetcher failure for URL: ‘git://codeaurora.org/platform/hardware/libhardware;branch=LNX.LE.2.1’. Unable to fetch URL from any source.  
ERROR: Logfile of failure stored in: /home/igor/yocto/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libhardware/1.0-r0/temp/log.do\_fetch.22981  
ERROR: Task 1284 (/home/igor/yocto/meta-swi/meta-swi-mdm9xxx/recipes-bsp/libhardware/libhardware.bb, do\_fetch) failed with exit code ‘1’[/color]

Doing `./build.sh -p ../poky/ -o ../meta-openembedded/ -l ../meta-swi -m swi-mdm9x15 -q -t 4 -j 4 -d` throws another error:  
[color=#BF0000]ERROR: ExpansionError during parsing /home/igor/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  
[/color]

I have Legato Linux distribution Version 16.07.0 downloaded from [source.sierrawireless.com/resour … linuxdist/](http://source.sierrawireless.com/resources/legato/legatolinuxdist/) and I am trying to build on ubuntu 16.04.  
Any help will be appreciated.

---

<div class="post-metadata">

### Author: ![tconant](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@tconant](https://forum.legato.io/u/tconant)
#### Post date: [December 30, 2016, 11:00pm UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/5 "2016-12-30T23:00:51Z")

</div>

Where you able to get past this? I’m having the same issue.

---

<div class="post-metadata">

### Author: ![rio99](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@rio99](https://forum.legato.io/u/rio99)
#### Post date: [January 9, 2017, 11:30am UTC](https://forum.legato.io/t/wp85-rebuilding-legato-kernel/220/6 "2017-01-09T11:30:42Z")

</div>

I built it at home : ) I have very restricted connection at work, some TCP ports were blocked, the problem was in these restrictions.
