[Barrelfish-users] ARM Build
Simon Gerber
simon.gerber at inf.ethz.ch
Tue Jan 20 22:55:27 CET 2015
Hi,
Also note that we are currently testing our arm_gem5 build using a gem5
version from November 2012 (revision 0fea324c832c from
repo.gem5.org/gem5 to be exact). See tools/arm_gem5/README in the
Barrelfish source tree for details on how we compile and use gem5 for armv7.
Best Regards,
-- Simon
On 20.01.2015 16:56, Timothy Roscoe wrote:
>
> Dear Nagendra,
>
> This doesn't look like a Barrelfish error - it seems like you have an
> problem with your installation of GEM5. I suggest you check that you
> are using a stable version, and also that you have the right version
> of Python to run it.
>
> -- Timothy Roscoe
>
> At Tue, 20 Jan 2015 14:41:12 +0000, Nagendra <k2nag at yahoo.com> wrote:
>> Thanks. I was able to build arm_gem5 successfully. I could also build gem5 without any issues.
>>
>> But I am getting errors while running 'make arm_gem5'
>>
>> gem5.fast ..//tools/arm_gem5/gem5script.py --caches --l2cache --n=2 --kernel=arm_gem5_image
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "/home/nag/gem5/src/python/importer.py", line 73, in load_module
>> exec code in mod.__dict__
>> File "/home/nag/gem5/src/python/m5/__init__.py", line 35, in <module>
>> import internal
>> File "/home/nag/gem5/src/python/importer.py", line 73, in load_module
>> exec code in mod.__dict__
>> File "/home/nag/gem5/src/python/m5/internal/__init__.py", line 31, in <module>
>> import event
>> File "/home/nag/gem5/src/python/importer.py", line 73, in load_module
>> exec code in mod.__dict__
>> File "/home/nag/gem5/build/ARM/python/swig/event.py", line 109, in <module>
>> class Event(m5.internal.serialize.Serializable):
>> AttributeError: 'module' object has no attribute 'internal'
>> make: *** [arm_gem5] Error 1
>>
>>
>> Any particular Python and Swig version that I have to use?
>>
>> I am using SWIG 2.0.11 and Python 2.7.6
>>
>> Regards
>> Nagendra
>>
>>
>>
>> ----- Original Message -----
>> From: Simon Gerber <simon.gerber at inf.ethz.ch>
>> To: k2nag at yahoo.com; Timothy Roscoe <troscoe at inf.ethz.ch>
>> Cc: "barrelfish-users at lists.inf.ethz.ch" <barrelfish-users at lists.inf.ethz.ch>
>> Sent: Monday, 19 January 2015 3:08 PM
>> Subject: Re: [Barrelfish-users] ARM Build
>>
>> Hi Nagendra,
>>
>> On 19.01.2015 06:42, Nagendra wrote:
>>> Thanks for pointer.
>>>
>>> I installed Ubuntu 14.04 and I am trying to build arm_gem5_image
>>> (../hake/hake.sh -s .. -a armv7 followed by make arm_gem5_image).
>>>
>>> With this I am getting following error.
>>>
>>> /home/nag/barrelfish/build/../kernel/arch/arm/syscall.c:1024: undefined
>>> reference to `gt_read_high'
>>> /home/nag/barrelfish/build/../kernel/arch/arm/syscall.c:1020: undefined
>>> reference to `gt_read_low'
>>>
>>> I see these are only used in case of pandaboard. Not sure why
>>> "__pandaboard__" is getting defined for gem5 build.
>>
>> The pandaboard is the default armv7 platform for Barrelfish. You need to
>> change the variable armv7_platform in hake/Config.hs in the build
>> directory to "gem5" when building for the gem5 simulator.
>>
>> Best,
>> -- Simon
>>
>>>
>>> Am I missing something?
>>>
>>> Regards
>>> Nagendra
>>>
>>> ----- Original Message -----
>>> From: Timothy Roscoe <troscoe at inf.ethz.ch <javascript:return>>
>>> To: Nagendra <k2nag at yahoo.com <javascript:return>>
>>> Cc: barrelfish-users at lists.inf.ethz.ch <javascript:return>
>>> Sent: Wednesday, 14 January 2015 1:47 PM
>>> Subject: Re: [Barrelfish-users] ARM Build
>>>
>>> Dear Nagendra,
>>>
>>> It would be helpful if you could let us know what make command you are
>>> using to build Barrelfish, and also what image you are trying to
>>> build. For example, have you tried 'make pandaboard_image', or 'make
>>> arm_gem5_image'?
>>>
>>> The place to look is in symbolictargets.mk, which will give you a list
>>> of the kind of platforms we supply complete make targets for.
>>>
>>> Also, be aware that we support Ubuntu 14.04 (i.e. LTS), but not
>>> 14.10. Non-long-term-support versions of Ubuntu might work, but we
>>> make no guarantees.
>>>
>>> Hope this helps.
>>>
>>> -- Mothy
>>>
>>> At Wed, 14 Jan 2015 03:54:29 +0000, Nagendra <k2nag at yahoo.com
>>> <javascript:return>> wrote:
>>> > Hi Kornilios,
>>> >
>>> > Thanks for responding.
>>> >
>>> > Initially I tried ../hake/hake.sh -s .. -a arm, as mentioned in
>>> getting started guide. But this failed with following error.
>>> >
>>> > Error in configuration: unknown architecture(s) specified: arm
>>> >
>>> >
>>> > Then i tried building for armv7
>>> >
>>> > ../hake/hake.sh -s .. -a armv7
>>> >
>>> > This went fine without any issues.
>>> >
>>> > but make failed with following error,
>>> >
>>> > make: *** No rule to make target '../hake/menu.lst.armv7', needed
>>> by 'menu.lst'. Stop.
>>> >
>>> > Regards
>>> >
>>> > Nagendra
>>> >
>>> > PS : I am using Ubuntu 14.10
>>> >
>>> >
>>> > On Tuesday, 13 January 2015 6:15 PM, Kornilios Kourtis
>>> <kornilios.kourtis at inf.ethz.ch <javascript:return>> wrote:
>>> > Hi Nagendra,
>>> >
>>> >
>>> > On Tue, Jan 13, 2015 at 11:23:53AM +0800, Nagendra wrote:
>>> > > I am trying to build barrelfish for armv7. The build is failing as
>>> > > menu.lst.armv7 is missing.
>>> > >
>>> > > Anyone tried building barrelfish on ARM recently? Can you please post
>>> > > the steps to build barrelfish for ARM and run it on qemu.
>>> >
>>> > Can you please provide us with the commands you try to execute for
>>> > building Barrelfish and any relevant error messages?
>>> >
>>> > cheers,
>>> > Kornilios.
>>> >
>>> > --
>>> > Kornilios Kourtis
>>> >
>>> > _______________________________________________
>>> > Barrelfish-users mailing list
>>> > Barrelfish-users at lists.inf.ethz.ch <javascript:return>
>>> > https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
>>
>>>
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>> _______________________________________________
>>> Barrelfish-users mailing list
>>> Barrelfish-users at lists.inf.ethz.ch
>>> https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
>>>
>>
>>
>>
More information about the Barrelfish-users
mailing list