From nobody Thu May 30 10:43:34 2024 X-Original-To: dev-commits-ports-all@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 4VqjXR1Szqz5MQT8; Thu, 30 May 2024 10:43:35 +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 4VqjXQ50kfz4JH6; Thu, 30 May 2024 10:43:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717065814; 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=54lQ7WNUlkaL1qESGYhd7zbPecN07YrmtDR5ZO6ujnc=; b=XxYzNClImRLvNduHvW9tQJ9JWSf97dfymWdPkr2Mf9AkwKMPVll6X6P+cPKVZP1YJTEXL+ WA5h4rSkxAXN+qbd/lyT8Xn2xjGMi6Y/dlij0/U0W/8FREjFBADbP2GLnN4DmvHvNZYURY xgxM9huA3lh9I+8t4G6iJBDjlj/bb9VmzE79u3V1q3ciAAyFBFYlvf5EebBESo47eUWr3t WIvkoT9LUyozhYTLys971KU/Clw9OwCRGF1rn/fq3Tu+0Sy1wFm2ALXdDxEqzOI2tMfg6/ h9eadoiMiyzqQKOgLUQAD5OfwckRAzaGOwpdAwyzv9EE7/NE3rfv9UnZXevcaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717065814; a=rsa-sha256; cv=none; b=VB30+a9WLF5kho+loYLTpb6f+BoDCpL9diwqJgp1Yqb66nEt72JIHBn3oqKOkBI8yTafRC 2X8Voci9U9F/CDfVOhWAkmyh3wVcFirjMcC8pLWUIYuyAg4XhVLQYIqinTouKUsFkUH3ER AoZqqPmPoTiyaXKwmLZ7jNso5Cf171jobIkfCl6ZowgGH7urJumcGy4wVP1sXaSfIYcE98 6GTJzdYLokoVd590Whky023VzjztTUCFRUZnf3mK03KvucPLeHyR3zBGE2p1kZlAc4ZqgH Xvd1btS3QTi2nYAXNnk1rjipM60Nz4jQTp3mMqSGPrBK0w5HKCsWFyFC1cRwgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717065814; 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=54lQ7WNUlkaL1qESGYhd7zbPecN07YrmtDR5ZO6ujnc=; b=quI0YEvCwhPFMPvUQ4E0jJsKC5noomXA1+j2Fjz11fPICCDA6OG8Jc39izmCrAOfV8ls37 X67PZklzPh3ImXovcAJgbFTKamT01aLOBY6cEXyc2/jWn0d9VZKAfMLVFO7YAU/RovGqnU gjiVL1DFcSxue27tg+kjcW3Fiof1UKC3Y6iBRZMQDlrs+X4NBg4/YxSLYhYJNrl+Yhrfjo bK10iGilCTMFCIf1p0ycIB0x8LMoVJ999moAX0xYxmdjMwwYm2jFSbKLz/cOvrDNmQRNzU UsQYvGy4KDZuawyP5ocPsZ2PSBhNXBOOCe+hbX5/tOPwh4B0LWPqNGQ2osG6kA== 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 4VqjXQ4ZQ9zcjh; Thu, 30 May 2024 10:43:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44UAhYUb042880; Thu, 30 May 2024 10:43:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44UAhY6D042877; Thu, 30 May 2024 10:43:34 GMT (envelope-from git) Date: Thu, 30 May 2024 10:43:34 GMT Message-Id: <202405301043.44UAhY6D042877@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 9433da0bcbf9 - main - sysutils/nanopi-r5s: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9433da0bcbf9194ef84bc42a2b6b1ee1401fc758 Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/ports/commit/?id=9433da0bcbf9194ef84bc42a2b6b1ee1401fc758 commit 9433da0bcbf9194ef84bc42a2b6b1ee1401fc758 Author: Emmanuel Vadot AuthorDate: 2024-05-30 09:47:26 +0000 Commit: Emmanuel Vadot CommitDate: 2024-05-30 10:43:14 +0000 sysutils/nanopi-r5s: Add new port Add a new u-boot port for FriendlyElelc Nanopi R5S Sponsored by: Beckhoff Automation GmbH & Co. KG --- sysutils/Makefile | 1 + sysutils/u-boot-master/Makefile | 11 +++++++++++ sysutils/u-boot-nanopi-r5s/Makefile | 7 +++++++ sysutils/u-boot-nanopi-r5s/pkg-descr | 6 ++++++ 4 files changed, 25 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 40b4a10c3c40..8746c3e88b3f 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1512,6 +1512,7 @@ SUBDIR += u-boot-nanopi-neo2 SUBDIR += u-boot-nanopi-r2s SUBDIR += u-boot-nanopi-r4s + SUBDIR += u-boot-nanopi-r5s SUBDIR += u-boot-olimex-a20-som-evb SUBDIR += u-boot-olinuxino-lime SUBDIR += u-boot-olinuxino-lime2 diff --git a/sysutils/u-boot-master/Makefile b/sysutils/u-boot-master/Makefile index 52718c4ee8b0..bf867cdca70d 100644 --- a/sysutils/u-boot-master/Makefile +++ b/sysutils/u-boot-master/Makefile @@ -104,6 +104,10 @@ UBOOT_ARCH_RK3328= aarch64 UBOOT_PLIST_RK3399= idbloader.img u-boot.itb UBOOT_ARCH_RK3399= aarch64 +# Override for RK356X family +UBOOT_PLIST_RK356X= idbloader.img u-boot.itb +UBOOT_ARCH_RK356X= aarch64 + # Override for ARMADA38X family UBOOT_PLIST_ARMADA38X= u-boot-with-spl.kwb UBOOT_METADATA_ARMADA38X_FILES= ${UBOOT_PLIST_ARMADA38X} @@ -181,6 +185,13 @@ BUILD_DEPENDS+= ${LOCALBASE}/share/atf-rk3399/bl31.elf:sysutils/atf-rk3399 \ MAKE_ENV+= BL31=${LOCALBASE}/share/atf-rk3399/bl31.elf .endif +.if defined(FAMILY) && ${FAMILY} == rk356X +BUILD_DEPENDS+= ${LOCALBASE}/share/rkbin/rk35/rk3566_ddr_1056MHz_v1.21.bin:sysutils/rkbin \ + ${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR} +MAKE_ENV+= BL31=${LOCALBASE}/share/rkbin/rk35/rk3568_bl31_v1.44.elf \ + ROCKCHIP_TPL=${LOCALBASE}/share/rkbin/rk35/rk3566_ddr_1056MHz_v1.21.bin +.endif + # Each u-boot family has different files to include, bring them in. .for i in ${UBOOT_PLIST} PLIST_FILES+= ${UBOOT_DIR}/${i} diff --git a/sysutils/u-boot-nanopi-r5s/Makefile b/sysutils/u-boot-nanopi-r5s/Makefile new file mode 100644 index 000000000000..439f88fc5c37 --- /dev/null +++ b/sysutils/u-boot-nanopi-r5s/Makefile @@ -0,0 +1,7 @@ +MASTERDIR= ${.CURDIR}/../u-boot-master + +MODEL= nanopi-r5s +BOARD_CONFIG= nanopi-r5s-rk3568_defconfig +FAMILY= rk356X + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-nanopi-r5s/pkg-descr b/sysutils/u-boot-nanopi-r5s/pkg-descr new file mode 100644 index 000000000000..b51949596521 --- /dev/null +++ b/sysutils/u-boot-nanopi-r5s/pkg-descr @@ -0,0 +1,6 @@ +U-Boot loader and related files for the FriendlyARM NanoPi-R5S + +To install this bootloader on an sdcard just do: + +dd if=/usr/local/share/u-boot/u-boot-nanopi-r5s/idbloader.img of=/path/to/sdcarddevice seek=64 bs=512 conv=sync +dd if=/usr/local/share/u-boot/u-boot-nanopi-r5s/u-boot.itb of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync