# iWave Arria 10 Mender build issue

**URL:** <https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218>\
**Category:** General Discussions\
**Created:** [February 15, 2019, 9:25am UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218 "2019-02-15T09:25:25Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [February 20, 2019, 1:16pm UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/21 "2019-02-20T13:16:02Z")

</div>

> Do you know why _u-boot-fw-utils_ \* is being built?

Mender has a dependency on this and that is why it is build.

Any “patch fixes” that you have done on your U-boot recipe you need to apply to the u-boot-fw-utils recipe as well.

They are actually built from the same source, but as it is two different packages they have two “instances” of the source code that you need to patch similarly.

---

<div class="post-metadata">

**Author:** ![GaryNewman](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@GaryNewman](https://hub.mender.io/u/GaryNewman)\
**Post date:** [February 20, 2019, 1:35pm UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/22 "2019-02-20T13:35:37Z")

</div>

I’m actually adding the patch into u-boot-mender-common.inc, so this should be picked up by both u-boot-mender.inc & u-boot-fw-utils-mender.inc.

The problem is that the file that is patched _ **git/scripts/Makefile.autoconf** _ is different between the the two source directories.

In directory u-boot-socfpa the change:  
_@@ -78,6 +78,7 @@_  
\_ echo #include \<configs/$(CONFIG\_SYS\_CONFIG\_NAME).h\>; \_  
\_ echo #include \<asm/config.h\>; \_  
\_ echo #include \<config\_fallbacks.h\>; \_  
_+ echo #include \<config\_mender.h\>; \_  
\_ echo #include \<config\_uncmd\_spl.h\>; )_  
\_ endef\_

Is at line 78 and applies.

In directory u-boot-fw-utils the code to be changed is at line 111.

Therefore the same patch cannot be applied to two different files.

Seems strange that these files should be different if one directory is based of the other?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [February 20, 2019, 1:50pm UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/23 "2019-02-20T13:50:50Z")

</div>

I would compare the git SHA of booth u-boot and u-boot-fw-utils recipe, it seems that they are not same then if the source differs.

Aaah, now I see the problem. You said that your U-boot is 2014.10, but you are building u-boot-fw-utils 2017.09. That explains the difference.

What you need to do is to provide your own `u-boot-fw-utils_2014.10.bb` that uses the same source as your `u-boot_2014.10.bb`

You should really have the equivalent of the [upstream](http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot?h=pyro) u-boot recipes for your 2014.10 fork.

There is also a section in our docs,

[https://docs.mender.io/1.7/devices/yocto-project/bootloader-support/u-boot/manual-u-boot-integration/providing-custom-u-boot-fw-utils](https://docs.mender.io/1.7/devices/yocto-project/bootloader-support/u-boot/manual-u-boot-integration/providing-custom-u-boot-fw-utils)

---

<div class="post-metadata">

**Author:** ![GaryNewman](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@GaryNewman](https://hub.mender.io/u/GaryNewman)\
**Post date:** [February 20, 2019, 1:51pm UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/24 "2019-02-20T13:51:41Z")

</div>

Thanks, will check it out.

---

<div class="post-metadata">

**Author:** ![GaryNewman](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@GaryNewman](https://hub.mender.io/u/GaryNewman)\
**Post date:** [February 21, 2019, 11:11am UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/25 "2019-02-21T11:11:51Z")

</div>

Hi,

I’ve created a u-boot-fw\_utils\_v2014.10.bb recipe based on a combination of my u-boot recipe, the documentation example and my u-boot.inc. (Cant paste it as it keeps telling me I can’t quote 2 users?)

I’ve also updated my machine conf adding:  
PREFERRED\_PROVIDER\_u-boot-fw-utils = “u-boot-fw-utils-v2014.10”  
PREFERRED\_RPROVIDER\_u-boot-fw-utils = “u-boot-fw-utils-v2014.10”

After the recipes were parsed I’m seeing the following warning:

NOTE: Resolving any missing task queue dependencies  
**NOTE: multiple providers are available for runtime u-boot-fw-utils (u-boot-fw-utils, u-boot-fw)**  
NOTE: consider defining a PREFERRED\_RPROVIDER entry to match u-boot-fw-utils

I can see that u-boot-fw-utils is still being built from _u-boot-fw-utils/1\_2017.01-r0_.

Have I missed a step?

---

<div class="post-metadata">

**Author:** ![GaryNewman](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@GaryNewman](https://hub.mender.io/u/GaryNewman)\
**Post date:** [February 21, 2019, 12:07pm UTC](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218/26 "2019-02-21T12:07:36Z")

</div>

OK I see my error, I got confused with the my\_fork syntax.

Have renamed my recipe u-boot-fw-utils-socfpga\_v2014.10.bb and set iwg24m.conf to:  
PREFERRED\_PROVIDER\_u-boot-fw-utils = “u-boot-fw-utils-socfpga”  
PREFERRED\_RPROVIDER\_u-boot-fw-utils = “u-boot-fw-utils-socfpga”

Seems to be building.

[Previous page](https://hub.mender.io/t/iwave-arria-10-mender-build-issue/218.md?page=1)
