Skip to contentSkip to conversation

arm-bsp/n1sdp: add support for startup.nsh file

PATCH New Khasim Mohammed 1 participant 1 message Oct 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-bsp/n1sdp: add support for startup.nsh file

UEFI EDK2 on N1SDP is unable to detect FS2 during boot resulting in launching of EDK2 shell instead of launching grub. The startup.nsh will force launching of grub.

Change-Id I90426f2883251b7cc5fd4aa453ccfd606640d3bd
---
 meta-arm-bsp/recipes-bsp/uefi/edk2-firmware-n1sdp.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-arm-bsp/recipes-bsp/uefi/edk2-firmware-n1sdp.inc +10 -0
index 63154e3..6bd7d79 100644
@@ -17,3 +17,13 @@ EDK2_ARCH          = "AARCH64"
 COMPATIBLE_MACHINE = "n1sdp"
 
 PV = "201908+git${SRCPV}"
+
+# UEFI EDK2 on N1SDP is unable to detect FS2 during boot resulting in launching of
+# EDK2 shell instead of launching grub. The startup.nsh will force launching of grub
+EFIDIR             = "/EFI/BOOT"
+EFI_BOOT_IMAGE     = "bootaa64.efi"
+
+do_deploy_append() {
+    EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
+    printf 'FS2:%s\%s\n' "$EFIPATH" "${EFI_BOOT_IMAGE}" > ${DEPLOYDIR}/startup.nsh
+}
Signature · 1 line
2.17.1