Redfish Command for BIOS upgrade

Jayashree D jayashree-d at hcl.com
Wed Aug 19 20:17:31 AEST 2020


Hi All,

I am working on BIOS upgrade in my environment, and I tried the following steps to update the BIOS.


1.       I copied my image(bios.tar.gz) to /tmp/images in BMC using SCP method.

2.       After that, updated the BIOS image using the below dbus command.

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

3.       I find the below journalctl logs after updating the image.
              Journalctl Logs:
root at tiogapass:~# journalctl | grep image
Jan 01 00:00:37 tiogapass phosphor-image-updater[229]: Error in mapper GetSubTreePath
Jan 01 00:27:44 tiogapass systemd[1]: Starting Flash Host Bios image 28bd62d9 to Host...
Jan 01 00:28:09 tiogapass bios-update.sh[1522]: Bios image is /tmp/images/28bd62d9/bios.bin
Jan 01 00:28:09 tiogapass bios-update.sh[1522]: Flashing bios image to mtd6...
Jan 01 00:28:41 tiogapass systemd[1]: Finished Flash Host Bios image 28bd62d9 to Host.
Jan 01 00:28:41 tiogapass phosphor-image-updater[229]: Bios upgrade completed successfully

In REDFISH, I tried the following command to update the bios image and it shows error.

#curl -k -H "X-Auth-Token: $token"  -X POST -T /home/bios/bios_18aug.tar.gz https://${bmc}/redfish/v1/UpdateService
{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "Message": "The request failed due to an internal service error.  The service is still operational.",
        "MessageArgs": [],
        "MessageId": "Base.1.4.0.InternalError",
        "Resolution": "Resubmit the request.  If the problem persists, consider resetting the service.",
        "Severity": "Critical"
      }
    ],
    "code": "Base.1.4.0.InternalError",
    "message": "The request failed due to an internal service error.  The service is still operational."
  }
}

Could you please let me know, if there is any command for BIOS upgrade using redfish?

Thanks & Regards,
Jayashree
::DISCLAIMER::
________________________________
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.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200819/11d5927e/attachment-0001.htm>


More information about the openbmc mailing list