Author: kevans
Date: Fri Feb  9 14:31:11 2018
New Revision: 329061
URL: https://svnweb.freebsd.org/changeset/base/329061

Log:
  Teach nanobsd about armv7, add -m to qemu invocations
  
  qemu defaults to 128 MiB of RAM, which has been found to not necessarily be
  enough for booting the system, at least on amd64 and armv7
  
  Add a sensible -m 512 to the examples so that they'll work out of the box
  in the general case.
  
  Reviewed by:  imp
  Differential Revision:        https://reviews.freebsd.org/D14234

Modified:
  head/tools/tools/nanobsd/embedded/beaglebone.cfg
  head/tools/tools/nanobsd/embedded/common
  head/tools/tools/nanobsd/embedded/pandaboard.cfg
  head/tools/tools/nanobsd/embedded/qemu-amd64-uefi-bios.cfg
  head/tools/tools/nanobsd/embedded/qemu-amd64-uefi.cfg
  head/tools/tools/nanobsd/embedded/qemu-amd64.cfg
  head/tools/tools/nanobsd/embedded/qemu-armv7.cfg
  head/tools/tools/nanobsd/embedded/rpi2.cfg

Modified: head/tools/tools/nanobsd/embedded/beaglebone.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/beaglebone.cfg    Fri Feb  9 10:20:16 
2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/beaglebone.cfg    Fri Feb  9 14:31:11 
2018        (r329061)
@@ -26,7 +26,7 @@
 # SUCH DAMAGE.
 #
 
-NANO_ARCH=armv6
+NANO_ARCH=armv7
 NANO_KERNEL=BEAGLEBONE
 NANO_DRIVE=mmcsd0
 NANO_NAME=beaglebone

Modified: head/tools/tools/nanobsd/embedded/common
==============================================================================
--- head/tools/tools/nanobsd/embedded/common    Fri Feb  9 10:20:16 2018        
(r329060)
+++ head/tools/tools/nanobsd/embedded/common    Fri Feb  9 14:31:11 2018        
(r329061)
@@ -535,6 +535,9 @@ std_armeb ( ) {
 std_armv6 ( ) {
 }
 
+std_armv7 ( ) {
+}
+
 std_i386 ( ) {
        # Default values, if not overridden in .cfg file
        : ${NANO_KERNEL:=GENERIC}

Modified: head/tools/tools/nanobsd/embedded/pandaboard.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/pandaboard.cfg    Fri Feb  9 10:20:16 
2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/pandaboard.cfg    Fri Feb  9 14:31:11 
2018        (r329061)
@@ -26,7 +26,7 @@
 # SUCH DAMAGE.
 #
 
-NANO_ARCH=armv6
+NANO_ARCH=armv7
 NANO_KERNEL=PANDABOARD
 NANO_DRIVE=mmcsd0
 NANO_NAME=pandaboard

Modified: head/tools/tools/nanobsd/embedded/qemu-amd64-uefi-bios.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/qemu-amd64-uefi-bios.cfg  Fri Feb  9 
10:20:16 2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/qemu-amd64-uefi-bios.cfg  Fri Feb  9 
14:31:11 2018        (r329061)
@@ -36,7 +36,7 @@ qemu_env
 
 #
 # Run with
-#      qemu-system-x86_64 -serial stdio -bios OVMF.fd \
+#      qemu-system-x86_64 -m 512 -serial stdio -bios OVMF.fd \
 #              -hda _.disk.image.qemu-amd64-uefi.qcow2
 # OVMF.fd is from
 #      http://sourceforge.net/projects/edk2/files/OVMF/OVMF-X64-r15214.zip

Modified: head/tools/tools/nanobsd/embedded/qemu-amd64-uefi.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/qemu-amd64-uefi.cfg       Fri Feb  9 
10:20:16 2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/qemu-amd64-uefi.cfg       Fri Feb  9 
14:31:11 2018        (r329061)
@@ -36,7 +36,7 @@ qemu_env
 
 #
 # Run with
-#      qemu-system-x86_64 -serial stdio -bios OVMF.fd \
+#      qemu-system-x86_64 -m 512 -serial stdio -bios OVMF.fd \
 #              -hda _.disk.image.qemu-amd64-uefi.qcow2
 # OVMF.fd is from
 #      http://sourceforge.net/projects/edk2/files/OVMF/OVMF-X64-r15214.zip

Modified: head/tools/tools/nanobsd/embedded/qemu-amd64.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/qemu-amd64.cfg    Fri Feb  9 10:20:16 
2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/qemu-amd64.cfg    Fri Feb  9 14:31:11 
2018        (r329061)
@@ -34,6 +34,6 @@ NANO_NAME=qemu-amd64
 qemu_env
 
 # Run with:
-# qemu-system-x86_64 -hdd $file -serial telnet::4444,server -nographic
+# qemu-system-x86_64 -m 512 -hdd $file -serial telnet::4444,server -nographic
 # To get some breathing room on the image:
 # qemu-img resize $file +2G

Modified: head/tools/tools/nanobsd/embedded/qemu-armv7.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/qemu-armv7.cfg    Fri Feb  9 10:20:16 
2018        (r329060)
+++ head/tools/tools/nanobsd/embedded/qemu-armv7.cfg    Fri Feb  9 14:31:11 
2018        (r329061)
@@ -27,7 +27,7 @@
 # SUCH DAMAGE.
 #
 
-NANO_ARCH=armv6
+NANO_ARCH=armv7
 NANO_DRIVE=vtbd0
 NANO_KERNEL=GENERIC
 NANO_NAME=qemu-armv7
@@ -40,7 +40,7 @@ qemu_env
 
 #
 # Run with
-#      qemu-system-arm -M virt -serial stdio -bios QEMU_EFI.fd \
+#      qemu-system-arm -m 512 -M virt -serial stdio -bios QEMU_EFI.fd \
 #              -drive if=none,file=_.disk.image.qemu-armv7.qcow2,id=hd0 \
 #              -device virtio-blk-device,drive=hd0
 # QEMU_EFI.fd is from

Modified: head/tools/tools/nanobsd/embedded/rpi2.cfg
==============================================================================
--- head/tools/tools/nanobsd/embedded/rpi2.cfg  Fri Feb  9 10:20:16 2018        
(r329060)
+++ head/tools/tools/nanobsd/embedded/rpi2.cfg  Fri Feb  9 14:31:11 2018        
(r329061)
@@ -26,7 +26,7 @@
 # SUCH DAMAGE.
 #
 
-NANO_ARCH=armv6
+NANO_ARCH=armv7
 NANO_KERNEL=RPI2
 NANO_DRIVE=mmcsd0
 NANO_NAME=rpi2
_______________________________________________
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