<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With the help of Chris Johns and Joel Sherrill, I’ve set up a means to download and test the RTEMS test suite on the BeagleBone Black and Freescale EVB5200B (Icecube). The BBB passed 569 of the 590 tests. There were 12 failures, but these
could be test framework related. I haven’t investigated them yet. I appreciate your help guys.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m having issues with the EVB5200 though. Of the 591 tests only 1 passed. Each test I investigated simply reset the board as soon as U-Boot transferred control. I’m using the latest icecube BSP build fresh from the git master. The
log snippet at the bottom is from RTEMS tester and demonstrates a typical failure. As seen below I’m using the load address 0x1000000 and the entry point 0x40000 per the wiki page:
<a href="https://devel.rtems.org/wiki/TBR/BSP/Gen5200">https://devel.rtems.org/wiki/TBR/BSP/Gen5200</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The only test that passes is the minimum test. I’ve also manually built hello and tested it outside of the test framework with the same result. Any ideas?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is the mkimg script:<o:p></o:p></p>
<p class="MsoNormal">$ cat bin/rtems-icecube-mkimg<o:p></o:p></p>
<p class="MsoNormal">#! /bin/sh<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">OBJCOPY_FOR_TARGET=powerpc-rtems5-objcopy<o:p></o:p></p>
<p class="MsoNormal">OBJCOPY="$OBJCOPY_FOR_TARGET"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">START_ADDR=0x40000<o:p></o:p></p>
<p class="MsoNormal">ENTRY_ADDR=0x40000<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">for EXE_NAME in $*<o:p></o:p></p>
<p class="MsoNormal">do<o:p></o:p></p>
<p class="MsoNormal"> if [ ! -f $EXE_NAME ]; then<o:p></o:p></p>
<p class="MsoNormal"> echo "error: not found: $EXE_NAME"<o:p></o:p></p>
<p class="MsoNormal"> exit 1<o:p></o:p></p>
<p class="MsoNormal"> fi<o:p></o:p></p>
<p class="MsoNormal"> echo "Image: $EXE_NAME"<o:p></o:p></p>
<p class="MsoNormal"> ${OBJCOPY} -R -S -O binary "$EXE_NAME" "$EXE_NAME.bin" || exit 1<o:p></o:p></p>
<p class="MsoNormal"> cat "$EXE_NAME.bin" | gzip -9 >"$EXE_NAME.gz"<o:p></o:p></p>
<p class="MsoNormal"> mkimage \<o:p></o:p></p>
<p class="MsoNormal"> -A ppc -O rtems -T kernel -a $START_ADDR -e $ENTRY_ADDR -n "RTEMS" \<o:p></o:p></p>
<p class="MsoNormal"> -d "$EXE_NAME.gz" "$EXE_NAME.img"<o:p></o:p></p>
<p class="MsoNormal">done<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">exit 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The EVB5200 U-Boot boot command is:<o:p></o:p></p>
<p class="MsoNormal">bootcmd=dhcp; setenv serverip 192.168.1.94; tftp 1000000 icecube.img; bootm; reset<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tester run log snippet:<o:p></o:p></p>
<p class="MsoNormal">=> tftp: ./powerpc-rtems5/c/icecube/testsuites/benchmarks/linpack.exe.img<o:p></o:p></p>
<p class="MsoNormal">] BOOTP broadcast 1<o:p></o:p></p>
<p class="MsoNormal">] DHCP client bound to address 192.168.1.82<o:p></o:p></p>
<p class="MsoNormal">] Using FEC ETHERNET device<o:p></o:p></p>
<p class="MsoNormal">] TFTP from server 192.168.1.94; our IP address is 192.168.1.82<o:p></o:p></p>
<p class="MsoNormal">] Filename 'icecube.img'.<o:p></o:p></p>
<p class="MsoNormal">] Load address: 0x1000000<o:p></o:p></p>
<p class="MsoNormal">] Loading: #############<o:p></o:p></p>
<p class="MsoNormal">] done<o:p></o:p></p>
<p class="MsoNormal">] Bytes transferred = 66040 (101f8 hex)<o:p></o:p></p>
<p class="MsoNormal">] ## Booting image at 01000000 ...<o:p></o:p></p>
<p class="MsoNormal">] Image Name: RTEMS<o:p></o:p></p>
<p class="MsoNormal">] Image Type: PowerPC RTEMS Kernel Image (gzip compressed)<o:p></o:p></p>
<p class="MsoNormal">] Data Size: 65976 Bytes = 64.4 kB<o:p></o:p></p>
<p class="MsoNormal">] Load Address: 00040000<o:p></o:p></p>
<p class="MsoNormal">] Entry Point: 00040000<o:p></o:p></p>
<p class="MsoNormal">] Uncompressing Kernel Image ... OK<o:p></o:p></p>
<p class="MsoNormal">] ## Transferring control to RTEMS (at address 00040000) ...<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal">] U-Boot 1.1.3 (Apr 5 2006 - 21:06:06)<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal">] CPU: MPC5200 v2.2 at 462 MHz<o:p></o:p></p>
<p class="MsoNormal">] Bus 132 MHz, IPB 132 MHz, PCI 33 MHz<o:p></o:p></p>
<p class="MsoNormal">] Board: Freescale MPC5200 (Lite5200B)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any help you can provide,<o:p></o:p></p>
<p class="MsoNormal">Lou<o:p></o:p></p>
<p class="MsoNormal">OARCorp<o:p></o:p></p>
</div>
</body>
</html>