LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2012, 10:59 AM   #1
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Rep: Reputation: Disabled
running c code in ARM QEMU


I created and Compiled a C program to run in QEMU for ARM.
When I run the program using the command
#qemu-arm -L /home/arm-2010.09/arm-none-linux-gnueabi/libc ./test

it gives me the following error:
If 'qemu-arm' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf qemu-arm

In PATH is have added the path to /el/el_test/arm-2010q1/bin but still I get the error.
What is the reason for this?
How to resolve this issue?
 
Old 06-13-2012, 12:16 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,183

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
May be the binary really is missing ?

? Did you try : cnf qemu-arm

( In Debian, Ubuntu the package 'qemu-kvm-extras' will provide /usr/bin/qemu-arm ).
 
Old 06-13-2012, 12:46 PM   #3
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
y I had tried it and it asked me to zip innstall the software.
But I am running linux in vm which has no connection to net.
Is there any other way to install it?

Quote:
Originally Posted by knudfl View Post
May be the binary really is missing ?

? Did you try : cnf qemu-arm

( In Debian, Ubuntu the package 'qemu-kvm-extras' will provide /usr/bin/qemu-arm ).
 
Old 06-13-2012, 01:26 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,183

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The command : 'cat /etc/issue' : Will reply with OS name, version.

And : 'uname -m' : The architecture, i686 or x86_64.

When you have answered for the two commands :
We can show a link to the correct package for your OS.

Example http://packages.ubuntu.com/lucid-upd...emu-kvm-extras
http://packages.ubuntu.com/lucid-upd...xtras/filelist
.
 
Old 06-13-2012, 01:38 PM   #5
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Here are the outputs:
cat /etc/issue
Welcome to openSUSE 11.2 "Emerald" - Kernel \r (\l).

uname -m
i686
FYI I have suse and madriva os.
 
Old 06-13-2012, 05:18 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,183

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Suse 11.2, 32bits. The packages are here ..

http://download.opensuse.org/distrib...repo/oss/suse/
> http://download.opensuse.org/distrib...oss/suse/i586/
> qemu-0.11.0-5.5.i586.rpm >
http://download.opensuse.org/distrib...0-5.5.i586.rpm

The command '/usr/bin/qemu-arm' is included in the main qemu package.
( There are 39 different ' /usr/bin/qemu-* ' commands included.)

The install commands are : 1) su
2) rpm -Uvh qemu-0.11.0-5.5.i586.rpm

.
 
Old 06-14-2012, 09:01 AM   #7
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thanks knudfl.
 
Old 06-14-2012, 10:52 AM   #8
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thanks knudfl the solution worked.

I have a query.
My system is i686 then why did you suggest me from i586 to download qemu-0.11.0-5.5.i586.rpm located at /distribution/11.2/repo/oss/suse/i586?

Why similar qemu file is not located in suse/i686?
/distribution/11.2/repo/oss/suse/i686 has only two files:
glibc-2.10.1-10.4.i686.rpm
glibc-devel-2.10.1-10.4.i686.rpm

Why so?
 
Old 06-14-2012, 11:33 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,183

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 8

The default glibc is optimized for i686 : glibc-2.10.1-10.4.i686 .

The package glibc-2.10.1-10.4.i586 is used when you have a Pentium 1
processor ( Or an old AMD processor), I guess.

All other packages are not optimized to i686.
Makes very little or no difference in performance.

If you want a program optimized to e.g. Pentium 4, (mtune=p4)
you may have to build it.
But please have a look for yoursef into quemu.spec etc.:
http://download.opensuse.org/source/.../oss/suse/src/
> http://download.opensuse.org/source/....0-5.5.src.rpm
> qemu-0.11.0-5.5.src.rpm 'source code package'.

.
 
Old 06-14-2012, 12:35 PM   #10
rupeshkp728
Member
 
Registered: May 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thanks for the detailed clarification.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running X Windows on QEMU & ARM bobbinz Linux - Virtualization and Cloud 4 10-10-2011 04:00 PM
How do I quit the QEMU emulator running an ARM system? Codeless Linux - Newbie 1 11-09-2010 02:55 PM
Can't build qemu for the Overo Arm drcummings Linux - Software 0 05-17-2010 04:51 PM
Error while signing a compiled code for Exadigm PoS running Arm-Linux sunnyben Linux - Newbie 0 05-02-2010 01:29 PM
LXer: Running Linux for ARM processors under QEMU LXer Syndicated Linux News 0 06-29-2006 02:54 AM


All times are GMT -5. The time now is 02:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration