Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2015 18:08:39 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r279533 - head/sys/boot/amd64/boot1.efi
Message-ID:  <201503021808.t22I8dvX095093@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Mon Mar  2 18:08:39 2015
New Revision: 279533
URL: https://svnweb.freebsd.org/changeset/base/279533

Log:
  o Add more room for EFI boot blocks
  o Specify the filename as argument
  
  Differential Revision:	https://reviews.freebsd.org/D1999
  Reviewed by:	emaste@

Modified:
  head/sys/boot/amd64/boot1.efi/generate-fat.sh

Modified: head/sys/boot/amd64/boot1.efi/generate-fat.sh
==============================================================================
--- head/sys/boot/amd64/boot1.efi/generate-fat.sh	Mon Mar  2 18:04:57 2015	(r279532)
+++ head/sys/boot/amd64/boot1.efi/generate-fat.sh	Mon Mar  2 18:08:39 2015	(r279533)
@@ -13,7 +13,19 @@
 
 FAT_SIZE=1600 			#Size in 512-byte blocks of the produced image
 
-BOOT1_SIZE=64k
+BOOT1_SIZE=128k
+
+#
+# Known filenames
+# amd64: BOOTx64.efi
+# arm64: BOOTaa64.efi
+#
+if [ -z "$1" ]; then
+	echo "Usage: $0 filename"
+	exit 1
+fi
+
+FILENAME=$1
 
 # Generate 800K FAT image
 OUTPUT_FILE=fat.tmpl
@@ -28,7 +40,7 @@ mount -t msdosfs /dev/$DEVICE stub
 mkdir -p stub/efi/boot
 
 # Make a dummy file for boot1
-echo 'Boot1 START' | dd of=stub/efi/boot/BOOTx64.efi cbs=$BOOT1_SIZE count=1 conv=block
+echo 'Boot1 START' | dd of=stub/efi/boot/$FILENAME cbs=$BOOT1_SIZE count=1 conv=block
 
 umount stub
 mdconfig -d -u $DEVICE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503021808.t22I8dvX095093>