I would like to use gem5's checkpointing functionality; however, I'd
like the checkpoint to be generated from qemu, if possible. The reason
for this, is that qemu is currently distributed with the Android Open
Source Project, and the emulator of choice for most Android
developers. The down side is that qemu lacks many of the profiling
abilities that gem5 is so good at. So, it would be nice for a
developer to use qemu for its speed to prototype/develop, but if/when
necessary create a checkpoint, move to gem5 and profile/experiment.
Thus my project.

On Thu, May 24, 2012 at 2:12 PM, Anthony Gutierrez <[email protected]> wrote:
> Please keep all queries to the gem5 mailing list. Others may be able to help
> with your question and future users may benefit from it as well.
>
> Given your needs, why don't you simply use gem5's check-pointing
> functionality?
>
> -Tony
>
> I work with Android mobile development, and the emulator that Android
> uses/distributes is a custom/modified version of qemu. What I would
> like to do is use qemu to "fast-forward" gem5 simulations, to
> essentially be able to run something in qemu, checkpoint it, import
> the checkpoint into gem5 and begin profiling from that checkpoint. My
> first step is to compare qemu and gem5. I'm using as a start the
> bbench benchmark and I'd like to get timings on qemu vs gem5. The
> version of qemu and android I'm using is ice cream sandwich with linux
> kernel android-goldfish-2.6.29. So without modify qemu - except to
> output the checkpoint - I would like to use the kernel/disk images
> provided by the Android project on gem5, or at least build a 2.6.29
> kernel and ics disk image that will run on gem5. If I haven't made
> myself clear, please let me know and I'll try to explain better. In
> general though, I'm just not sure how to go about getting gem5 to run
> the proper kernel/images. From there I can move on to trying to
> checkpoint from qemu and import into gem5. Thanks for any input you
> might provide,
>
>
> On Thu, May 24, 2012 at 12:44 PM, Anthony Gutierrez <[email protected]>
> wrote:
>>
>> Looks like you have to adjust your qemu settings. Look at the error, r15
>> (PC) is 0xc0008000. That is likely the kernel base address.
>>
>>
>> On Thu, May 24, 2012 at 12:17 PM, Ira Ray Jenkins
>> <[email protected]> wrote:
>>>
>>> There is no output on port 3456, it hangs at:
>>>
>>> ==== m5 slave terminal: Terminal 0 ====
>>> *hangs*
>>>
>>> Also, I attempted to run qemu using the kernel and system image
>>> provided with gem5 and it fails with:
>>>
>>> >>~/android$ emulator -kernel
>>> >> ~/gem5/system/binaries/vmlinux.smp.mouse.arm -system
>>> >> ~/gem5/system/disks/ARMv7a-Gingerbread-Android.SMP.mouse.nolock.img
>>> emulator: WARNING: system partition size adjusted to match image file
>>> (1024 MB > 66 MB)
>>>
>>> qemu: fatal: Trying to execute code outside RAM or ROM at 0xc0008000
>>>
>>> R00=00000000 R01=00000000 R02=00000000 R03=00000000
>>> R04=00000000 R05=00000000 R06=00000000 R07=00000000
>>> R08=00000000 R09=00000000 R10=00000000 R11=00000000
>>> R12=00000000 R13=00000000 R14=00000000 R15=c0008000
>>> PSR=400001d3 -Z-- A svc32
>>> Aborted
>>>
>>> Regarding the config file, I'm not entirely sure how to use that file?
>>>
>>>
>>> On Thu, May 24, 2012 at 11:48 AM, Anthony Gutierrez <[email protected]>
>>> wrote:
>>> > Also, that simulator output isn't really useful for determining what
>>> > the
>>> > problem actually is. Can you see what is being output on port 3456? Can
>>> > you
>>> > get any logcat output?
>>> >
>>> > -Tony
>>> >
>>> > On Thu, May 24, 2012 at 11:32 AM, Ira Ray Jenkins
>>> > <[email protected]>
>>> > wrote:
>>> >>
>>> >> I am doing some experiments with Android using qemu and gem5. I would
>>> >> like to be able to have a single kernel and disk image to use
>>> >> experimenting between qemu and gem5. They don't have to be the same,
>>> >> just identical. I have a goldfish kernel and android disk image that
>>> >> qemu can boot; however, trying to use these for gem5 causes it to
>>> >> hang. I am unfamiliar with kernel or bootloader building, so any help
>>> >> would be greatly appreciated. The following is what gem5 outputs when
>>> >> run with the qemu kernel/image:
>>> >>
>>> >> gem5 Simulator System.  http://gem5.org
>>> >> gem5 is copyrighted software; use the --copyright option for details.
>>> >>
>>> >> gem5 compiled Apr 26 2012 12:26:52
>>> >> gem5 started May 24 2012 11:09:00
>>> >> gem5 executing on Gaia
>>> >> command line: build/ARM/m5.fast configs/example/fs.py -b ArmAndroid
>>> >> --kernel=vmlinux-qemu-armv7 --disk-image=android_system.img
>>> >> Global frequency set at 1000000000000 ticks per second
>>> >> info: kernel located at: ***/gem5/system/binaries/vmlinux-qemu-armv7
>>> >> Listening for system connection on port 5900
>>> >> Listening for system connection on port 3456
>>> >> 0: system.remote_gdb.listener: listening for remote gdb on port 7000
>>> >> info: Using bootloader at address 0x80000000
>>> >> **** REAL SIMULATION ****
>>> >> info: Entering event queue @ 0.  Starting simulation...
>>> >>
>>> >> *hangs here*
>>> >> _______________________________________________
>>> >> gem5-users mailing list
>>> >> [email protected]
>>> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > gem5-users mailing list
>>> > [email protected]
>>> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to