Hi Samuel, 

You can include a ram disk by taking part of the
physical memory and placing a ram disk there. For example for a ram disk
in linux (provided you had a ram disk driver is the kernel), you could
add something like: 

self.ramdisk = PhysicalMemory(range =
AddrRange(Addr('128MB'), size = '128MB'), file='/path/to/ramdisk.img')


and assuming you only specified 128MB of DRAM the upper 128MB would be
used for ramdisk. 

The easiest thing to do is an ELF file. 

Ali 

On
29.02.2012 10:15, Samuel Hitz wrote: 

> Hi there, 
> I'm trying to port
Barrelfish [1] to ARMv7 modeled by gem5. As I'm new to using gem5, I
have some simple questions to start with. 
> 1. What's the best/easiest
way to include a ramdisk in gem5? Shall I pack it in the same file as
the kernel or can I somehow specify, where the ramdisk should be loaded
into memory in the script? As far as I see it, with gem5 one doesn't
need/have a bootloader where such things could be specified. 
> 2. What
format should the kernel object file have? Does it work with an ELF file
or should I use a raw image? 
> Help is much appreciated. 
> Best, 
>
Samuel

 

Links:
------
[1] http://www.barrelfish.org/
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to