<div dir="ltr">Dear Sir/Madam,<div><br></div><div>I would like to make few queries into the compilation of barrelfish-2013-11-17 on ARM architectures.<br><div><br></div><div>ARMv5</div><div>----------</div><div><br></div><div>
I am writing to see if anyone has successfully built barrelfish-2013-11-17 on ARMv5. I have experienced linker error after doing a &quot;make&quot;</div><div>







<p class=""><font face="courier new, monospace">arm-none-linux-gnueabi-gcc -g -O2 -T./armv5/kernel/linker.lds -o ./armv5/sbin/cpu -Wl,-N -Wl,-Map,./armv5/kernel/kernel.map -fno-builtin -nostdlib -Wl,--fatal-warnings ./armv5/kernel/arch/armv5/boot.o ./armv5/kernel/arch/armv5/exceptions.o ./armv5/kernel/arch/arm/exn.o ./armv5/kernel/arch/arm/exec.o ./armv5/kernel/arch/arm/misc.o ./armv5/kernel/arch/arm/phys_mmap.o ./armv5/kernel/arch/armv5/init.o ./armv5/kernel/arch/armv5/integrator.o ./armv5/kernel/arch/armv5/kludges.o ./armv5/kernel/arch/armv5/kputchar.o ./armv5/kernel/arch/armv5/pl011_uart.o ./armv5/kernel/arch/armv5/cp15.o ./armv5/kernel/arch/armv5/paging.o ./armv5/kernel/arch/armv5/startup_arch.o ./armv5/kernel/arch/armv5/syscall.o ./armv5/kernel/gdb_stub.o ./armv5/kernel/capabilities.o ./armv5/kernel/dispatch.o ./armv5/kernel/schedule_rbed.o ./armv5/kernel/memset.o ./armv5/kernel/memmove.o ./armv5/kernel/paging_generic.o ./armv5/kernel/printf.o ./armv5/kernel/startup.o ./armv5/kernel/stdlib.o ./armv5/kernel/string.o ./armv5/kernel/syscall.o ./armv5/kernel/wakeup.o ./armv5/kernel/useraccess.o ./armv5/lib/libelf.a ./armv5/lib/libcpio.a ./armv5/lib/libgetopt.a ./armv5/lib/libmdb_kernel.a -lgcc </font></p>

<p class=""><font face="courier new, monospace">/opt/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.7.3/libgcc.a(bpabi.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr1&#39;</font></p>

<p class=""><font face="courier new, monospace">collect2: error: ld returned 1 exit status</font></p>
<p class=""><font face="courier new, monospace">make: *** [armv5/sbin/cpu] Error 1</font></p></div><div>1) -&gt; I would like to see if anyone has the above problem compiling the latest code for armv5 and have the respective solution?</div>
<div><br></div><div>I tried the 2013-08-16 build as well, bearing similar problems.</div><div><br></div><div>ARMv7</div><div>----------</div><div><br></div><div>2) -&gt; For 2013-11-17 build, the compilation requires editing the <a href="http://symbolic_link.mk">symbolic_link.mk</a> for successful compilation on the armv7 architecture. Changing &quot;armv7/sbin/fish&quot; to &quot;sbin/fish&quot; and commenting out the &quot;sbin/examples/xmplspawn&quot;. This error is not in the 2013-08-16 build.</div>
<div><br></div><div><div>3) -&gt; Furthermore, I would like to see to the proper method running armv7 build on QEMU. Now, to let the compilation success, firstly, I am making a link for menu.lst.armv7, pointing to menu.lst.pandaboard. Secondly, in the <a href="http://symbolic_link.mk">symbolic_link.mk</a>, I appeneded the following lines,</div>
</div><div>







<p class=""><font face="courier new, monospace">else ifeq ($(ARCH),armv7)<br>        QEMU_CMD=qemu-system-arm -cpu cortex-a9 -M realview-pbx-a9 -kernel armv7/sbin/cpu_omap44xx -append &quot;console=ttyAMA0&quot;<br>        GDB=arm-linux-gnueabi-gdb</font></p>
</div><div>after the arm11mp-condition in the simulate part of Make codes, and make adjustment mentioned in 2) to make the compilation goes.</div><div><br></div><div>But even after QEMU can be successfully triggered after make sim, nothing is running inside the QEMU. No console output, no display output.</div>
<div><br></div><div>4) -&gt; I am wondering whether a cpu_omap44xx.bin is missing as compare to armv5 modules. May anyone give me any hint what is the difference between sbin/cpu and sbin/cpu.bin?</div><div><br></div><div>
ARM11MP</div><div>----------</div><div><br></div><div>5) -&gt; According to the following link, someone in the community mentioned ARM11MP is not supported because it cannot be compiled. (Available: <a href="https://lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/000207.html">https://lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/000207.html</a>) I would like to see if the barrelfish team can speak of this officially, which ARM architecture(s) are currently supported?</div>
<div><br></div><div>Any help would be most appreciated! Thanks in advance!</div><div><br></div><div>Cheers,</div><div>
Dominic Hung<br><br>--------------------------------------------------<br><div>C H Dominic Hung, B.Eng. (CE) HK<br></div><div>M. Phil. Student, Dept. of CS., Faculty of Engg.</div><div><br></div>Email: <a href="mailto:domchdh@hku.hk" target="_blank">domchdh@hku.hk</a>
<br>
</div></div></div>