fsl-image-qt5 -c populate_sdk

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

fsl-image-qt5 -c populate_sdk

1,706 Views
1990rahulreddy
Contributor IV

I have build fsl-image-qt5, but after running fsl-image-qt5 -c populate_sdk, I did not able to create file like "poky-eglibc-x86_64-core-image-base-cortexa9hf-vfp-neon-toolchain-1.6.1.sh

",which I got in fsl-image-gui. But, build is successful after running fsl-image-qt5 -c populate_sdk

Labels (3)
0 Kudos
7 Replies

857 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

It should be in /build_<name>/tmp/deploy/sdk

For example in 3.14.52 BSP:

fsl-imx-x11-glibc-x86_64-fsl-image-qt5-cortexa9hf-vfp-neon-toolchain-3.14.52-1.1.0.sh

Luis

0 Kudos

857 Views
1990rahulreddy
Contributor IV

I have install toolchain, & in ubuntu terminal, I cross compile using "arm-poky-linux-gnueabi-gcc hello.c -o hello", hello.c is in that directory. but, it is showing

hello.c:1:19: fatal error: stdio.h: No such file or directory

#include <stdio.h>

                   ^

compilation terminated.

what could be the problem...

0 Kudos

857 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

Are sourcing the setup script?

source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

Luis

0 Kudos

857 Views
1990rahulreddy
Contributor IV

Yes. I did that & I am able to cross compile simple "C" programs like hello word, factorial..

but, I am getting new error..please Inspect..

Build System Derived Toolchain:

0 Kudos

857 Views
LuisCasado
NXP Employee
NXP Employee

Try to create a make file similar to this (correct any path to match yours)

SDKTARGETSYSROOT=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi

CC=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -ftree-vectorize -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$(SDKTARGETSYSROOT)

TARGET_IP=192.168.0.100

all:

               make release

               make debug

               make remote_install

release:

               $(CC) src/main.c -O3  -o bin/makefile_app

debug:

               $(CC) src/main.c -O0 -g3   -o bin/makefile_app_debug

              

remote_install:

               scp -r bin/* root@$(TARGET_IP):/home/root/

   

clean:

               rm bin/*

And build with make.

Luis

0 Kudos

857 Views
1990rahulreddy
Contributor IV

ok. But, how will i get toolchain option in eclipse, window=>prefrences=>Yocto ADT

0 Kudos

857 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

Installing the ADT plugin. Check the Yocto Project documentation.

https://www.yoctoproject.org/tools-resources/projects/eclipse-ide-plug

Luis

0 Kudos