Unable to create exact toolchain for iMx6q cross-compiling

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create exact toolchain for iMx6q cross-compiling

161 Views
Contributor III

The build configuration that I am having is:

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "i686-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6qsabresd"
DISTRO = "poky"
DISTRO_VERSION = "2.0.2"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU = "vfp-neon"

I have followed the toolchain extraction procedure from the thread: https://community.nxp.com/docs/DOC-343273

I have even extracted its path, before I want to run the cross compiling make commands.

export PATH=$PATH:/opt/poky/2.0.2/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

The toolchain makes the C folder directory successfully, but the executables run on the iMx6 OS and abruptly stops.

On booting and searching for SPI drivers, the following boot messages are found:

dmesg | grep spi
[ 0.982809] of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02000000/spba-bus@02000000/ecspi@02018000' missing or empty
[ 0.994407] spi_imx 2018000.ecspi: cannot get the TX DMA channel!
[ 0.999210] spi_imx 2018000.ecspi: dma setup error,use pio instead
[ 1.004858] spi_imx 2018000.ecspi: probed

api_spi_error.png

What minimal changes I have to do to get a successful toolchain setup?

______________________________________________________________________________________________

P.S.

On running the command, $ arm-poky-linux-gnueabi-gcc h.c -o h

The following error crops up:
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crt1.o: No such file or directory
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crti.o: No such file or directory
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtbegin.o: No such file or directory
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lc
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtend.o: No such file or directory
/opt/poky/2.0.2/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status

I think this issue is because of the path not being set properly in the binary- read-ld. How do I set the correct paths in read-ld to remove this error?

Labels (2)
1 Reply

2 Views
NXP TechSupport
NXP TechSupport

Hello Abhijeet Gokar,

In the past some customers have reported similar issues like on the following thread, please give it a look.

https://community.nxp.com/thread/394804

I hope this helps!

Regards,