Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2018 14:31:12 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329061 - head/tools/tools/nanobsd/embedded
Message-ID:  <201802091431.w19EVCb9081265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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