imx7dsabresd Host toolchain setup error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx7dsabresd Host toolchain setup error

1,268 Views
arsadhusainmomi
Contributor I

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=145825... 

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.

Labels (3)
0 Kudos
Reply
2 Replies

869 Views
Yuri
NXP Employee
NXP Employee

Hello,

  I hope the following helps.

https://community.nxp.com/docs/DOC-334814 

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

869 Views
arsadhusainmomi
Contributor I

Thanks.

I'm now able to compile using

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

$CC hello_world.c -o hello_world

But now I'm trying to compile mxc_epdc_fb_test.c (imx-test package) using the toolchain,

and the sysroot is missing certain headers. i.e. "linux/mxcfb.h"

I've tried copying these headers from kernel-source but had no luck so far.

Is it possible to compile the test programs in a standalone environment?

How can I build an SDK which has these header files preinstalled?

Please help asap.

0 Kudos
Reply