Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2018 02:49:42 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335274 - head/tools/boot
Message-ID:  <201806170249.w5H2ngkD074189@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Jun 17 02:49:42 2018
New Revision: 335274
URL: https://svnweb.freebsd.org/changeset/base/335274

Log:
  FreeBSD/amd64 requires 256MiB to boot UEFI, 128MB simply doesn't work.
  128MiB still works for Legacy booting, however. Go ahead and do 256MiB
  for all amd64 boxes, since the number of such boxes < 256MiB is
  vanishingly small.

Modified:
  head/tools/boot/rootgen.sh

Modified: head/tools/boot/rootgen.sh
==============================================================================
--- head/tools/boot/rootgen.sh	Sun Jun 17 01:39:22 2018	(r335273)
+++ head/tools/boot/rootgen.sh	Sun Jun 17 02:49:42 2018	(r335274)
@@ -315,7 +315,7 @@ qemu_amd64_legacy()
     img=$1
     sh=$2
 
-    echo "qemu-system-x86_64 --drive file=${img},format=raw ${qser}" > $sh
+    echo "qemu-system-x86_64 -m 256m --drive file=${img},format=raw ${qser}" > $sh
 }
 
 qemu_amd64_uefi()
@@ -323,7 +323,7 @@ qemu_amd64_uefi()
     img=$1
     sh=$2
 
-    echo "qemu-system-x86_64 -bios ~/bios/OVMF-X64.fd --drive file=${img},format=raw ${qser}" > $sh
+    echo "qemu-system-x86_64 -m 256m -bios ~/bios/OVMF-X64.fd --drive file=${img},format=raw ${qser}" > $sh
 }
 
 qemu_amd64_both()
@@ -331,8 +331,8 @@ qemu_amd64_both()
     img=$1
     sh=$2
 
-    echo "qemu-system-x86_64 --drive file=${img},format=raw ${qser}" > $sh
-    echo "qemu-system-x86_64 -bios ~/bios/OVMF-X64.fd --drive file=${img},format=raw ${qser}" >> $sh
+    echo "qemu-system-x86_64 -m 256m --drive file=${img},format=raw ${qser}" > $sh
+    echo "qemu-system-x86_64 -m 256m -bios ~/bios/OVMF-X64.fd --drive file=${img},format=raw ${qser}" >> $sh
 }
 
 # arm



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