Can't execute bin on SabreLite with ubuntu

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

Can't execute bin on SabreLite with ubuntu

跳至解决方案
2,364 次查看
alexandredel
Contributor I

Hello everybody!

I am working on a SabreLite with ubuntu 14.04 and i have a problem with it.

On my computer, when i compile c code with arm-linux-gnueabi-gcc, and i send it to the board, i have an "Input Output error" even if the code is only a main with return 0;

Do you know what i did wrong?

Sorry if my english is bad, it's not my mother tongue.

Regards

Alexandre

标签 (2)
0 项奖励
回复
1 解答
2,237 次查看
EricNelson
Senior Contributor II

Hi Alexandre,

If you're using this image of ours: 

     http://boundarydevices.com/trusty-ubuntu-mx6/

then you'll need to use a hard-float compiler like the gcc-arm-linux-gnueabihf package on

your host machine (i.e. arm-linux-gnueabihf-gcc).

In general, Ubuntu is set up for native compilation though, since the cross-compiler won't

contain all of the development libraries that you might need.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,237 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

How are you using the arm-linux-gnueabi-gcc compiler?

It should be something like arm-linux-gnueabi-gcc compiler main.c

Best Regards,

Alejandro

2,238 次查看
EricNelson
Senior Contributor II

Hi Alexandre,

If you're using this image of ours: 

     http://boundarydevices.com/trusty-ubuntu-mx6/

then you'll need to use a hard-float compiler like the gcc-arm-linux-gnueabihf package on

your host machine (i.e. arm-linux-gnueabihf-gcc).

In general, Ubuntu is set up for native compilation though, since the cross-compiler won't

contain all of the development libraries that you might need.

0 项奖励
回复
2,237 次查看
alexandredel
Contributor I

Yes thank you, it works perfectly now

0 项奖励
回复
2,237 次查看
lategoodbye
Senior Contributor I

Hi Alexandre,

have you tried to run the "file" command to make sure it's really a ARM binary?

Have you checked the MD5 sum of the binary before and after transfer to exclude any file corruption?

BR Stefan