Can't execute bin on SabreLite with ubuntu

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can't execute bin on SabreLite with ubuntu

ソリューションへジャンプ
983件の閲覧回数
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 解決策
856件の閲覧回数
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 返答(返信)
856件の閲覧回数
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

857件の閲覧回数
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 件の賞賛
856件の閲覧回数
alexandredel
Contributor I

Yes thank you, it works perfectly now

0 件の賞賛
856件の閲覧回数
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