* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
@ 2025-01-11 2:04 ` tsndqst
2025-01-11 2:17 ` [PR PATCH] [Updated] " tsndqst
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: tsndqst @ 2025-01-11 2:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 590 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2585003347
Comment:
@Anachron I think you'll be interested in this PR. Sorry it took me so long to get back to you about booting from USB. I tried some things without luck and just this week found a method that works.
I updated u-boot to 2025.1 and found simpler ways to write u-boot to the board. I tested booting from USB (with no other storage attached) after using `dd if=/usr/lib/rockpro64-uboot/u-boot-rockchip-spi.bin of=/dev/mtd0` to write u-boot to SPI.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
2025-01-11 2:04 ` tsndqst
@ 2025-01-11 2:17 ` tsndqst
2025-01-11 11:52 ` Anachron
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: tsndqst @ 2025-01-11 2:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages rockpro64-uboot-2025.01
https://github.com/void-linux/void-packages/pull/53925
rockpro64-uboot: update to 2025.01.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
I tested the U-Boot install methods that I documented in the README.voidlinux file.
- Writing U-Boot to eMMC using the `/usr/lib/rockpro64-uboot/u-boot-rockchip.bin` image and booting from eMMC.
- Writing U-Boot to SPI using the `/usr/lib/rockpro64-uboot/u-boot-rockchip-spi.bin` image and booting from USB.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/53925.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rockpro64-uboot-2025.01-53925.patch --]
[-- Type: text/x-diff, Size: 2660 bytes --]
From 6885e11c4ef5ae2459959890ae261b3462bf5e02 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
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 <tim.sandquist@gmail.com>"
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
2025-01-11 2:04 ` tsndqst
2025-01-11 2:17 ` [PR PATCH] [Updated] " tsndqst
@ 2025-01-11 11:52 ` Anachron
2025-01-11 13:29 ` tsndqst
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2025-01-11 11:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2585221957
Comment:
Hey @tsndqst thanks for the PR, I did flash a New uboot to PSI but still had no success.
I will get another miniPC soon, so I will maybe be able to dig into it once I migrated my stuff from the rockpro64 away.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (2 preceding siblings ...)
2025-01-11 11:52 ` Anachron
@ 2025-01-11 13:29 ` tsndqst
2025-01-23 20:58 ` Anachron
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: tsndqst @ 2025-01-11 13:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2585270041
Comment:
> Hey @tsndqst thanks for the PR, I did flash a New uboot to PSI but still had no success.
Sorry to hear that. Were you able to see any output on the serial console?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (3 preceding siblings ...)
2025-01-11 13:29 ` tsndqst
@ 2025-01-23 20:58 ` Anachron
2025-01-23 21:12 ` Anachron
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2025-01-23 20:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2611004270
Comment:
Hey, I am going to get back to this!
I have successfully moved all my services from my `RockPro64` NAS to my new `media center`.
Currently updated my RockPro64 and also applied this PR, lets see how it goes ...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (4 preceding siblings ...)
2025-01-23 20:58 ` Anachron
@ 2025-01-23 21:12 ` Anachron
2025-01-23 21:22 ` Anachron
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2025-01-23 21:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 533 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2611004270
Comment:
Hey, I am going to get back to this!
I have successfully moved all my services from my `RockPro64` NAS to my new `media center`.
Currently updated my RockPro64 and also applied this PR, lets see how it goes ...
Edit: Okay, I finally am able to boot from USB 3.0, I think this can be merged (even though I am still having issues with my device, but that is not related to this PR).
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (5 preceding siblings ...)
2025-01-23 21:12 ` Anachron
@ 2025-01-23 21:22 ` Anachron
2025-02-02 13:08 ` Anachron
2025-02-04 2:07 ` tsndqst
8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2025-01-23 21:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2611004270
Comment:
Hey, I am going to get back to this!
I have successfully moved all my services from my `RockPro64` NAS to my new `media center`.
Currently updated my RockPro64 and also applied this PR, lets see how it goes ...
Edit: Okay, I finally am able to boot from USB 3.0, I think this can be merged (even though I am still having issues with my device, but that is not related to this PR).
Edit 2: Is it normaly that I cannot boot from the SD card itself when I flashed the SPI to it? It's not like I need it, but it would've been nice knowing it in advance because I currently cannot boot until I reinstalled Void on a ssd. :)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (6 preceding siblings ...)
2025-01-23 21:22 ` Anachron
@ 2025-02-02 13:08 ` Anachron
2025-02-04 2:07 ` tsndqst
8 siblings, 0 replies; 10+ messages in thread
From: Anachron @ 2025-02-02 13:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2611004270
Comment:
Hey, I am going to get back to this!
I have successfully moved all my services from my `RockPro64` NAS to my new `media center`.
Currently updated my RockPro64 and also applied this PR, lets see how it goes ...
Edit: Okay, I finally am able to boot from USB 3.0, I think this can be merged (even though I am still having issues with my device, but that is not related to this PR).
Edit 2: Is it normaly that I cannot boot from the SD card itself when I flashed the SPI to it? It's not like I need it, but it would've been nice knowing it in advance because I currently cannot boot until I reinstalled Void on a ssd. :)
Edit3: I read somewhere else that this happens and since I am able to boot `Armbian` for `RockPro64` I think it's good enough to merge this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rockpro64-uboot: update to 2025.01.
2025-01-11 1:57 [PR PATCH] rockpro64-uboot: update to 2025.01 tsndqst
` (7 preceding siblings ...)
2025-02-02 13:08 ` Anachron
@ 2025-02-04 2:07 ` tsndqst
8 siblings, 0 replies; 10+ messages in thread
From: tsndqst @ 2025-02-04 2:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/53925#issuecomment-2632595113
Comment:
@Anachron For what it's worth I tested it again today and I was able to boot from SD card with nothing else plugged in. It did take a couple tries. The first time I forgot that I had changed the boot_targets variable in u-boot. Putting it back to the original list allowed it to boot from SD card. If you weren't able to boot Armbian I'd suggest looking at that but since it's just void you had problems with I'm not sure what's wrong.
^ permalink raw reply [flat|nested] 10+ messages in thread