Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken firmware image is not verified before upgrading #10

Open
ash111111-blip opened this issue Apr 6, 2022 · 0 comments
Open

Broken firmware image is not verified before upgrading #10

ash111111-blip opened this issue Apr 6, 2022 · 0 comments

Comments

@ash111111-blip
Copy link

Issue:
Partially downloaded BMC image through TFTP is not verified before applying it on next reset.

Steps:
1.Check "ApplyTime" is "OnReset":
HTTP Get from https://<bmc_ip>/redfish/v1/UpdateService

Response:

"FirmwareInventory": {
    "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory"
},
"HttpPushUri": "/redfish/v1/UpdateService",
"HttpPushUriOptions": {
    "HttpPushUriApplyTime": {
        "ApplyTime": "OnReset"
    }
},
  1. Download Image
    curl -k -H "X-Auth-Token: $token" -X POST https://${bmc}/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate -d '{"ImageURI":"tftp://<tftp_ip>/obmc-phosphor-image-transformers-20210330173445.static.mtd.all.tar"}'

  2. When first time download tar image from tftp server completes around 85%, then submit Redfish POST command to download same image again. Redfish POST shows "Base.1.8.1.ServiceTemporarilyUnavailable" error but it still downloads after this error message show up.
    I used windows tftp server, so I can check download progress bar on window; There are "2" download progress bars popping up.

  3. Do "ipmitool mc reset cold" when the second time download progress gets to 25% to 35%.

  4. The bmc reboot (mc reset cold) crashes.

Please see the video for steps followed :
https://www.youtube.com/watch?v=0UfPNmw0X70&list=PLjZxgm7U9UoxGIMPnH_-FOHxDjtWDTyzM&index=9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant