Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2021 19:23:47 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b43d7aa09b3c - main - EC2: Default to UEFI booting
Message-ID:  <202109161923.18GJNlwp067194@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=b43d7aa09b3c91fb6b652306db2ac13e1459c497

commit b43d7aa09b3c91fb6b652306db2ac13e1459c497
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2021-09-16 16:22:42 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2021-09-16 19:23:19 +0000

    EC2: Default to UEFI booting
    
    This reduces the FreeBSD boot time by approximately 5 seconds,
    roughly equally divided betwenn two factors:
    * Disk I/O is faster in the EFI loader since it can perform larger
    I/Os.  (The BIOS loader is limited due to the use of bounce buffers
    in sub-1M memory.)
    * The EFI console is much faster than the VGA console.
    
    Note however that not all EC2 instance types support UEFI; as a
    general rule the newer instances (based on Amazon's "Nitro" platform)
    support UEFI but the older instances (based on Xen) do not.
    
    X-MFC:  TBD based on tradeoff between performance and compatibility
    Relnotes:       yes
    Sponsored by:   https://www.patreon.com/cperciva
---
 release/Makefile.ec2 | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/release/Makefile.ec2 b/release/Makefile.ec2
index ce21d93c37ad..b29f54715fb3 100644
--- a/release/Makefile.ec2
+++ b/release/Makefile.ec2
@@ -25,12 +25,8 @@ SSMOPTS=	--ssm-name ${SSMPREFIX}/${TARGET_ARCH:S/aarch64/arm64/}/base/ufs/${REVI
 EC2ARCH=	--${TARGET_ARCH:S/aarch64/arm64/}
 .endif
 .if !defined(AMIBOOTMETHOD)
-.if ${TARGET_ARCH} == "amd64"
-AMIBOOTMETHOD=	BIOS
-.else
 AMIBOOTMETHOD=	UEFI
 .endif
-.endif
 .if ${AMIBOOTMETHOD} == "UEFI" && ${TARGET_ARCH} == "amd64"
 BOOTMODEOPT=	--uefi
 .endif



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