Unable to build IMX-TEST for IMX8MP Module

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

Unable to build IMX-TEST for IMX8MP Module

731 Views
kanakshilledar
Contributor II

I am trying to build IMX-TEST for the Verdin iMX8M Plus SOM based on the iMX8MP SoC.

What PLATFORM name should I use for the Verdin SOM?

I have the 5.15 kernel source along with arm64 toolchain on Ubuntu 22.04

 

aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 12.3.1 20230626

 

While building I am getting the following error.

 

$ make PLATFORM=IMX8MP LINUXPATH=/home/kanak/toradex/workdir/linux-toradex KBUILD_OUTPUT=/home/kanak/toradex/workdir/kbuild_output CROSS_COMPILE=/opt/toolchains/gcc-linaro/bin/aarch64-none-linux-gnu-
	MAKE	test 
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-audio-dsp.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-audio-pdm.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-audio-probe.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-audio.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-battery.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-bootcheck.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-busfreq-freq-check.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-busfreq.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-cpufreq-freq-check.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-cpufreq.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-cpuhotplug.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-cpuidle.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-cpuidle-sleeptime.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-devicetree.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-flash-read.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-gpio-keypad.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-iccdevfreq.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-ldo-bypass.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat_lowbus_run.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat_netpause.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-ocotp-nvmem.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-ocotp.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-pwm.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-rtc.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-suspend.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-tcrypt.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-thermal-read.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-thermal-trip.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-uart-probe.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat-uart.sh
	COPY 	/home/kanak/toradex/imx-test/platform/IMX8MP//BAT/bat_utils.sh
	STRIP	/home/kanak/toradex/imx-test/platform/IMX8MP//ETM/etm
/opt/toolchains/gcc-linaro/bin/aarch64-none-linux-gnu-strip: Unable to recognise the format of the input file `/home/kanak/toradex/imx-test/platform/IMX8MP//ETM/etm'
make[1]: *** [Makefile:114: /home/kanak/toradex/imx-test/platform/IMX8MP//ETM/etm] Error 1
make: *** [Makefile:46: test] Error 2

 

Thanks!

Labels (2)
Tags (2)
0 Kudos
Reply
5 Replies

710 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @kanakshilledar!

Thank you for contacting NXP Support!

 

I compile the imx-test without errors using the Yocto toolchain.

 

Try to use the Yocto toolchain.

 

If you don't have the Yocto toolchain, you can compile using the next command:

 

bitbake imx-image-full -c populate_sdk

 

install SDK:

tmp/deploy/sdk/xxx.sh

 

use SDK:

source /opt/fsl-imx-xwayland/xxx/environment-setup-aarch64-xxxx

 

Best Regards!

Chavira

0 Kudos
Reply

706 Views
kanakshilledar
Contributor II

@Chavira
Thank you for your reply!
I am trying to build it outside of the yocto system.
So any way to get it working?

Best Regards

0 Kudos
Reply

701 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @kanakshilledar!
Thank you for contacting NXP Support!

You only have to compile the toolchain for your target and then you can compile without Yocto using the toolchain generated by Yocto.

After that, you can compile in standalone all of our sources.

0 Kudos
Reply

698 Views
kanakshilledar
Contributor II
Hi @Chavira !
I have built the yocto toolchain with the above steps. Could you please provide the PLATFORM variable for IMX8MP SoC. As I am targeting the Verdin iMX8M Plus SOM (https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus).
Thanks!
0 Kudos
Reply

687 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @kanakshilledar!

You can use the imx8mpevk target for iMX8MP

0 Kudos
Reply