meta-ampere: mtmitchell: support Host firmware update
Support Host firmware update for HostFW, EEPROM and FRU via BMC
console and Redfish.
Tested:
1. Flash firmwares via BMC console.
2. Flash firmware via Redfish
3. Get MB CPLD firmware revision
$ ampere_firmware_version.sh mb_cpld
MB CPLD
CPLD Version: 22060268
CPLD DeviceID: 612BE043
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Change-Id: I1cfbe4832b7d57168e2ea1df0059e23ada1b3b6d
diff --git a/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend b/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend
index f325395..341ca13 100644
--- a/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend
+++ b/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils.bbappend
@@ -4,11 +4,17 @@
SRC_URI:append = " \
file://ampere_power_util.sh \
+ file://ampere_firmware_upgrade.sh \
+ file://ampere_flash_bios.sh \
file://ampere_power_on_driver_binder.sh \
+ file://ampere_firmware_version.sh \
"
do_install:append() {
install -d ${D}/usr/sbin
install -m 0755 ${WORKDIR}/ampere_power_util.sh ${D}/${sbindir}/
+ install -m 0755 ${WORKDIR}/ampere_firmware_upgrade.sh ${D}/${sbindir}/
+ install -m 0755 ${WORKDIR}/ampere_flash_bios.sh ${D}/${sbindir}/
install -m 0755 ${WORKDIR}/ampere_power_on_driver_binder.sh ${D}/${sbindir}/
+ install -m 0755 ${WORKDIR}/ampere_firmware_version.sh ${D}/${sbindir}/
}