Unable to build IMX-TEST for IMX8MP Module

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to build IMX-TEST for IMX8MP Module

818 次查看
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!

标签 (2)
标记 (2)
0 项奖励
回复
5 回复数

797 次查看
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 项奖励
回复

793 次查看
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 项奖励
回复

788 次查看
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 项奖励
回复

785 次查看
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 项奖励
回复

774 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @kanakshilledar!

You can use the imx8mpevk target for iMX8MP

0 项奖励
回复