Not able execute cross compiled application on linux 5.4.3 obtained from SDK 3.1

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

Not able execute cross compiled application on linux 5.4.3 obtained from SDK 3.1

1,543 次查看
Suraj_Prakash
Contributor II

Hi,

      I am currently working on T1040RDB and using linux-5.4.3 compiled from SDK-3.1. I tried to run the applications which were cross compiled using the fsl-networking/QorIQ-SDK-V1.7 toolchain but giving the following errors.

  -sh: ./phytool: cannot execute binary file: Exec format error

The info of the application is shown as this.

file phytool
phytool: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.1, for GNU/Linux 2.6.16, BuildID[sha1]=c2b6e5134fd08940ec76cd39d3b6edd256e48f16, with debug_info, not stripped

 

Please suggest.Thanks in advance

0 项奖励
4 回复数

1,534 次查看
yipingwang
NXP TechSupport
NXP TechSupport

phytool recipe is provided in Yocto SDK 3.1, in your Yocto SDK 3.1 build environment, please execute command "bitbake phytool", you will get phytool image in folder build_t1040d4rdb/tmp/work/ppce5500-fsl-linux/phytool/2+gitAUTOINC+8882328c08-r0/image/usr/bin, please copy it to your target board to check whether it can work.

0 项奖励

1,531 次查看
Suraj_Prakash
Contributor II

what if i want to write any application and compile and use it on the board?

How to do that

0 项奖励

1,511 次查看
Suraj_Prakash
Contributor II

Please provide a toolchain so that i can compile applications to work on linux 5.4.3 generated from SDK 3.1

0 项奖励

1,481 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In SDK 3.1 build environment, please execute command "bitbake fsl-toolchain", you will get toolchain installation file in "build_t1040d4rdb/tmp/deploy/sdk/fsl-qoriq-glibc-x86_64-fsl-toolchain-ppce5500-toolchain-3.1.1.sh", please execute this file to install toolchain.

0 项奖励