<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 16, 2019 at 5:31 AM Andrew MS1 Peng <<a href="mailto:pengms1@lenovo.com">pengms1@lenovo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="ZH-CN">
<div class="gmail-m_-3943518016435637397WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Hi Patrick,<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397MsoListParagraph" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"><span>1.<span style="font:7pt "Times New Roman"">     
</span></span></span><u></u><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">I downloaded the latest version of phosphor-ipmi-flash to build host tool with the SDK environment you provide, but encounter configure error as below, could
 you help to take a look at it?<u></u><u></u></span></p>
<table class="gmail-m_-3943518016435637397MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:21pt;border-collapse:collapse">
<tbody>
<tr>
<td width="333" valign="top" style="width:250.55pt;border:1pt solid windowtext;background:yellow;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<b><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Source code hash id</span></b><span lang="EN-US"><u></u><u></u></span></p>
</td>
<td width="87" valign="top" style="width:124.95pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;background:yellow;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<b><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Compile Status</span></b><span lang="EN-US"><u></u><u></u></span></p>
</td>
<td width="259" valign="top" style="width:16cm;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;background:yellow;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<b><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Error message</span></b><span lang="EN-US"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td width="333" valign="top" style="width:250.55pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">b90cacdd0c1ab8ea7576d4ca9f20aa5828a84e42</span><span lang="EN-US" style="font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</td>
<td width="87" valign="top" style="width:124.95pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">configure successful</span><span lang="EN-US" style="font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</td>
<td width="259" valign="top" style="width:16cm;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
</td>
</tr>
<tr>
<td width="333" valign="top" style="width:250.55pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">fd182168d9d1c852b1047b9eccea56812b614586<br>
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black;background:white">1999eef0e6ad3ab4ad6fcf58cce47f352ca5e137<br>
fa06a5f0056e91bfada390c4007fbd3472d75a56<br>
7c2a00e02f1f0169b3e80ef1715002cefc6fa0d0<br>
c9792e75361c86da7f674976eacd03c761021d2f</span><span lang="EN-US" style="font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</td>
<td width="87" valign="top" style="width:124.95pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">configure failed</span><span lang="EN-US" style="font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</td>
<td width="259" valign="top" style="width:16cm;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742msolistparagraph">
<span lang="EN-US" style="font-family:Calibri,sans-serif">checking whether C++ compiler accepts -lgtest... yes<br>
checking whether C++ compiler accepts -pthread... (cached) yes<br>
checking for main in -lgtest... yes<br>
checking whether C++ compiler accepts -lgmock... yes<br>
checking whether C++ compiler accepts -pthread... (cached) yes<br>
checking for main in -lgmock... yes<br>
checking for valgrind... no<br>
checking whether to build with code coverage support... no<br>
configure: Enabling OE-SDK at /home/pengms1/SDK/openbmc-sdk/2.8.0/sysroots/core2-64-openbmc-linux<br>
<span style="color:red">configure: error: conditional "HAVE_SYSTEMD" was never defined.<br>
Usually this means the macro was only invoked conditionally.</span><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra" style="margin-left:18pt">
<u></u><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"><span>2.<span style="font:7pt "Times New Roman"">     
</span></span></span><u></u><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">The host tool compiled with
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">phosphor-ipmi-flash</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"> hash id
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">b90cacdd0c1ab8ea7576d4ca9f20aa5828a84e42 and BMC flash library
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">compiled with
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">phosphor-ipmi-flash</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"> hash id
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black;background:white">c9792e75361c86da7f674976eacd03c761021d2f, the BMC image can transfer from host side to BMC side via LPC bridge. The image size is correct, but the image content
 seems to be incorrect as below, could you give us some </span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">clues to solve it if this is an issue?
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"><u></u><u></u></span></p>
<table class="gmail-m_-3943518016435637397MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="margin-left:18pt;border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="347" valign="top" style="width:307.65pt;border:1pt solid windowtext;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Image of host side<u></u><u></u></span></p>
</td>
<td width="336" valign="top" style="width:318.95pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Image of BMC side<u></u><u></u></span></p>
</td>
</tr>
<tr>
<td width="347" valign="top" style="width:307.65pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">pengms1@hsbmc:/flash_tool$ hexdump -n 64 ./630.mtd
<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000000 00be ea00 f014 e59f f014 e59f f014 e59f<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000010 f014 e59f f014 e59f f014 e59f f014 e59f<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000020 0060 0000 00c0 0000 0120 0000 0180 0000<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000030 01e0 0000 0240 0000 02a0 0000 beef dead<u></u><u></u></span></p>
</td>
<td width="336" valign="top" style="width:318.95pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">root@hr630:~# hexdump -n 64 /run/initramfs/bmc-image<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000000 abc4 ef4e 11f2 b128 2538 fd9c 9f7a 2e00<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000010 78c4 af6e 01f2 a92a 7438 759c 8e76 2e00<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000020 f397 05f0 84e4 6546 0ac6 b6d0 ef19 cb80<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">0000030 e9d7 82f0 c4e4 75dc 1bc6 a295 7319 49c4<u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="gmail-m_-3943518016435637397gmail-m1545270694092823127gmail-m-8411625341099404742gmail-m1788754371567513735gmail-m6436252274273416049gmail-m-4871403681716629123gmail-m5865277644764564145gmail-m5232517683823064206gmail-m-6091798217660211465gmail-m-7106965077525685122msolistparagra" style="margin-left:24pt">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">DTS setting:</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"><br>
</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">             flash_memory: region@98000000 {<br>
                    no-map;<br>
                    reg = <0x98000000 0x00100000>; /* 1M */<br>
             };<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397MsoListParagraph" style="margin-left:18pt;text-indent:0cm">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">BMC configuration setting:<br>
EXTRA_OECONF += " --enable-reboot-update  --enable-static-layout --enable-aspeed-lpc MAPPED_ADDRESS=0x98000000 --enable-reboot-update"<u></u><u></u></span></p>
<p class="gmail-m_-3943518016435637397MsoListParagraph" style="margin-left:18pt;text-indent:0cm">
<span lang="EN-US" style="font-family:Calibri,sans-serif;color:black">Host tool setting:<br>
./burn_my_bmc --command update --interface ipmilpc --image ./630.mtd --sig ./sig.txt --type static --address 2550136832 --length 65536</span></p></div></div></blockquote><div><br></div><div>The address provided for the host:</div><div>>>> '0x%x' % 2550136832</div>'0x98000000'</div><div class="gmail_quote"><br></div><div class="gmail_quote">Is a region of memory on the host that's set aside for this purpose and is mapped via /dev/mem.  It's not the address the BMC Is using.  You'll need to use a region reserved for this purpose in the host kernel or bios.</div><div class="gmail_quote"><br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="ZH-CN"><div class="gmail-m_-3943518016435637397WordSection1"><p class="gmail-m_-3943518016435637397MsoListParagraph" style="margin-left:18pt;text-indent:0cm"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif">Thanks,<br>
Andrew<u></u><u></u></span></p>
</div>
</div>

</blockquote></div></div>