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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to