# WP76xx R8 Yocto linux does not build correctly

**URL:** <https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [March 13, 2018, 1:12pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156 "2018-03-13T13:12:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 13, 2018, 1:12pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/1 "2018-03-13T13:12:17Z")

</div>

Trying to make a custom image, but first trying the R8 version of Yocto source to build, does not build correctly. It errors out. A second attempt (making no changes), claims to have finished with no build, but is not the same size as the original, not to mention the binary differences. It’s at least 500 bytes less.

---

<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:** [March 13, 2018, 6:40pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/2 "2018-03-13T18:40:04Z")

</div>

Hi @EvetsMostel,

could you provide some logs? It is hard to figure out what the problem is without them.

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 14, 2018, 12:34am UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/3 "2018-03-14T00:34:16Z")

</div>

Hi @CoRfr,  
Apparently, this only happens when you first untar the file and try to build it. I did this twice (for other reasons) and I got the issue both times. If you just do a clean and build it doesn’t happen. Since it takes a long time to build it on my VM, I will try to do it tonight and let you know tomorrow.

Evets

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 14, 2018, 1:15pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/4 "2018-03-14T13:15:32Z")

</div>

Hi @CoRfr,  
Apparently, third times a charm? Definitely had this problems, the first two times I did it. This time though, no errors, just 39 warnings. Not sure why that would be. Each time I deleted the entire yocto directory and extracted the tar file the same way. Go Figure. I will compare the .cwe files though to see that they are the same size. That was really my biggest concern anyway.

After comparing the linux-SWI9x07Y\_02.14.04.00.cwe to my yocto\_wp76xx.4k.cwe, I am again missing about 500K bytes. What is going on?

Evets

---

<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:** [March 14, 2018, 4:48pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/5 "2018-03-14T16:48:53Z")

</div>

> [@EvetsMostel](#):
>
> linux-SWI9x07Y\_02.14.04.00.cwe to my yocto\_wp76xx.4k.cwe

Could you post a `swicwe -P` on both files?

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 14, 2018, 6:15pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/6 "2018-03-14T18:15:06Z")

</div>

Hi @CoRfr ,

swicwe -P linux-SWI9X07Y\_02.14.04.00.cwe  
Type Size(Exclude Header) Product Compress Version  
\*APPL 29642568 Y921 0 SWI9X07Y\_02.14.04.00 000000 jenkins 2018/02/14 22:59:27  
APBL 529704 9X28 0 SWI9X07Y\_02.14.04.00 000000 jenkins 2018/02/14 22:59:27  
SYST 19922944 9X28 0 SWI9X07Y\_02.14.04.00 000000 jenkins 2018/02/14 22:59:27  
APPS 9188720 9X28 0 SWI9X07Y\_02.14.04.00 000000 jenkins 2018/02/14 22:59:27

swicwe -P yocto\_wp76xx.4k.cwe  
Type Size(Exclude Header) Product Compress Version  
\*APPL 29116560 Y921 0 SWI9X07Y\_02.14.04.00 2018/03/13 22:56:41  
SYST 19922944 9X28 0 SWI9X07Y\_02.14.04.00 2018/03/13 22:56:41  
APPS 9192816 9X28 0 3.18.20+gitdd8fe1c7affdfb324e1b5db7701dbb69af46a8ec 20180313232734

Appears to be missing the APBL section, among other things.

---

<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:** [March 15, 2018, 8:27am UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/7 "2018-03-15T08:27:59Z")

</div>

The rootfs size (SYST) is exactly the same, and the kernel size (APPS) is extremely close (diff = 4096, so it might have been just a small diff in size that eventually took one more sector).  
What’s really different in your cwe is that lk (=apps bootloader, APBL) is not in there, and that should not be considered as an issue, you can eventually package it in it through swicwe if you do not want to keep the stock lk.

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 15, 2018, 1:37pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/8 "2018-03-15T13:37:36Z")

</div>

But should not not be the same? I downloaded the source, untared it and did a make image. Shouldn’t that get EXACTLY what is released via download? Otherwise, in Dev Studio, when you build a custom image it would be missing, and so not everything would be in sync with the current release. I shouldn’t have 4K missing. I can see small differences in bytes due to time/date being involved in the compilations, but 4K in size? That’s Never been a good thing in any product I’ve worked on.

---

<div class="post-metadata">

**Author:** ![Manukumar](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Manukumar](https://forum.legato.io/u/Manukumar)\
**Post date:** [March 19, 2018, 7:11am UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/9 "2018-03-19T07:11:53Z")

</div>

Hi,

We tried with the latest release R8. and also downloaded the yocto release with the SWI9X07Y\_02.14.04.00 Source but We have not face any compilation and build error.both compile/build was successful.

after extracting SWI9X07Y\_02.14.04.00 Source we got “yocto” and we gave make.  
We got error.later once again We gave make .it was building successful.

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 19, 2018, 12:51pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/10 "2018-03-19T12:51:07Z")

</div>

Right. That is what I saw. It would give an error the first time, then if you did ‘make image’ a second time without doing anything else, it would complete. However, it is not the same size as the image downloaded from Sierra’s Source. It is missing the boot image, but the total size of the other images aren’t the same. about 4K less, which is disturbing. Can you verify the images you got, and why isn’t the bootloader in there?

---

<div class="post-metadata">

**Author:** ![rkirk](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@rkirk](https://forum.legato.io/u/rkirk)\
**Post date:** [March 19, 2018, 5:27pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/11 "2018-03-19T17:27:30Z")

</div>

Hello - I can respond regarding the absence of the LK bootloader. The omission of the LK image from the yocto\_wp76xx.4k.cwe is intentional in the WP76xx series, but feedback seems to be trending towards adding it back to a combined CWE again, as was done for WP8548/WP75xx. We’re tracking that feedback, but I’m not sure it’s reached consensus yet. I think we could add a new combined CWE without removing any of the existing CWE files though, which should give everyone the option they need.

The other problem, though, is that the standalone LK CWE file (appsboot\_wp76xx.cwe) generated by the build has a Y922 product ID, which is for a deprecated model of the WP76xx with 2K page size flash. Fortunately, the MBN format of the LK is the same regardless of flash, so with some repackaging, you can still get a familiar CWE with LK, Kernel, and Rootfs, if desired. From build\_bin/tmp/deploy/images/swi-mdm9x28/:  
`swicwe --ACWE --pid Y921 --lk appsboot.mbn --rootfs mdm9x28-image-minimal-swi-mdm9x28.4k.default --kernel boot-yocto-mdm9x28.4k.img -o boot-yocto_wp76xx.4k.cwe`

This is not something we intend to impose on users going forward. It’s scheduled to be improved for Release 9. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![leond](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@leond](https://forum.legato.io/u/leond)\
**Post date:** [April 14, 2020, 9:06pm UTC](https://forum.legato.io/t/wp76xx-r8-yocto-linux-does-not-build-correctly/3156/12 "2020-04-14T21:06:45Z")

</div>

Hi,

I have a similar question regarding the inclusion of two extra partitions in the R12 downloaded image vs the compiled yocto linux image.

> **[WP76xx R12 Yocto Linux Build Different to Downloaded Image](https://forum.sierrawireless.com/t/wp76xx-r12-yocto-linux-build-different-to-downloaded-image/20011/1)**
>
> I successfully make the yocto\_wp76xx.4k.cwe file by running “make image\_bin” from the yocto directory of the downloaded and uncompressed R12 tarball. The tarball was downloaded from the Sierra Wireless. However, running swicwe -P yocto\_wp76xx.4k.cwe...

Do I need to worry about the differences?
