git: 6595ea888d8f - main - sysutils/u-boot-master: fix on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Sep 2026 12:54:12 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6595ea888d8f64895c64ab6a70584e04c1d91464
commit 6595ea888d8f64895c64ab6a70584e04c1d91464
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-09-16 08:14:32 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-24 12:53:33 +0000
sysutils/u-boot-master: fix on powerpc64
Fixes build of u-boot ports:
binman: Error 1 running 'mkimage -d ./mkimage-in-simple-bin.mkimage-rockchip-tpl:./mkimage-in-simple-bin.mkimage-u-boot-spl -n rk3568 -T rksd ./idbloader.img': Error: image verification failed
mkimage: Failed to verify header of ./idbloader.img
---
sysutils/u-boot-master/files/patch-tools_rkcommon.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/sysutils/u-boot-master/files/patch-tools_rkcommon.c b/sysutils/u-boot-master/files/patch-tools_rkcommon.c
new file mode 100644
index 000000000000..4c10502425aa
--- /dev/null
+++ b/sysutils/u-boot-master/files/patch-tools_rkcommon.c
@@ -0,0 +1,20 @@
+--- tools/rkcommon.c.orig 2026-09-16 07:35:31 UTC
++++ tools/rkcommon.c
+@@ -473,7 +473,7 @@ int rkcommon_verify_header(unsigned char *buf, int siz
+ int ret;
+
+ /* spl_hdr is abandon on header_v2 */
+- if ((*(uint32_t *)buf) == RK_MAGIC_V2)
++ if ((*(uint32_t *)buf) == cpu_to_le32(RK_MAGIC_V2))
+ return 0;
+
+ ret = rkcommon_parse_header(buf, &header0, &img_spl_info);
+@@ -508,7 +508,7 @@ void rkcommon_print_header(const void *buf, struct ima
+ uint8_t image_type;
+ int ret, boot_size, init_size;
+
+- if ((*(uint32_t *)buf) == RK_MAGIC_V2) {
++ if ((*(uint32_t *)buf) == cpu_to_le32(RK_MAGIC_V2)) {
+ ret = rkcommon_parse_header_v2(buf, &header0_v2);
+
+ if (ret < 0) {