<div dir="ltr">Hi Simon,<div><br></div><div>Thank you for your reply, I followed the updated instructions on the wiki with "CXX=g++-4.4 scons build/ARM/gem5.fast", and I got an error on m5.internal.serialize.Serializable. It says:</div><div><div><br></div><div>$ make gem5_armv7<br></div><div>....</div><div> class Event(m5.internal.serialize.Serializable):<br></div><div>AttributeError: 'module' object has no attribute 'internal'</div><div>make: *** [gem5_armv7] Error 1</div></div><div><br></div><div>Looks like the version 0fea324c832c of gem5 has a known error <a href="http://reviews.gem5.org/r/2003/">http://reviews.gem5.org/r/2003/</a> and there is a patch for it. I applied the patch and also I used the default compiler of Ubuntu 14.04 (gcc 4.8.4) by commenting out the lines 513 and 569 of SConstruct to ignore gcc 4.8 warnings, so this is how the gem5 source looks like:</div><div><br></div><div><div>$ hg diff</div><div>diff -r 0fea324c832c SConstruct</div><div>--- a/SConstruct<span class="Apple-tab-span" style="white-space:pre"> </span>Sat Nov 10 17:18:02 2012 -0600</div><div>+++ b/SConstruct<span class="Apple-tab-span" style="white-space:pre"> </span>Thu Feb 04 11:07:40 2016 +0400</div><div>@@ -510,7 +510,7 @@</div><div> if main['GCC']:</div><div> main.Append(CCFLAGS=['-pipe'])</div><div> main.Append(CCFLAGS=['-fno-strict-aliasing'])</div><div>- main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])</div><div>+ # main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])</div><div> # Read the GCC version to check for versions with bugs</div><div> # Note CCVERSION doesn't work here because it is run with the CC</div><div> # before we override it from the command line</div><div>@@ -566,7 +566,7 @@</div><div> </div><div> main.Append(CCFLAGS=['-pipe'])</div><div> main.Append(CCFLAGS=['-fno-strict-aliasing'])</div><div>- main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])</div><div>+ #main.Append(CCFLAGS=['-Wall', '-Wno-sign-compare', '-Wundef'])</div><div> main.Append(CCFLAGS=['-Wno-tautological-compare'])</div><div> main.Append(CCFLAGS=['-Wno-self-assign'])</div><div> # Ruby makes frequent use of extraneous parantheses in the printing</div><div>diff -r 0fea324c832c src/python/m5/__init__.py</div><div>--- a/src/python/m5/__init__.py<span class="Apple-tab-span" style="white-space:pre"> </span>Sat Nov 10 17:18:02 2012 -0600</div><div>+++ b/src/python/m5/__init__.py<span class="Apple-tab-span" style="white-space:pre"> </span>Thu Feb 04 11:07:40 2016 +0400</div><div>@@ -32,7 +32,7 @@</div><div> </div><div> try:</div><div> # Try to import something that's generated by swig</div><div>- import internal</div><div>+ import internal.core</div><div> </div><div> # Try to grab something from it in case demandimport is being used</div><div> internal.core.curTick</div><div>diff -r 0fea324c832c src/python/m5/internal/__init__.py</div><div>--- a/src/python/m5/internal/__init__.py<span class="Apple-tab-span" style="white-space:pre"> </span>Sat Nov 10 17:18:02 2012 -0600</div><div>+++ b/src/python/m5/internal/__init__.py<span class="Apple-tab-span" style="white-space:pre"> </span>Thu Feb 04 11:07:40 2016 +0400</div><div>@@ -26,9 +26,9 @@</div><div> #</div><div> # Authors: Nathan Binkert</div><div> </div><div>-import core</div><div>-import debug</div><div>-import event</div><div>-import stats</div><div>-import trace</div><div>-from drain import DrainManager, Drainable</div><div>+#import core</div><div>+#import debug</div><div>+#import event</div><div>+#import stats</div><div>+#import trace</div><div>+#from drain import DrainManager, Drainable</div></div><div><br></div><div>-------------------------------</div><div>Now I can execute simulation on gem5 and I can connect with telnet although I get a lot of "warn: Trying to access SPSR in an invalid mode: 31". This is the output of telnet:</div><div><br></div><div><div>==== m5 slave terminal: Terminal 0 ====</div><div>Kernel starting at address 0x82d40000</div><div>Barrelfish CPU driver starting on ARMv7 Board id 0x000008e0</div><div>The address of paging_map_kernel_section is 0x82d4617c</div><div>GIC: 3 interrupt lines detected</div><div>gic_init: done</div><div>gic_enable_interrupt for id=0x22, offset=0x4, index=0x1</div><div>gic_enable_interrupt for id=0x23, offset=0x8, index=0x1</div><div>start_free_ram = 0x2d96000</div><div>spawn module: armv7/sbin/init</div><div>init: invoked as: init 2097152</div><div>Spawning memory server (armv7/sbin/mem_serv)...</div><div>Spawning monitor (armv7/sbin/monitor)...</div><div>monitor: invoked as: armv7/sbin/monitor 7725056</div><div>RAM allocator initialised, 396 MB (of 460 MB) available</div><div>Spawning ramfsd on core 0</div><div>ramfsd.0.0: pre-populating from boot image...</div><div>ramfsd.0.0: /armv7/sbin/cpu_arm_gem5 already exists, skipping it</div><div>ramfsd.0.0: ready</div><div>Spawning skb on core 0</div><div>Spawning /armv7/sbin/spawnd on core 0</div><div>Spawning /armv7/sbin/startd on core 0</div><div>Spawning /armv7/sbin/corectrl on core 0</div><div>spawnd.0 up.</div><div>startd.0.0: starting app /armv7/sbin/memtest on core 1</div><div>skb.0.0: waiting for: spawn.1</div><div>SYSFLAGSET_BASE is at 0x1c000000</div><div>.. mapped to 0xfea00000</div><div>.. using address 0x0xfea10030</div><div>Kernel starting at address 0x88701000</div><div>Barrelfish CPU driver starting on ARMv7 Board id 0x000008e0</div><div>The address of paging_map_kernel_section is 0x8870717c</div><div>GIC: 3 interrupt lines detected</div><div>gic_init: done</div><div>spawn module: armv7/sbin/monitor</div><div>monitor: invoked as: armv7/sbin/monitor 0 chanid=0 archid=0</div><div>Spawning spawnd on core 1</div><div>spawnd.1 up.</div><div>spawnd.1.0: spawning /armv7/sbin/memtest on core 1</div><div>No bootscript</div><div>memtest passed successfully! on core 1</div></div><div><br></div><div><div>-------------------------------</div></div><div>Can you confirm the barrelfish is working properly?</div><div>If yes you may want to add the patch and expected result to the wiki for other researchers. </div><div><br></div><div>Thank you for your help!</div><div> Mahdi<br></div><div dir="ltr"><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 2, 2016 at 9:46 PM Simon Gerber <<a href="mailto:simon.gerber@inf.ethz.ch" target="_blank">simon.gerber@inf.ethz.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mahdi,<br>
<br>
<br>
On 02.02.2016 16:46, Mehdi Amiri wrote:<br>
> Hi,<br>
><br>
> I think, the instructions at Barrelfish ARM document and the wiki page regarding running Barrelfish on gem5, is outdated. Can you please inform, which version of gem5 is currently in use in ETH? Meanwhile, what is the primary platform for ARM development?<br>
<br>
I've updated the instructions on the wiki regarding Barrelfish on ARMv7 GEM5. Note: I'm currently struggling on how exactly to compile the ancient commit of gem5 that we need (without having to update our gem5script) to run the image (installing g++-4.4 and running CXX=g++-4.4 scons build/ARM/gem5.fast seems promising). I'll update the wiki page once I've figured out a working combination.<br>
<br>
><br>
> Regarding the pandaboard-es, does the panda build work with the latest development board (Rev B3)?<br>
<br>
All our PandaBoards are PandaBoard-ES Rev B1 and we can't confirm that our build works on another HW revision. A quick google search shows that B3 has a different DRAM chip, which needs some changes to uboot (afaict) but not to OS software itself. As we're booting our boards over USB using <a href="https://github.com/simu/usbboot-omap4" rel="noreferrer" target="_blank">https://github.com/simu/usbboot-omap4</a> this change should not affect us.<br>
<br>
Hope this helps,<br>
-- Simon<br>
<br>
><br>
> Thank you for considering.<br>
><br>
> Mahdi<br>
><br>
><br>
> _______________________________________________<br>
> Barrelfish-users mailing list<br>
> <a href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a><br>
> <a href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users" rel="noreferrer" target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a><br>
><br>
</blockquote></div></div></div>