toolchain script error: cannot execute binary file

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

toolchain script error: cannot execute binary file

1,867 Views
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...

Labels (1)
0 Kudos
Reply
2 Replies

1,843 Views
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 Kudos
Reply

1,855 Views
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 Kudos
Reply