summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/conf/machine/mtjade.conf
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2021-07-20 11:48:50 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2021-08-04 10:31:41 +0300
commit509991d6a5f34772788ca6d8401c19109e6280a6 (patch)
treeb5a43e4aacbe365d47a456cd47cb4a8af4068ce7 /meta-ampere/meta-jade/conf/machine/mtjade.conf
parent98f43bec14af073da25f53db2122fe3546f54095 (diff)
downloadopenbmc-509991d6a5f34772788ca6d8401c19109e6280a6.tar.xz
meta-ampere: mtjade: flash UEFI firmware at 4MB offset
UEFI firmware for Ampere Altra-based platform starts at offset 0x400000 but currently the firmware image is flashed start at offset 0. This makes the Host fail to boot. This commit supports offset option for the mtd-util's flashcp utility and update the script to flash UEFI firmware starting at offset 0x400000. Tested: 1. Turn on the Host. 2. Flash UEFI firmware. Wait for the flash complete and check if Host can boot successfully. 4. Turn off the Host. 5. Flash UEFI firmware. Wait for the flash complete. 6. Turn on the Host and check if Host can boot successfully. Signed-off-by: Tung Nguyen <tung.nguyen@amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I0d48bfd0a7b7350b46a98bf10fe4de3887f09f02
Diffstat (limited to 'meta-ampere/meta-jade/conf/machine/mtjade.conf')
-rw-r--r--meta-ampere/meta-jade/conf/machine/mtjade.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-ampere/meta-jade/conf/machine/mtjade.conf b/meta-ampere/meta-jade/conf/machine/mtjade.conf
index 171a023f4..e749af6de 100644
--- a/meta-ampere/meta-jade/conf/machine/mtjade.conf
+++ b/meta-ampere/meta-jade/conf/machine/mtjade.conf
@@ -15,6 +15,10 @@ FLASH_RWFS_OFFSET = "43008"
OBMC_POWER_SUPPLY_INSTANCES = "0 1"
+IMAGE_INSTALL += " \
+ mtd-utils \
+ "
+
OBMC_MACHINE_FEATURES += "\
obmc-phosphor-chassis-mgmt \
obmc-phosphor-flash-mgmt \