From owner-svn-src-head@freebsd.org Fri Feb 9 14:31:13 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53130F08429; Fri, 9 Feb 2018 14:31:13 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 05E7A86C58; Fri, 9 Feb 2018 14:31:13 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 00B7E26127; Fri, 9 Feb 2018 14:31:13 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w19EVCvb081274; Fri, 9 Feb 2018 14:31:12 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w19EVCb9081265; Fri, 9 Feb 2018 14:31:12 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201802091431.w19EVCb9081265@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Fri, 9 Feb 2018 14:31:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329061 - head/tools/tools/nanobsd/embedded X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/tools/tools/nanobsd/embedded X-SVN-Commit-Revision: 329061 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 14:31:13 -0000 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