toolchain script error: cannot execute binary file

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

toolchain script error: cannot execute binary file

2,042 次查看
gonzo
Contributor I

Hi,

I am new to yocto and am struggling to figure out how to use it. I am trying to create the regular SDK (not the extended SDK) but I cannot get past this error. When I run this script:

 . ./poky-glibc-x86_64-msc-image-minimal-cortexa53-crypto-sm2s-imx8mp-toolchain-3.3.sh

I get the error:   cannot execute binary file.

The above shell script is indeed executable. I have been able to successfully build an image and run it on the target. Also, prior to running the above command, I was able to successfully run the bitbake command for populate_sdk. So, I think I did the commands in the right order.

Thanks...

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

2,018 次查看
gonzo
Contributor I

thank you for your response.

I am now studying the users guide as suggested.

In section 3.2 of the users guide, it provides the essential Yocto Project host packages. My host is running Ubuntu 20.04 as recommended in section 3. However, the list of essential host packages listed in section 3.2 appears incorrect or out-of-date. Here is the output I get:

Note, selecting 'git' instead of 'git-core'
Note, selecting 'python-is-python2' instead of 'python'
Note, selecting 'pylint' instead of 'pylint3'
E: Unable to locate package pzstd
E: Unable to locate package lz4c

Are pzstd and lz4c really required or is the Users Guide wrong?
0 项奖励
回复

2,030 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @gonzo 

Here is the name from yocto we release[bitbake imx-image-full -c populate_sdk]:

fsl-imx-wayland-glibc-x86_64-imx-image-full-armv8a-imx8mp-lpddr4-evk-toolchain-5.15-kirkstone.sh

Can you check if you set the platform as yocto user guide?

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

0 项奖励
回复