LinuxQuestions.org
Register a domain and help support LQ
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 03-11-2011, 01:13 AM   #1
foresst
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
LLVM,QEMU and More


Hi guys,

I have been working on a small project for about a week but did not succeed so I decided to create this thread to maybe get some tips or ideas of how to accomplish the task.

Successes:

1. Install QEMU
2. Emulate a malta board with a 4kc processor on which I have a linux kernel running
3. Set up file sharing between my host Ubuntu and the emulated machine
4. Generate MIPS assembly using LLVM

The thing I would like to do is to write a MIPS assembly program and copy it to the emulated machine and run it. Now writing a MIPS program by itself I can do what I cannot do is make it run on the guest machine. On the host itself I can simulate it using SPIM or anything else of that sort but I would like to assemble it to native code so I can run it on the other machine. This last thing I cannot accomplish and I would like to ask for help!

If anyone has any ideas or tips I will take any help or direction. If there is any additional information I need to provide please let me know and I will do my best.

Thank you in advance!

P.S. It has to be noted that I have started using linux just about two weeks ago and most of the things are quite novel to me.
 
Old 03-12-2011, 04:29 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,969

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Do you have any other sources that tell how to do this or have claimed to do this in qemu?

Qemu is pretty basic. Not even sure how well any of the odd cpu's work. I played with sparc a long time ago and found it only a test of my will to see something do nothing.

http://qemu-forum.ipi.f

You may be better off either with a dedicated board or some commercial app to cross develop in the final product you want to do this for.
 
Old 03-12-2011, 06:11 PM   #3
foresst
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
I looked for quite some time for examples of how to do this but I could not find anything relevant. I am still looking for a solution and will report back whenever I solve this thing. Hopefully in the meantime I can get more info here.

Thx for the link I started reading through that forum but it is not very populated.
 
Old 03-13-2011, 12:02 AM   #4
foresst
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
After some digging around I found a cross compiler at http://www.cs.ucsd.edu/classes/fa05/...ux-xgcc.tar.gz.
It let me 'as' and 'ld' the MIPS code. I transferred that code to the emulated machine and tried to run it but got two different type of errors along the lines

1. cannot execute binary file
2. NFS stale handler

Life is so difficult hehe... will report back later if I found a solution.
 
  


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
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 04:56 AM
What is LLVM? MTK358 Programming 2 03-22-2010 06:55 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 04:36 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 06:39 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-05-2005 12:25 AM


All times are GMT -5. The time now is 03:47 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