On Fri, Sep 16, 2011 at 12:51 AM, Ali Saidi <sa...@umich.edu> wrote:
>
> On Sep 15, 2011, at 6:54 PM, Anirudh Sivaraman wrote:
>
>> On Thu, Sep 15, 2011 at 3:06 PM, Ali Saidi <sa...@umich.edu> wrote:
>>> You'll  need to create a disk image as outlined in:
>>>
>>> http://gem5.org/Disk_images
>>>
>>> and put the android filesystem on it. You should make sure that android is
>>> in the name of the disk image so gem5 appends the correct kernel command
>>> line.
>>
>> So I tried what you said.
>>
>> For the disk: I compiled Android from source, dropped all the relevant
>> files from different Android file systems into one big ext2 file
>> system mounted at '/'.
>> As for the kernel:  I followed the instructions here to compile the
>> kernel : http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform as
>> you told me.
>>
>> I notice I need to rename the disk image to ael-arm.ext2 and the
>> kernel to vmlinux.arm for fs.py  to load the kernel and disk image
>> correctly.
>> After doing so, and changing the M5_PATH to point to the appropriate
>> files, I am still unable to boot it in Full System.
>>
>> Here is what happens:
>>
>> 1.  I first run ARM_FS using the kernel I built from
>> http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform (
>> specifically I use the uImage file that the build generates) . The
>> file system is generated by compiling Android from source and
>> aggregating files. It says vmlinux.arm could not be loaded. I am not
>> sure, but probably the kernel image is not expected to be a uImage (
>> which is created from the Linux kernel build) but rather something
>> else ? Alternatively, is a separate bootloader file required ?
>
> No, the kernel is expected to be a vmlinux file (with symbols, not a uImage).
>
>>
>> 2. So I tried copying the ARM_FS full system files from
>> http://www.m5sim.org/dist/current/arm/arm-system-2011-08.tar.bz2 and
>> tried running that ( after renaming the kernel file in 'binaries' to
>> vmlinux.arm and the disk image in 'disks' to ael-arm.ext2). It now
>> fails with :
>>
>> fatal: system.membus has two ports with same range:
>>       system.bridge-portB
>>       system.diskmem-port0
>> @ cycle 0
>> [recvStatusChange:build/ARM_FS/mem/bus.cc, line 551]
>> Memory Usage: 7391584 KBytes
>
> Are you using the latest gem5 development repository?


Hi

Sorry for the delay in responding. I switched to gem5 development
instead of gem5 stable and this BUS problem went away. However, I have
new issues. I list them here :

1. When I boot ARM FS with the kernel,bootloader and file images
available here : http://www.m5sim.org/Download, it does boot ( I used
the smaller 512 MB disk image).
 However m5term asks me for a login ( saying AEL login) and a password
after booting into the system.

2. When I boot ARM_FS with the kernel image and file system I created
from the instructions here :
http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform I get the
error : unrecognized/unsupported machine ID (r1 = 0x0000065a) and it
does not boot at all.  used the bootloader from the gem5 site.
Maybe I am not using the correct format of the kernel file. You
mention that I need a vmlinux image and not a bootable image. How does
one create that; the instructions on the ARM Android page create a
uBoot target ? Also, how do I create a specific Android bootloader or
will the same boot.arm that is available on the m5 downloads page for
ARM work for this as well ?

3. When I boot ARM_FS with the kernel provided in the GEM5 download
page but my own custom Android file system it fails with the following
error message:
2244951734500: system.cpu.break_event: break event panic triggered
Probably the kernel needs to be compiled to support Android ? This
maybe out of the scope of GEM5.

4. I get the following warnings upon boot :

 warn: The clidr register always reports 0 caches.
warn: clidr LoUIS field of 0b001 to match current ARM implementations.
warn: The csselr register isn't implemented.
warn: The ccsidr register isn't implemented and always reads as 0.
warn:   instruction 'mcr bpiallis' unimplemented
warn:   instruction 'mcr icialluis' unimplemented
227304500: system.terminal: attach terminal 0
warn:   instruction 'mcr dccimvac' unimplemented
warn:   instruction 'mcr dccmvau' unimplemented
warn:   instruction 'mcr icimvau' unimplemented
warn: LCD dual screen mode not supported

Are they harmless ?

5. How do I configure ARM_FS to accept different names for my kernel,
boot and file system images ? It looks like these are hardcoded at
places.

It would be great if I could get some help on these things, since I
feel I am much closer to actually getting it up and running now.

Anirudh


>
>>
>> 3. I also tried the Android file system I created with the kernel
>> taken from the gem5 site. That fails as well.
>>
>> Any help on this would be great.
>>
>> Anirudh
>>
>>>
>>> Ali
>>>
>>>
>>>
>>> You should be able to pass the kernel and disk image to gem5 and it should
>>> owkr.
>>> On Thu, 15 Sep 2011 10:29:11 -0400, Anirudh Sivaraman <sk.anir...@gmail.com>
>>> wrote:
>>>>
>>>> Hi
>>>>
>>>> I followed the steps given at :
>>>> http://www.linux-arm.org/LinuxKernel/LinuxAndroidPlatform to build the
>>>> Android platform and the kernel images for ARM. I have all the
>>>> relevant files for the Android platform on my system now. However, I
>>>> am not sure how to put all of these into one disk image for GEM5
>>>> simulation. Would I need to separately add a bootloader file as well
>>>> to the disk image ? The instructions here :
>>>> http://gem5.org/Ubuntu_Disk_Image_for_ARM_Full_System seem specific to
>>>> running Ubuntu on ARM, and I am not sure if these extend to Android
>>>> directly.
>>>>
>>>> Anirudh
>>>> _______________________________________________
>>>> gem5-users mailing list
>>>> gem5-users@gem5.org
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to