From 6885e11c4ef5ae2459959890ae261b3462bf5e02 Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Wed, 8 Jan 2025 17:32:35 -0600 Subject: [PATCH] rockpro64-uboot: update to 2025.01. --- srcpkgs/rockpro64-uboot/files/README.voidlinux | 17 +++++++++++++++++ srcpkgs/rockpro64-uboot/template | 7 +++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 srcpkgs/rockpro64-uboot/files/README.voidlinux diff --git a/srcpkgs/rockpro64-uboot/files/README.voidlinux b/srcpkgs/rockpro64-uboot/files/README.voidlinux new file mode 100755 index 00000000000000..df252f4c3eec16 --- /dev/null +++ b/srcpkgs/rockpro64-uboot/files/README.voidlinux @@ -0,0 +1,17 @@ +There are different options for where to install U-Boot on the RockPro64. +Below are commands that can be used to write U-Boot to various locations. + +# Write U-Boot to SD Card or eMMC + +# SD Card +export target_dev=/dev/mmcblk1 +# eMMC +export target_dev=/dev/mmcblk2 +dd if=/usr/lib/rockpro64-uboot/u-boot-rockchip.bin of=${target_dev} seek=64 + + +# Write U-Boot to SPI +dd if=/usr/lib/rockpro64-uboot/u-boot-rockchip-spi.bin of=/dev/mtd0 + +For more information see the U-Boot documentation: +https://github.com/u-boot/u-boot/blob/v2025.01/doc/board/rockchip/rockchip.rst diff --git a/srcpkgs/rockpro64-uboot/template b/srcpkgs/rockpro64-uboot/template index 7ee2af77590733..2ce7891ad0d283 100644 --- a/srcpkgs/rockpro64-uboot/template +++ b/srcpkgs/rockpro64-uboot/template @@ -1,6 +1,6 @@ # Template file for 'rockpro64-uboot' pkgname=rockpro64-uboot -version=2024.07 +version=2025.01 revision=1 archs="aarch64*" hostmakedepends="bison flex bc dtc which python3 swig python3-devel python3-setuptools python3-pyelftools openssl-devel libuuid-devel gnutls-devel ncurses-libtinfo-devel" @@ -11,7 +11,7 @@ maintainer="Tim Sandquist " license="GPL-2.0-or-later, BSD-3-Clause" homepage="https://www.denx.de/wiki/U-Boot/" distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2" -checksum=f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f +checksum=cdef7d507c93f1bbd9f015ea9bc21fa074268481405501945abc6f854d5b686f do_configure() { unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS @@ -31,6 +31,9 @@ do_build() { do_install() { vinstall idbloader.img 0644 usr/lib/rockpro64-uboot vinstall u-boot.itb 0644 usr/lib/rockpro64-uboot + vinstall u-boot-rockchip-spi.bin 0644 usr/lib/rockpro64-uboot + vinstall u-boot-rockchip.bin 0644 usr/lib/rockpro64-uboot + vdoc "${FILESDIR}/README.voidlinux" vlicense Licenses/Exceptions vlicense Licenses/README vlicense Licenses/bsd-2-clause.txt