From owner-svn-ports-all@freebsd.org Fri Jul 31 17:06:22 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A9AC37D6FB; Fri, 31 Jul 2020 17:06:22 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BJDFp0NDVz3TLk; Fri, 31 Jul 2020 17:06:22 +0000 (UTC) (envelope-from mhorne@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 E442624AD2; Fri, 31 Jul 2020 17:06:21 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06VH6L7e042963; Fri, 31 Jul 2020 17:06:21 GMT (envelope-from mhorne@FreeBSD.org) Received: (from mhorne@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06VH6Lfh042960; Fri, 31 Jul 2020 17:06:21 GMT (envelope-from mhorne@FreeBSD.org) Message-Id: <202007311706.06VH6Lfh042960@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mhorne set sender to mhorne@FreeBSD.org using -f From: Mitchell Horne Date: Fri, 31 Jul 2020 17:06:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543872 - in head/sysutils: . u-boot-qemu-riscv64 X-SVN-Group: ports-head X-SVN-Commit-Author: mhorne X-SVN-Commit-Paths: in head/sysutils: . u-boot-qemu-riscv64 X-SVN-Commit-Revision: 543872 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2020 17:06:22 -0000 Author: mhorne (src committer) Date: Fri Jul 31 17:06:21 2020 New Revision: 543872 URL: https://svnweb.freebsd.org/changeset/ports/543872 Log: New port: sysutils/u-boot-qemu-riscv64 Add a u-boot port for QEMU's 64-bit RISC-V config. A simple u-boot payload is provided that can be specified on the command line. It runs in supervisor mode, and should be paired with OpenSBI. Reviewed by: manu Approved by: u-boot (manu) Differential Revision: https://reviews.freebsd.org/D25737 Added: head/sysutils/u-boot-qemu-riscv64/ head/sysutils/u-boot-qemu-riscv64/Makefile (contents, props changed) head/sysutils/u-boot-qemu-riscv64/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri Jul 31 17:01:58 2020 (r543871) +++ head/sysutils/Makefile Fri Jul 31 17:06:21 2020 (r543872) @@ -1364,6 +1364,7 @@ SUBDIR += u-boot-pinebookpro SUBDIR += u-boot-qemu-arm SUBDIR += u-boot-qemu-arm64 + SUBDIR += u-boot-qemu-riscv64 SUBDIR += u-boot-riotboard SUBDIR += u-boot-rock64 SUBDIR += u-boot-rockpro64 Added: head/sysutils/u-boot-qemu-riscv64/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-qemu-riscv64/Makefile Fri Jul 31 17:06:21 2020 (r543872) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +MASTERDIR= ${.CURDIR}/../u-boot-master + +MODEL= qemu-riscv64 +BOARD_CONFIG= qemu-riscv64_smode_defconfig +FAMILY= qemu +UBOOT_ARCH= riscv64 + +.include "${MASTERDIR}/Makefile" Added: head/sysutils/u-boot-qemu-riscv64/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/u-boot-qemu-riscv64/pkg-descr Fri Jul 31 17:06:21 2020 (r543872) @@ -0,0 +1,12 @@ +U-Boot loader for QEMU RISC-V 64-bit + +To use this bootloader to boot a FreeBSD RISC-V image, install +emulators/qemu50 and sysutils/opensbi and execute it as: + +qemu-system-riscv64 -machine virt -m 2048m -smp 2 -nographic \ + -bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \ + -kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \ + -drive file=/path/to/freebsd.img,format=raw,id=hd0 \ + -device virtio-blk-device,drive=hd0 + +WWW: https://www.denx.de/wiki/U-Boot