# Yocto build for IMX8MP impossible to build

**URL:** <https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456>\
**Category:** NXP i.MX8M Plus\
**Tags:** iMX8M-plus\
**Created:** [September 2, 2022, 2:58pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456 "2022-09-02T14:58:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Juan](https://community.solid-run.com/u/Juan)\
**Post date:** [September 2, 2022, 2:58pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/1 "2022-09-02T14:58:04Z")

</div>

Hy everyone, I’m trying to build a yocto image with Ubuntu 20.04, 64 GB RAM. I’m installing all the yocto dependencies, following the git solidrun yocto web steps, but I receive a lot of warnings “Failed to fetch”:

Then, I have solved them with this:

git config --global url." i cant put urls “.insteadOf [git@github.com](mailto:git@github.com):  
git config --global url.” i cant put urls ".insteadOf git://

But anyway, I have received this error related with other repository that is dead:

| fatal: repository '[https://anongit.freedesktop.org/gstreamer/common/’](https://anongit.freedesktop.org/gstreamer/common/%27) not found

What is the reason? What am i doing wrong? I have tried different yocto versions, different ubuntu versions but there is no way to create a yocto image.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 3, 2022, 4:57am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/2 "2022-09-03T04:57:51Z")

</div>

What version of Yocto are you trying to compile?

---

<div class="post-metadata">

**Author:** ![Juan](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Juan](https://community.solid-run.com/u/Juan)\
**Post date:** [September 5, 2022, 6:42am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/3 "2022-09-05T06:42:38Z")

</div>

The Yocto version I have trying is Hardknott.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 5, 2022, 6:44am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/4 "2022-09-05T06:44:41Z")

</div>

interesting. I wonder if NXP has changed their recipes. I will do a build and see what is going on.

---

<div class="post-metadata">

**Author:** ![jola](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jola](https://community.solid-run.com/u/jola)\
**Post date:** [October 11, 2022, 3:43pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/5 "2022-10-11T15:43:38Z")

</div>

How did it go with this? I have the same issue that the full build failed. The only build that works is the following:

- core-image-minimal
- imx-image-core
- imx-image-multimedia

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 13, 2022, 4:08am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/6 "2022-10-13T04:08:33Z")

</div>

You are getting a failure building imx-image-full? This is the same recipe we are using to build our CI and doing a grep through the sources file I can not match any recipes for this image, `grep -r 'anongit\.freedesktop\.org' sources/*`

---

<div class="post-metadata">

**Author:** ![jola](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jola](https://community.solid-run.com/u/jola)\
**Post date:** [October 13, 2022, 8:12am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/7 "2022-10-13T08:12:51Z")

</div>

So you could not find “imx-image-full”? This is the command that you have in your README.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 13, 2022, 8:16am UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/8 "2022-10-13T08:16:13Z")

</div>

yes, and that is what we are building from our CI, and what I am testing locally. This is the output I have from the grep command I provided.

```auto
meta-openembedded/meta-networking/recipes-support/spice/spice-protocol_git.bb: git://anongit.freedesktop.org/spice/spice-protocol;branch=master \
meta-openembedded/meta-networking/recipes-support/spice/spice_git.bb: git://anongit.freedesktop.org/spice/spice;name=spice;branch=master \
meta-openembedded/meta-networking/recipes-support/spice/spice_git.bb: git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common;branch=master \
meta-openembedded/meta-networking/recipes-support/spice/usbredir_0.9.0.bb: git://anongit.freedesktop.org/spice/usbredir;branch=master \
meta-openembedded/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb:SRC_URI = "git://anongit.freedesktop.org/xdg/pyxdg;branch=master"
meta-openembedded/meta-oe/recipes-graphics/vdpau/libvdpau_1.4.bb:SRC_URI = "git://anongit.freedesktop.org/vdpau/libvdpau;branch=master"
meta-openembedded/meta-oe/recipes-graphics/xorg-driver/xf86-video-armsoc_1.4.1.bb:SRC_URI = "git://anongit.freedesktop.org/xorg/driver/xf86-video-armsoc;branch=master"
poky/bitbake/lib/bb/tests/fetch.py: # mirror of git://anongit.freedesktop.org/git/xorg/proto/presentproto since network issues interfered with testing
poky/bitbake/lib/bb/tests/fetch.py: # mirror of git://anongit.freedesktop.org/xorg/driver/xf86-video-omap since network issues interfered with testing
poky/meta/recipes-graphics/virglrenderer/virglrenderer_0.8.2.bb:SRC_URI = "git://anongit.freedesktop.org/virglrenderer;branch=master \
poky/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb:SRC_URI = "git://anongit.freedesktop.org/xorg/driver/xf86-video-intel;branch=master \

```

none of those recipes should be included in the imx-image-full, and all of them are from the core hardknott repositories

---

<div class="post-metadata">

**Author:** ![jola](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jola](https://community.solid-run.com/u/jola)\
**Post date:** [October 13, 2022, 1:26pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/9 "2022-10-13T13:26:57Z")

</div>

I manged to build the full build some days back. But because I needed to change the git commits used for this Yocto setup (by SolidRun) it did not change the fact that the default setup are ok and this is the topic of this thread. So what you are saying is that full build are broken. And if so how will fix it?

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 13, 2022, 2:54pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/10 "2022-10-13T14:54:44Z")

</div>

I am unsure of the issue you are having. You have provided no logs and the error that you described seems to be specific to your network setup. All of our git URL’s are using protocol=https so should run on any network that allows https to github. HTTPS urls will fail if your network does not allow the protocol, your build system does not have ca-certificates installed, or your local time is set incorrectly.

---

<div class="post-metadata">

**Author:** ![jola](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jola](https://community.solid-run.com/u/jola)\
**Post date:** [October 13, 2022, 3:06pm UTC](https://community.solid-run.com/t/yocto-build-for-imx8mp-impossible-to-build/456/11 "2022-10-13T15:06:59Z")

</div>

This is not my case, so yes no logs. I just want to know if there are any issue because the thread was not answered and I have issue with imx-image-full. So the 6 month old git should work fine without any issue, right?

Just answer some of your questions: I do not believe I have issue with HTTPS accesses and all gits are fetched and the error I get are related to a do\_compile so not the OPs issue.
