# IMX6ULEVK: adding custom machine throws arm-poky-linux-gnueabi-gcc: command not found

**URL:** <https://hub.mender.io/t/imx6ulevk-adding-custom-machine-throws-arm-poky-linux-gnueabi-gcc-command-not-found/1578>\
**Category:** General Discussions\
**Created:** [February 25, 2020, 9:42am UTC](https://hub.mender.io/t/imx6ulevk-adding-custom-machine-throws-arm-poky-linux-gnueabi-gcc-command-not-found/1578 "2020-02-25T09:42:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SivaKRC](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sivakrc/32/124_2.png) [@SivaKRC](https://hub.mender.io/u/SivaKRC)\
**Post date:** [February 25, 2020, 9:42am UTC](https://hub.mender.io/t/imx6ulevk-adding-custom-machine-throws-arm-poky-linux-gnueabi-gcc-command-not-found/1578/1 "2020-02-25T09:42:41Z")

</div>

My board is based on IMX6ULEVK. I am trying to add custom machine type (imx6uloib) and few meta layers.

1. repo init -u [https://source.codeaurora.org/external/imx/imx-manifest](https://source.codeaurora.org/external/imx/imx-manifest) -b imx-linux-sumo -m imx-4.14.98-2.0.0\_ga.xml
2. repo sync
3. cd sources
4. add custom layers in base/conf/bblayers.conf
5. copy the meta-custom-xx directories to sources. this folder has machine.conf and recipes-kernel/linux-imx\_%.bbappend
6. DISTRO=fsl-imx-xwayland MACHINE=imx6uloib source fsl-setup-release.sh -b build-ul
7. bitbake core-image-base

i am getting the below errors. i see that toolchain is downloaded in build directory. Can someone help?

| /nobackup/sikumar3/inode\_sumo/buildnew/tmp/work-shared/imx6uloib/kernel-source/scripts/gcc-version.sh: line 26: arm-poky-linux-gnueabi-gcc: command not found  
| /nobackup/sikumar3/inode\_sumo/buildnew/tmp/work-shared/imx6uloib/kernel-source/scripts/gcc-version.sh: line 27: arm-poky-linux-gnueabi-gcc: command not found

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [February 25, 2020, 5:38pm UTC](https://hub.mender.io/t/imx6ulevk-adding-custom-machine-throws-arm-poky-linux-gnueabi-gcc-command-not-found/1578/2 "2020-02-25T17:38:04Z")

</div>

Hi @SivaKRC, welcome to Mender Hub.

That error looks to me like something in your standard Yocto configuration and not specific to Mender. Can you reproduce this without any of the Mender layers?

And just to be sure, I would invoke bitbake as follows:  
`MACHINE=imx6uloib bitbake core-image-base`

Drew

---

<div class="post-metadata">

**Author:** ![SivaKRC](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sivakrc/32/124_2.png) [@SivaKRC](https://hub.mender.io/u/SivaKRC)\
**Post date:** [February 26, 2020, 1:09pm UTC](https://hub.mender.io/t/imx6ulevk-adding-custom-machine-throws-arm-poky-linux-gnueabi-gcc-command-not-found/1578/3 "2020-02-26T13:09:05Z")

</div>

i tried “MACHINE=imx6uloib bitbake core-image-base” and I am getting the same error.

| /nobackup/sikumar3/mynode\_sumo/build-ul/tmp/work-shared/imx6uloib/kernel-source/scripts/gcc-version.sh: line 26: arm-poky-linux-gnueabi-gcc: command not found  
| /nobackup/sikumar3mynode\_sumo/build-ul/tmp/work-shared/imx6uloib/kernel-source/scripts/gcc-version.sh: line 27: arm-poky-linux-gnueabi-gcc: command not found
