pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
u-boot-rock5b: Add support for Radxa Rock5B SBC
Module Name: pkgsrc-wip
Committed By: Johann Rudloff <johann%sinyax.net@localhost>
Pushed By: cypheon
Date: Tue Jul 25 18:40:00 2023 +0200
Changeset: 0a94c8d0ad8e14a2f88710bfc06d471d92acea31
Added Files:
u-boot-rock5b/DESCR
u-boot-rock5b/Makefile
u-boot-rock5b/PLIST
u-boot-rock5b/distinfo
u-boot-rock5b/files/installboot.plist
Log Message:
u-boot-rock5b: Add support for Radxa Rock5B SBC
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0a94c8d0ad8e14a2f88710bfc06d471d92acea31
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
u-boot-rock5b/DESCR | 6 +++++
u-boot-rock5b/Makefile | 37 +++++++++++++++++++++++++++
u-boot-rock5b/PLIST | 3 +++
u-boot-rock5b/distinfo | 8 ++++++
u-boot-rock5b/files/installboot.plist | 47 +++++++++++++++++++++++++++++++++++
5 files changed, 101 insertions(+)
diffs:
diff --git a/u-boot-rock5b/DESCR b/u-boot-rock5b/DESCR
new file mode 100644
index 0000000000..84ddca87f6
--- /dev/null
+++ b/u-boot-rock5b/DESCR
@@ -0,0 +1,6 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides Collabora's U-Boot for the rk3588-based Rock 5B from
+Radxa.
diff --git a/u-boot-rock5b/Makefile b/u-boot-rock5b/Makefile
new file mode 100644
index 0000000000..153e7d9bbe
--- /dev/null
+++ b/u-boot-rock5b/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+UBOOT_VERSION= 2023.04rc3
+UBOOT_TARGET= rock5b
+UBOOT_CONFIG= rock5b-rk3588_defconfig
+UBOOT_BIN= rksd_loader.img
+
+UBOOT_INSTALLBOOT_PLIST= installboot.plist
+
+# Collabora's mainlining branch
+MASTER_SITES= https://gitlab.collabora.com/hardware-enablement/rockchip-3588/u-boot/-/archive/${UBOOT_TAG}/
+UBOOT_TAG= a8e0c4a17c197cc85922a292f16365733e75de64
+DISTNAME= u-boot-${UBOOT_TAG}
+EXTRACT_SUFX= .tar.bz2
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+DISTFILES+= rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin
+SITES.rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin= https://github.com/radxa/rkbin/raw/master/bin/rk35/
+
+DISTFILES+= rk3588_bl31_v1.34.elf
+SITES.rk3588_bl31_v1.34.elf= https://github.com/radxa/rkbin/raw/master/bin/rk35/
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pyelftools-[0-9]*:../../devel/py-pyelftools
+
+DISTINFO_FILE= ${.CURDIR}/distinfo
+
+MAKE_ENV+= ROCKCHIP_TPL=${DISTDIR}/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin
+MAKE_ENV+= BL31=${DISTDIR}/rk3588_bl31_v1.34.elf
+
+# u-boot.itb goes at block offset 16384
+# 16384 - 64 = 16320 to create one image containing both files
+post-build:
+ ${CP} ${WRKSRC}/idbloader.img ${WRKSRC}/rksd_loader.img
+ dd if=${WRKSRC}/u-boot.itb conv=notrunc seek=16320 of=${WRKSRC}/rksd_loader.img
+
+.include "../../sysutils/u-boot/u-boot-arm64.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/u-boot-rock5b/PLIST b/u-boot-rock5b/PLIST
new file mode 100644
index 0000000000..2b7ec22852
--- /dev/null
+++ b/u-boot-rock5b/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+share/u-boot/rock5b/installboot.plist
+share/u-boot/rock5b/rksd_loader.img
diff --git a/u-boot-rock5b/distinfo b/u-boot-rock5b/distinfo
new file mode 100644
index 0000000000..a47fceaba0
--- /dev/null
+++ b/u-boot-rock5b/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (rk3588_bl31_v1.34.elf) = 88bffdf230f811463f84127c6460e47833bb3b9896d1c04b372c4fdb5bbd4467
+SHA512 (rk3588_bl31_v1.34.elf) = c1fc7b99a6105f2072fa9cd78e93a72a8f99454d6416b49259ee580b76a9eb87ad8f0bc548aebd53f10d1f05d6f3ed39dab64bd235043714b24e629b6c15fc69
+Size (rk3588_bl31_v1.34.elf) = 348960 bytes
+BLAKE2s (rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin) = e294ab8fc0ecdb31f7426dd6db43ad5c11e19d6aeb36f3eb3f8d92ed2989a68e
+SHA512 (rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin) = 879cc33670967ff65fc04844c60ef6f8cdf1bc930775ca41a64f4a7a236436bbffc148baf412714f70c4bf207f5fb6b2425eb2871e7bcc7768f7ec8da0aec8ea
+Size (rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin) = 64488 bytes
diff --git a/u-boot-rock5b/files/installboot.plist b/u-boot-rock5b/files/installboot.plist
new file mode 100644
index 0000000000..50260e064b
--- /dev/null
+++ b/u-boot-rock5b/files/installboot.plist
@@ -0,0 +1,47 @@
+<!-- $NetBSD$ -->
+<!--
+ Copyright (c) 2023 The NetBSD Foundation, Inc.
+ All rights reserved.
+
+ This code is derived from software contributed to The NetBSD Foundation
+ by Johann Rudloff.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+ <key>radxa,rock5b</key>
+ <dict>
+ <key>description</key>
+ <string>Radxa Rock 5B</string>
+ <key>u-boot-install</key>
+ <array>
+ <dict>
+ <key>file-name</key>
+ <string>rksd_loader.img</string>
+ <key>image-offset</key>
+ <integer>32768</integer>
+ </dict>
+ </array>
+ </dict>
+</dict>
+</plist>
Home |
Main Index |
Thread Index |
Old Index