You can look at src/dev/arm/Realview.py 

There is currently an
ethernet adapter in the VEXpress_ELT platform. To get this to work you
can do approximately the same thing with the VExpress_EMM platform along
with some hacking on the kernel to get it to realize the devices are
there. We plan to get this done at some point, but I don't have an eta.


Ali 

On 29.05.2012 11:25, Anirudh Sivaraman wrote: 

> On Tue, May
29, 2012 at 11:05 AM, Ali Saidi <sa...@umich.edu> wrote:
> 
>> Hi
Anirudh, If you just specify --dual on the command line you'll get two
systems and you don't need to actually bother with modifying the
regression test you mention below, however you need to think about how
they'll connect together. We have PCIe based ethernet network interface
models, however that seems like it might not be the right thing for
android. If you want to go down the PCIe route, then you'll need to do
some work to enable PCIe in VExpress_EMM. Depending on what you want to
do, you might want to create a wifi like adapter.
> 
> Thanks for these
responses. Right now, to simulate a wifi adapter, I
> connect the PCIe
based ethernet interface (NSGigE) to EtherTap. This
> in turn connects
to ns-3 (which does the wifi simulation). The problem
> is that the
NSGigE adapter is part of the class BaseTsunami as seen in
> :
> 
>
class BaseTsunami(Tsunami):
> ethernet = NSGigE(pci_bus=0, pci_dev=1,
pci_func=0)
> ide = IdeController(disks=[Parent.disk0, Parent.disk2],
>
pci_func=0, pci_dev=0, pci_bus=0)
> 
> Subsequently, there is a line :
>
self.tsunami=BaseTsunami() which is what gives access to this ethernet
>
adapter (indirectly using self.tsunami).
> 
> self.tsunami seems
specific to Alpha systems alone. I am wondering if
> I can instantiate
an NSGigE style ethernet adapter inside an Arm
> system somehow. I took
a look at makeArmSystem but there aren't any
> network adapter
attributes there.
> 
>> Thanks, Ali On 29.05.2012 10:36, Anirudh
Sivaraman wrote: On Tue, May 29, 2012 at 7:46 AM, Nilay Vaish
<ni...@cs.wisc.edu [1]> wrote: On Mon, 28 May 2012, Anirudh Sivaraman
wrote: Hi I am trying to simulate a configuration of networked Android
devices implying I need to use the ARM architecture for it. I have been
working off twosys-tsunami-simple-atomic.py because that's the only
networked benchmark available within GEM5 at present. Can anyone help me
out with modifying twosys-tsunami-simple-atomic.py to simulate two ARM
devices instead of two ALPHA devices (like it does now). Thanks in
advance for any advice you may have in this regard. Anirudh, you'll have
to take the plunge on your own. Go ahead and modify the python script.
At first, it might appear hard to do. But once you start modifying it,
the script would not create much problems for you. I think Python has
very good debugging support. So figuring out errors is also not an
issue. In case you do face difficulties, you can always ask questions on
gem5-users mailing list. Thank you for your prompt response. I started
hacking the Python script and to that end, created a function
makeLinuxArmSystem in FSConfig.py. This is based off
makeLinuxAlphaSystem. I know it's exceedingly naive, but to create
makeLinuxArmSystem, I copied the body of makeLinuxAlphaSystem and
replaced the call to LinuxAlphaSystem with a call to LinuxArmSystem.
When I run the modified twosys-tsunami-simple-atomic.py, I get the foll.
error : File
"/afs/csail.mit.edu/u/a/anirudh/INFOCOMSubmission/gem5/configs/common/FSConfig.py",
line 338, in makeLinuxArmSystem self.tsunami = BaseTsunami() File
"/afs/csail.mit.edu/u/a/anirudh/INFOCOMSubmission/gem5/src/python/m5/SimObject.py",
line 753, in __setattr__ % (self.__class__.__name__, attr)
AttributeError: Class LinuxArmSystem has no parameter tsunami So by the
looks of it, I need to add an attribute called tsunami to the class
LinuxArmSystem. I am not sure how to do this. I took at look at the
source defining LinuxAlphaSystem (src/arch/alpha/AlphaSystem.py) but to
no avail. Anirudh -- Nilay
_______________________________________________ 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 [4]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [5]
_______________________________________________ gem5-users mailing list
gem5-users@gem5.org [6]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7]




Links:
------
[1] mailto:ni...@cs.wisc.edu
[2]
mailto:gem5-users@gem5.org
[3]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[4]
mailto:gem5-users@gem5.org
[5]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[6]
mailto:gem5-users@gem5.org
[7]
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