Hi,
Okay, how did you compile ffmpeg.c to run on your physical machine
then? Is your physical machine x86 or something other than ARM? Ifso,
then you're doing a cross-compile and you need to download the
appropriate cross-compilers for ARM. I believe the gem5 website have
some suggestions for that (http://www.m5sim.org/Compiling_workloads).
Good luck
Quoting Marko Zivkovic <[email protected]>:
Great, thats what I needed. I am doing that at this moment but I
encountered one problem.
I built gem5 with:
scons build/ARM/gem5.opt -j4
After that I need to compile the ffmpeg to later be used with:
./build/ARM/gem5.opt configs/example/se.py -c ffmpeg -o "--file test.avi"
It says that ffmpeg is dynamic executable and I need static. So I
researched and found that this command should fix my problems:
arm-linux-gnueabi-gcc -DUNIX -o ffmpeg ffmpeg.c -static
but arm-linux-gnueabi is not found :(
Thank you for the support
On Mon, Oct 22, 2012 at 2:21 PM, <[email protected]> wrote:
Hi Marko,
I am not sure exactly what you're trying to do but based on your question
I am guessing your trying to run the ffmpeg in the simulator and feed an
input file with .avi extension to it? If thats the case then you just need
to specify the file with the -o option.
For example, when you ran the ffmpeg on your machine, I am assuming this
application takes some input parameters from the command prompt:
./ffmpeg --file test.avi
Something like that? I am not sure exactly how your ffmpeg program works
but assuming thats the case, then on the simulator side, you just need to
do this:
./build/ARM/gem5.opt configs/example/se.py -c ffmpeg -o "--file test.avi"
and that should start the simulation.
Best,
Zheng Wu
Quoting Marko Zivkovic <[email protected]>:
---------- Forwarded message ----------
From: Marko Zivkovic <[email protected]>
Date: Mon, Oct 22, 2012 at 1:29 PM
Subject: Re: [gem5-users] Application Deployment
To: Nilay Vaish <[email protected]>
Hello again,
i was able to install ffmpeg on physical machine and use it to convert
.avi
to mpeg2. Now, I would like to do it inside of the gem5 and collect data
about performance.
From different tutorials, I realize that I have to do something like this:
arm-linux-gnueabi-gcc -DUNIX -o [ app file ] [ app file.c] -static // to
compile the code
./build/ARM/gem5.opt configs/example/se.py -c [application] -o //to
start
simulations
So, how to deploy ffmpeg and give it a task to convert avi to mpeg?
Hope this is more descriptive
On Mon, Oct 22, 2012 at 12:34 PM, Marko Zivkovic <[email protected]
>wrote:
Hello Nilay,
thank you for your respond.
I am sorry maybe my English caused the misunderstanding. I will try to be
more detailed.
First let me answer your comment. The installation of MPEG-2 on physical
machine should be an easy process but you are right that I should first
perform everything on the physical machine. Reason why I want to use
simulator is the need for different system configurations and NoC
algorithms.
So, I will create custom configuration file and simulate MPEG-2 with in.
Then I need to provide a task to MPEG-2 application and collect the
metrics
in different time and computational stages.
Please, if this is confusing, ask me about concrete details. I really
need
answers to the questions from my previous email.
Thank you
On Mon, Oct 22, 2012 at 12:07 PM, Nilay Vaish <[email protected]> wrote:
On Mon, 22 Oct 2012, Marko Zivkovic wrote:
Hello,
I am a newbee in using gem5. Before that I was using HORNET. I am
reading
your previous posts and answers but it takes time. I will do it
eventually.
Now, my ultimate goal is to use gem5 with McPAT power model to simulate
MPEG-2 decoder tasks ( something similar is already done ).
Since I am new in all of these simulations, I will ask few general
concept
questions which bothers me. For many of you, this is going to be easy
to
answer.
1. I was able to install and ran the hello example, using
the syntax provided in gem5 documentation. Now, I have to deploy MPEG-2
to
it? I read that gem5 can simulate many of the software, but can you
explain
me how to deploy program with more source files, which one to reference
in
build command. For example, I tried this one
http://libmpeg2.sourceforge.****net/ <http://libmpeg2.sourceforge.**
net/ <http://libmpeg2.sourceforge.net/>>
2. This bothers me a lot. My Professor want me to create the testing
platform. So, he wants me to deploy MPEG-2 program and then he wants to
ran
a task inside of MPEG-2 and tracks the metrics at certain point of time
and
place( using check points may be the way for this)
So, I do not understand how to deploy a task to already simulated
program?
I guess that this is trivial questions so, really apologize for not so
mature questions.
I think you need to forget about gem5 for the time being and think
about
how will you run your program on a physical machine. Your email does not
make it clear how you are running your program physical machine and why
running it on a simulated machine would be any different.
--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users