LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-17-2013, 06:16 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

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
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,278

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,541

Rep: Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225
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
depam
Member
 
Registered: Sep 2005
Posts: 861

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 AM.

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