Skip to contentSkip to conversation

mkefidisk.sh: add startup script for automated boot

PATCH In review Trevor Woerner 1 participant 2 messages Nov 28, 2015 – Dec 31, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkefidisk.sh: add startup script for automated boot

Regardless of which image is built using which layers, try to ensure the image on the SD device being prepared is the one that is booted automatically when the board is powered.

---
 scripts/contrib/mkefidisk.sh | 3 +++
 1 file changed, 3 insertions(+)
scripts/contrib/mkefidisk.sh +3 -0
index 23c18cb..333284f 100755
@@ -438,6 +438,9 @@ if [ -d $ROOTFS_MNT/etc/udev/ ] ; then
 	echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist
 fi
 
+# Add startup.nsh script for automated boot
+echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh
+
 
 # Call cleanup to unmount devices and images and remove the TMPDIR
 cleanup
Signature · 1 line
2.6.3.368.gf34be46
#1 lore raw

ping?

Quoted 23 lines · Trevor Woerner

Regardless of which image is built using which layers, try to ensure the image on the SD device being prepared is the one that is booted automatically when the board is powered.

---
 scripts/contrib/mkefidisk.sh | 3 +++
 1 file changed, 3 insertions(+)
scripts/contrib/mkefidisk.sh +3 -0
index 23c18cb..333284f 100755
@@ -438,6 +438,9 @@ if [ -d $ROOTFS_MNT/etc/udev/ ] ; then
 	echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist
 fi
 
+# Add startup.nsh script for automated boot
+echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh
+
 
 # Call cleanup to unmount devices and images and remove the TMPDIR
 cleanup