其他分享
首页 > 其他分享> > -bash: ./imxdownload: cannot execute binary file: Executable file format error(可执行文件格式错误)

-bash: ./imxdownload: cannot execute binary file: Executable file format error(可执行文件格式错误)

作者:互联网

这可能是因为可执行文件不符合当前主机架构,因此需要在当前主机上再次编译生成可执行文件。

在这里插入图片描述

1. 复制

2. 编译

sudo gcc imxdownload.c -o imxdownload

在这里插入图片描述

3. 尝试

$: sudo chmod 777 imxdownloa 
$: ./imxdownload u-boot.bin sdb
		I.MX6ULL bin download software
		Edit by:zuozhongkai
		Date:2019/6/10
		Version:V1.1
		log:V1.0 initial version,just support 512MB DDR3
		    V1.1 and support 256MB DDR3
		file u-boot.bin size = 419540Bytes
		Board DDR SIZE: 512MB
		Delete Old load.imx
		Create New load.imx
		Download load.imx to /dev/sdb  ......
		记录了825+1 的读入
		记录了825+1 的写出
		422612 bytes (423 kB, 413 KiB) copied, 1.17408 s, 360 kB/s

标签:bin,binary,execute,load,可执行文件,file,imx,imxdownload
来源: https://blog.csdn.net/qq_37459242/article/details/122274873