Can't execute bin on SabreLite with ubuntu

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

Can't execute bin on SabreLite with ubuntu

Jump to solution
1,041 Views
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

Labels (2)
0 Kudos
1 Solution
914 Views
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.

View solution in original post

0 Kudos
4 Replies
914 Views
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

915 Views
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 Kudos
914 Views
alexandredel
Contributor I

Yes thank you, it works perfectly now

0 Kudos
914 Views
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