<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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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;}
/* List Definitions */
@list l0
        {mso-list-id:1304501057;
        mso-list-type:hybrid;
        mso-list-template-ids:-1090212700 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:1607812492;
        mso-list-type:hybrid;
        mso-list-template-ids:-1090212700 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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 All,<br>
<br>
I am working on BIOS upgrade in my environment, and I tried the following steps to update the BIOS.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>I copied my image(bios.tar.gz) to /tmp/images in BMC using SCP method.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>After that, updated the BIOS image using the below dbus command.<o:p></o:p></p>
<p class="MsoListParagraph">busctl set-property xyz.openbmc_project.Software.BMC.Updater /xyz/openbmc_project/software/28bd62d9 xyz.openbmc_project.Software.Activation RequestedActivation s xyz.openbmc_project.Software.Activation.RequestedActivations.Active<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l1 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span><![endif]>I find the below journalctl logs after updating the image.<o:p></o:p></p>
<p class="MsoNormal">              Journalctl Logs:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">root@tiogapass:~# journalctl | grep image<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:00:37 tiogapass phosphor-image-updater[229]: Error in mapper GetSubTreePath<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:27:44 tiogapass systemd[1]: Starting Flash Host Bios image 28bd62d9 to Host...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:28:09 tiogapass bios-update.sh[1522]: Bios image is /tmp/images/28bd62d9/bios.bin<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:28:09 tiogapass bios-update.sh[1522]: Flashing bios image to mtd6...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:28:41 tiogapass systemd[1]: Finished Flash Host Bios image 28bd62d9 to Host.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Jan 01 00:28:41 tiogapass phosphor-image-updater[229]: Bios upgrade completed successfully<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In REDFISH, I tried the following command to update the bios image and it shows error.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">#curl -k -H "X-Auth-Token: $token"  -X POST -T /home/bios/bios_18aug.tar.gz https://${bmc}/redfish/v1/UpdateService<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">{<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  "error": {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    "@Message.ExtendedInfo": [<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">      {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "@odata.type": "#Message.v1_0_0.Message",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "Message": "The request failed due to an internal service error.  The service is still operational.",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "MessageArgs": [],<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "MessageId": "Base.1.4.0.InternalError",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "Resolution": "Resubmit the request.  If the problem persists, consider resetting the service.",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">        "Severity": "Critical"<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">      }<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    ],<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    "code": "Base.1.4.0.InternalError",<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    "message": "The request failed due to an internal service error.  The service is still operational."<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  }<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please let me know, if there is any command for BIOS upgrade using redfish?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks & Regards,<o:p></o:p></p>
<p class="MsoNormal">Jayashree<o:p></o:p></p>
</div>
<font face="Arial" color="Gray" size="1">::DISCLAIMER::<br>
<hr>
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or
 incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely
 those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent
 of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.<br>
<hr>
</font>
</body>
</html>