diff options
author | Thang Tran <thuutran@amperecomputing.com> | 2022-11-17 06:35:04 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2022-12-15 07:34:28 +0300 |
commit | 8e086fe82988eb0b7f5f7e9509ac2f06aa727a36 (patch) | |
tree | 099db99a9dcfba986ac9c93af11a56ba5c822bde /meta-ampere/COPYING.MIT | |
parent | f3e35a2f853e76e429c7a43e4bcde0287f4613a4 (diff) | |
download | openbmc-8e086fe82988eb0b7f5f7e9509ac2f06aa727a36.tar.xz |
meta-ampere: mtjade: fix flash BIOS occasional fail
Before flashing UEFI firmware, the BMC calls "obmcutil chassisoff" to
turn OFF the Host and wait 10s before checking if the Host is actually
OFF or not.
In some cases, 10s is not enough. This will make the flashing script
sees the Host is still ON and bypasses the flashing.
This commit changes to check Host state each 2s until maximum 60s to
avoid above failure.
Tested: check below steps 10 times and ensure all done successful:
1. Request to flash SCP firmware via Redfish.
2. Sleep 120s, when CPU is booting (did not jump to OS)
3. Request to flash UEFI firmware via Redfish.
4. Check if the flashing successes
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
Change-Id: I403f4b432e53b3b091315612488c50dbb595ea76
Diffstat (limited to 'meta-ampere/COPYING.MIT')
0 files changed, 0 insertions, 0 deletions