You nede to be careful about the ranges not overlapping. In this configuration you need to share the 256MB of memory space between memory and ram disk. Each should just be 128MB, but be careful of starting at 0 and +128MB vs a range that is 0,128MB. Why a ram disk and not flash or something else?
Ali On 06.03.2012 11:00, Samuel Hitz wrote: > I tried that, but then I get > > fatal: system.membus has two ports with same range: > system.physmem-port0 > system.ramdisk-port0 > (connected both ports to membus.master) > How can I fix that? > > On Tue, Mar 6, 2012 at 4:45 PM, Ali Saidi <sa...@umich.edu [11]> wrote: > >> You can connect it to the membus. I would suggest you start with hacking on the config scripts that come with gem5 and make your change in configs/common/FSConfig.py instead of starting from nothing, at least to get started. >> >> Thanks, >> >> Ali >> >> On 06.03.2012 06:16, Samuel Hitz wrote: >> >>> Hi Ali, >>> I've problems setting up the system with a ramdisk. How should I connect the ramdisk to the rest of the memory system? And I'm also not sure if I instantiate the PhysicalMemory correctly together with the ramdisk. >>> Here is my system script if you want to take a look at it: >>> Link [7] >>> Best, >>> Samuel >>> >>> On Thu, Mar 1, 2012 at 4:43 PM, Ali Saidi <sa...@umich.edu [8]> wrote: >>> >>>> Hi Samuel, >>>> >>>> We do setup atags, but not the initrd and ramdisk although in theory those could be added. >>>> >>>> See src/arch/arm/linux/atags.hh and src/arch/arm/linux/system.cc >>>> >>>> Ali >>>> >>>> On 01.03.2012 04:33, Samuel Hitz wrote: >>>> >>>>> Just a small follow up question. Does the bootloader set the ATAG_INITRD2 and ATAG_RAMDISK tags accordingly? Does it set the ATAG_* tags at all? >>>>> Best, >>>>> Samuel >>>>> >>>>> On Wed, Feb 29, 2012 at 6:27 PM, Samuel Hitz <samuel.h...@gmail.com [6]> wrote: >>>>> >>>>>> Hi Ali, >>>>>> Thanks for the clarification, this should get me started. >>>>>> Best, >>>>>> Samuel >>>>>> >>>>>> On Wed, Feb 29, 2012 at 6:19 PM, Ali Saidi <sa...@umich.edu [5]> wrote: >>>>>> >>>>>>> Hi Samuel, >>>>>>> >>>>>>> self in this case is the system. >>>>>>> >>>>>>> ./build/ARM/m5.opt --list-sim-objects should provide you a list of all objects and parameters, however now that I run it there is a bug and it's not printing everything. Until we get it fixed looking at the *py files in src is your best bet. >>>>>>> >>>>>>> Ali >>>>>>> >>>>>>> On 29.02.2012 10:49, Samuel Hitz wrote: >>>>>>> >>>>>>>> Hi Ali, >>>>>>>> Thanks for your help. >>>>>>>> Just to make clear, this would be in my config python script right? And to which class 'self' refers to in this example? Also is there some centralized documentation, or do I have to search through the implementation files to get all the possible settings I can make in the config script? >>>>>>>> Best, >>>>>>>> Samuel >>>>>>>> >>>>>>>> On Wed, Feb 29, 2012 at 5:35 PM, Ali Saidi <sa...@umich.edu [4]> wrote: >>>>>>>> >>>>>>>>> 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 >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> gem5-users mailing list >>>>>>>>> gem5-users@gem5.org [2] >>>>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3] >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org [9] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [10] Links: ------ [1] http://www.barrelfish.org/ [2] mailto:gem5-users@gem5.org [3] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [4] mailto:sa...@umich.edu [5] mailto:sa...@umich.edu [6] mailto:samuel.h...@gmail.com [7] http://pastie.org/private/5esxjfph9lny6t0u99niua [8] mailto:sa...@umich.edu [9] mailto:gem5-users@gem5.org [10] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [11] mailto:sa...@umich.edu
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users