Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yosemite4: pldm-fw-update: add functions for Nuvoton BMC
Summary: # Description: Notify Nuvoton MGM CPLD to change baud rate for slot 5 ~ 8 in BIC recovery update function. # Motivation: Since the Nuvoton BMC is using SPIX to Uart on slot 5 ~ 8 so BMC need to notify MGM CPLD to change baud rate before changing the baud rate of ttyS device. X-link: facebookexternal/openbmc.wiwynn#3146 Test Plan: Do SD BIC recovery update on slot6 successfully on Nuvoton BMC. # Test logs: root@bmc:~# pldm-fw-update.sh sd --rcvy 6 uart_Y4BSD_v2024_33_a1.bin pldm_sd_mctp_i2c_i3c_v2024_33_a1 Restarting pldmd due to incomplete device Check if other PLDM components are updating Start to Recovery slot 6 sd BIC UART is ttyS6 i2c bus is 5 Setting BIC boot from UART Doing the recovery update... Recovery BIC is finished. Restart MCTP service and PLDM service PLDM image name: pldm_sd_mctp_i2c_i3c_v2024_33_a1_re_wrapped └─ /xyz └─ /xyz/openbmc_project └─ /xyz/openbmc_project/mctp └─ /xyz/openbmc_project/mctp/1 ├─ /xyz/openbmc_project/mctp/1/60 ├─ /xyz/openbmc_project/mctp/1/62 ├─ /xyz/openbmc_project/mctp/1/8 └─ /xyz/openbmc_project/mctp/1/92 Start to Update PLDM component Check if other PLDM components are updating Generating software ID... software_id = 683106094957694506 Waiting for updating... 5 sec Update done. slot6: Do 12V cycle Delete software id. software id = 683106094957694506 Done root@bmc:~# pldmtool fw_update GetFwParams -m 60 | grep ActiveComponentImageSetVersionString "ActiveComponentImageSetVersionString": "2024.33.a1", # Description Please include a summary of the change and which issue is fixed. # Motivation Please include an explanation of why you these changes are necessary Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Reviewed By: williamspatrick, Prabha-Veerubhotla Differential Revision: D61645418 fbshipit-source-id: 6112f7bb45ad0b29adda53607df4e16cba5df750
- Loading branch information