<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;
        color:windowtext;}
.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">Following the latest great news of adding support for AST2500 into main code, we boost up our work to align with yours.<o:p></o:p></p>
<p class="MsoNormal">Several questions regarding our current status, appreciate the assistance hopefully it will be merged into openbmc code as well soon.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1. We were trying to fetch latest code from origin, hoping AST2500 will be inside already.<o:p></o:p></p>
<p class="MsoNormal">After fetch, we couldn’t find the new AST2500 addition under:<o:p></o:p></p>
<p class="MsoNormal">meta-openbmc-bsp/meta-aspeed/ or meta-openbmc-machines/<o:p></o:p></p>
<p class="MsoNormal">Is it held somewhere else, on a different git branch?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2. We have loaded ast2500-evb with aspped-ast2500-evb.dtb file on aspeed evb, but we faced some problems with DTB.<o:p></o:p></p>
<p class="MsoNormal">We tried kernels 4.6 and 4.7 from:<o:p></o:p></p>
<p class="MsoNormal"><<a href="https://github.com/shenki/linux/tree/dev-4.7">https://github.com/shenki/linux/tree/dev-4.7</a>><o:p></o:p></p>
<p class="MsoNormal"><<a href="https://github.com/openbmc/linux/tree/dev-4.6">https://github.com/openbmc/linux/tree/dev-4.6</a>><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We tried to boot it with uImage and separate DTB image using the command ‘bootm <KERNEL_ADDR> - <DTB_ADDR>’<o:p></o:p></p>
<p class="MsoNormal">but the kernel seems to halt during boot, the only messages we got were:
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">## Booting kernel from Legacy Image at 83000000 ...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Image Name:   Linux-4.7.0-rc1-12701-gca25849-d<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Image Type:   ARM Linux Kernel Image (uncompressed)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Data Size:    2102392 Bytes = 2 MiB<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Load Address: 80800000<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Entry Point:  80800000<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Verifying Checksum ... OK<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">## Flattened Device Tree blob at 82000000<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Booting using the fdt blob at 0x82000000<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Loading Kernel Image ... OK<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">OK<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">   Loading Device Tree to 9eb7b000, end 9eb7f971 ... OK<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Starting kernel ...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Uncompressing Linux... done, booting the kernel.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We added CONFIG_OF_LIBFDT to ast-g5.h and it allow us to get to boot with a separate DTB file (aspeed-ast2500-evb.dtb) as seen above.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We also tried to boot zImage, we failed with the following message (for that we added CONFIG_CMD_BOOTZ to u-boot config):<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in">ast# bootz 0x83000000<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Our initial try, we received this output:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Starting kernel ...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Uncompressing Linux... done, booting the kernel.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">no ATAGS support: can't continue<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then we added CONFFIG_ATAGS to kernel config and failed with the below:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Starting kernel ...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Uncompressing Linux... done, booting the kernel.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Error: unrecognized/unsupported machine ID (r1 = 0x000022b8).<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Available machine support:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ID (hex)        NAME<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ffffffff        Generic DT based system<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ffffffff        ASpeed SoC<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Which u-boot command do you suggest for booting with DTB file?<o:p></o:p></p>
<p class="MsoNormal">How did you guys managed to boot? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">3. We saw in a latest updates that there is a new u-boot <a href="https://github.com/legoater/u-boot/tree/v2016.05-ast2500">
https://github.com/legoater/u-boot/tree/v2016.05-ast2500</a>.<o:p></o:p></p>
<p class="MsoNormal">Is it stable enough for using it?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you guys for the great support,<o:p></o:p></p>
<p class="MsoNormal">Shay<o:p></o:p></p>
</div>
</body>
</html>