AnsweredAssumed Answered

imx7dsabresd Host toolchain setup error

Question asked by arsadhusain momin on Sep 13, 2017
Latest reply on Sep 13, 2017 by Yuri Muhin
Branched to a new discussion

Hi,

 

I'm working on i.MX7 Sabre board.

I downloaded the BSP from here.

https://www.nxp.com/webapp/Download?colCode=L4.1.15_1.2.0_iMX7D&appType=license&Parent_nodeId=1458252097425719553900&Par… 

 

The board is working fine. But I'm having problems in setting up toolchain on my host machine.

I'm using Ubuntu 14.04.

 

I followed the Project User's Guide and set up Yocto build system on my host.

 

First I did,

 

MACHINE=imx7dsabresd source fsl-setup-release.sh -b toolchain

 

then I did,

 

bitbake meta-toolchain

 

I also ran the sdk setup script which was generated in "..toolchain/tmp/deploy/sdk/" directory,

Which setup the toolchain in my /opt directory.

 

Then I did,

 

source /opt/fsl-imx-x11/4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi

 

and finally,

 

arm-poky-linux-gnueabi-gcc hello_world.c -o hello_world

 

It gave me an error saying it can not find the header files.

 

I checked the "/opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/i686-pokysdk-linux/usr/include" directory,

and there were no header files in it.

 

I also tried it with "-I/opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/include/" flag,

which is giving me more errors.

 

Also, I've done

 

DISTRO=fsl-imx-x11 MACHINE=imx7dsabresd source fsl-setup-release.sh -b build-x11

bitbake core-image-minimal -c populate_sdk

 

and ended up with the same thing.

 

My requirements:

 

1) Setup a toolchain on my host machine with required header files.

2) Compile a simple C program that I can run on the target board.

3) Header files for compiling imx-test programs in a standalone environment.

 

Please help asap.

Thanks.

Outcomes