From 509991d6a5f34772788ca6d8401c19109e6280a6 Mon Sep 17 00:00:00 2001 From: "Thang Q. Nguyen" Date: Tue, 20 Jul 2021 15:48:50 +0700 Subject: 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 Signed-off-by: Thang Q. Nguyen Change-Id: I0d48bfd0a7b7350b46a98bf10fe4de3887f09f02 --- meta-ampere/meta-jade/conf/machine/mtjade.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-ampere/meta-jade/conf') 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 \ -- cgit v1.2.3