From nobody Wed May 11 17:43:43 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9110F1AC0144; Wed, 11 May 2022 17:43:43 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kz2MM3X8dz4VXS; Wed, 11 May 2022 17:43:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652291023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BWYjW56kGxdkLGQ8s0QZEx9OCdgVqoMA1mIgRi2kguc=; b=jhlFb9BeKLvVYhMevfsurZdaIqE9mfnKdW5O+ifHDPMYo+ulY2BTwcCmVURyYsJ1o4rzW6 HUob+aiyu9o7f6Hvccomr40esDOkqDy5HDw6Y6svU/FV0BoIU3Azy12PSOFmE8foSY+e/n iVKJ14ery8PvquH7Sv8BvEHigNMAxQNKBr4Rtp6UYy0bGtQIbEaqeRMUmTWAoESHmPRmE6 DKTQOdjOQB+OLmbOFPtWyaLaqHN8JCdoZLn69FYfDIrdRNiDD3FIEexzAfva6mBItoMeuM ckF3YsJZd1OaHEcq2q+NBoBdRfFazSMeIc+8ckPCIerx+jgyo5KrTLBqquTwoQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 50F2D1E472; Wed, 11 May 2022 17:43:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24BHhhiQ054425; Wed, 11 May 2022 17:43:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24BHhhKF054424; Wed, 11 May 2022 17:43:43 GMT (envelope-from git) Date: Wed, 11 May 2022 17:43:43 GMT Message-Id: <202205111743.24BHhhKF054424@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mitchell Horne Subject: git: 14d576f78a29 - main - sysutils/u-boot-sifive-fu740: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 14d576f78a297fd3443887c4f2ab9ceb76466433 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652291023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BWYjW56kGxdkLGQ8s0QZEx9OCdgVqoMA1mIgRi2kguc=; b=UU7ZsRfw3/MFHclnWHQBOUy1QXWYYnJFdsAkBLCLr1PixIv+xwq5AyulolfRvdhQNk/BnY bXhQeYAHniGzrctJfqR14VCZQ1kS4ZSFVw8BiqZHFndPfkCAob87/pHenZeQ/A4xejUVWL UEkhbt9nBiMIXc7ExbHtUB1XQLnnWNCuMfLQ9VYRMqKmzPLApy9zv2dzTWBe+Yq2gRtjm9 gkm/Ix3cHGkTHcuHxaeR+lQGG93lDmoIK6mvBNUDv/3FLd8079g4Z+Q7PL3AJRQR1AtIXE +D4vEFkaHBg4GvZeP84m4DkijNDzVZyYKZU5Y/eWWJ7Olho/UR95lRxrdYXjkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652291023; a=rsa-sha256; cv=none; b=OQKI9I7XoBf8wJ8A6Um1b5GKGIlgT/DHOsF9kohzTJBfQ2VXKVpRYOv923FSL+D5sqgfao 7abnm1tI+YCPcxaKUnlRwr56+UJgp3NowybeTBSZ1+WykUaNXFZJdq6pwW7JGqalxyQYHn 4OmWubk8qlp+upeBXrP428JSnTHA+IN+jldOXBNd3dRZAk8IXFqXB6pw9DVWwYYEiky7+4 V8N+ivvAkFBoMRZxq0bEhE08IIDQ8PC6/75ENH+8SsTc1EDANvxEngYNiTmqX3SBJrzZWP eCjXuLeRV7/KSlWY8EE2FrCPK9OaaDFm39YT6PWS0VwGe6zUKYk0r2aKrfNPUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=14d576f78a297fd3443887c4f2ab9ceb76466433 commit 14d576f78a297fd3443887c4f2ab9ceb76466433 Author: Mitchell Horne AuthorDate: 2022-05-11 17:43:33 +0000 Commit: Mitchell Horne CommitDate: 2022-05-11 17:43:33 +0000 sysutils/u-boot-sifive-fu740: add new port This adds a u-boot variant for the HiFive Unmatched board. Reviewed by: manu Approved by: manu (ports, uboot) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35171 --- sysutils/Makefile | 1 + sysutils/u-boot-sifive-fu740/Makefile | 16 ++++++++++++++++ sysutils/u-boot-sifive-fu740/pkg-descr | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 05c47d0bffe8..26ee0452a5a6 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1454,6 +1454,7 @@ SUBDIR += u-boot-rpi3-32 SUBDIR += u-boot-rpi4 SUBDIR += u-boot-sifive-fu540 + SUBDIR += u-boot-sifive-fu740 SUBDIR += u-boot-sinovoip-bpi-m3 SUBDIR += u-boot-sopine SUBDIR += u-boot-sopine-spi diff --git a/sysutils/u-boot-sifive-fu740/Makefile b/sysutils/u-boot-sifive-fu740/Makefile new file mode 100644 index 000000000000..3902e50d6394 --- /dev/null +++ b/sysutils/u-boot-sifive-fu740/Makefile @@ -0,0 +1,16 @@ +MASTERDIR= ${.CURDIR}/../u-boot-master + +MODEL= sifive-fu740 +BOARD_CONFIG= sifive_unmatched_defconfig +FAMILY= sifive +UBOOT_ARCH= riscv64 + +# The FIT image will embed an OpenSBI firmware binary +OPENSBI_FIRM= ${LOCALBASE}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin +BUILD_DEPENDS+= ${OPENSBI_FIRM}:sysutils/opensbi +MAKE_ENV+= OPENSBI=${OPENSBI_FIRM} + +UBOOT_MOVE= ${WRKSRC}/spl/u-boot-spl.bin +UBOOT_PLIST= u-boot.itb u-boot-spl.bin + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-sifive-fu740/pkg-descr b/sysutils/u-boot-sifive-fu740/pkg-descr new file mode 100644 index 000000000000..9f7f8a753ab1 --- /dev/null +++ b/sysutils/u-boot-sifive-fu740/pkg-descr @@ -0,0 +1,19 @@ +U-Boot loader and related files for the HiFive Unmatched (FU740). + +The SD card must be formatted with a GPT partition scheme, and expects two +specific GUID partition types for the SPL and FIT image. + +Note: due to limitations in gpart(8), sgdisk(8) should be used instead. Install +the sysutils/gdisk port or package. + +Assuming an SD card device in /dev/da2, execute: +sgdisk -g --clear --set-alignment=1 \ + --new=1:34:2081 --change-name=1:spl --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 \ + --new=2:2082:10273 --change-name=2:uboot --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 \ + /dev/da2 + +Now, copy the u-boot files to the SD card with dd(1). +dd if=/usr/local/share/u-boot/u-boot-sifive-fu740/u-boot-spl.bin of=/dev/da2p1 conv=sync +dd if=/usr/local/share/u-boot/u-boot-sifive-fu740/u-boot.itb of=/dev/da2p2 conv=sync + +WWW: https://www.denx.de/wiki/U-Boot