Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-17-2013, 06:16 AM   #1
Registered: Sep 2005
Posts: 836

Rep: Reputation: 30
running a x86 binary on ARM RPI hardware

I have one binary that works fine on x86 CentOS machine but to cut down costs and power, I just had myself a Raspberry PI which is based on ARM and Fedora Remix 17 installed. However, there is one binary that I really need to run. I am not sure if it was compiled in whatever language but it throws an error on me.

-bash: ./goipcron: cannot execute binary file

[root@raspi goip]# file goipcron
goipcron: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

I also tried installing gcc but it never really worked. Was wondering if there is a translator of some sort without installing any emulator of the whole OS (like qemu).

Any thoughts on this?
Old 01-17-2013, 09:43 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,057

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
The problem is this: A binary coded instruction is assembler. Different instruction sets means that any code is likely to preform one instruction in one system, and a totally different one in the other system. Further, if the x86 instruction takes operands (e.g. mov this, somewhere and the arm one doesn't, (e.g. nop) you will next execute the operands as instructions. That makes for magnificent crashes.
You need the emulator. If you get the source, however, you have a chance because you can compile for arm and have your own smelly rPi exe. You can even compile on the raspberry pi - at least with the debian image.
Old 01-17-2013, 10:16 AM   #3
Registered: Aug 2002
Posts: 13,453

Rep: Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105
As stated a compiled x86 executable will not run on an ARM processor. Other then compiling it on the PI itself you could setup a cross compiler development system on the x86 CentOS machine assuming you have all the source code etc.
Old 01-18-2013, 11:04 PM   #4
Registered: Sep 2005
Posts: 836

Original Poster
Rep: Reputation: 30
Thanks a lot for the response..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Appliance. ARM vs x86 erhardm Linux - Networking 1 04-13-2011 09:55 PM
[SOLVED] bin file on x86 can be run on ARM? lesca Linux - Hardware 3 09-24-2010 09:00 PM
ARM or x86 fro embedded?? raedbenz Linux - Embedded & Single-board computer 3 12-20-2008 08:26 AM
unified bootloader for x86 and arm Grawp Linux - Hardware 3 09-27-2008 09:34 AM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 10:50 PM

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration