From 61442dfbfc52b9f316b5aee000092d916beccb56 Mon Sep 17 00:00:00 2001 From: Dmitriy Terekhin Date: Tue, 21 Jan 2020 18:11:04 +0400 Subject: [PATCH] aarch64-dbm: added 98-dbm-startup-nsh The tar2fs script writes the contents of the /boot/efi directory to a disk image partition for EFI. Place the scripts executed by EFI Shell in /boot/efi --- .../image-scripts.d/98-dbm-startup-nsh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 features.in/aarch64-dbm/image-scripts.d/98-dbm-startup-nsh diff --git a/features.in/aarch64-dbm/image-scripts.d/98-dbm-startup-nsh b/features.in/aarch64-dbm/image-scripts.d/98-dbm-startup-nsh new file mode 100755 index 00000000..d04756ec --- /dev/null +++ b/features.in/aarch64-dbm/image-scripts.d/98-dbm-startup-nsh @@ -0,0 +1,20 @@ +#!/bin/sh +# The tar2fs script writes the contents of the /boot/efi directory +# to a disk image partition for EFI. +# Place the scripts executed by EFI Shell in /boot/efi + +mkdir -p /boot/efi +# Script startup.nsh to boot with GRUB2 by default +cat > /boot/efi/startup.nsh << EOF +\EFI\BOOT\BOOTAA64.EFI + +EOF + +# The efidrvext.nsh script can be run manually from the EFI Shell +# to boot using the ext2, ext3, ext4 driver for EFI +cat > /boot/efi/efidrvext.nsh << EOF +load fs0:\efi\drivers\ext2_aa64.efi +map -r +FS1:\boot\vmlinuz root=/dev/sda2 ro console=ttyS0,115200 video=HDMI-A-1:D fbcon=map:0 initrd=/boot/initrd.img dtb=/boot/dtb/bm-bfkm.dtb + +EOF