pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils
Module Name: pkgsrc
Committed By: yurix
Date: Thu Sep 10 20:03:41 UTC 2026
Modified Files:
pkgsrc/sysutils: Makefile
pkgsrc/sysutils/u-boot: distinfo-2024.10
Added Files:
pkgsrc/sysutils/u-boot-lego-ev3: DESCR Makefile PLIST
pkgsrc/sysutils/u-boot-lego-ev3/files: installboot.plist
pkgsrc/sysutils/u-boot/patches-2024.10:
patch-configs_legoev3__defconfig
Log Message:
u-boot-lego-ev3: add version 2024.10
Add the second stage u-boot for the Lego Mindstorms EV3. This is part of the
project to make NetBSD usable on the EV3.
To generate a diff of this commit:
cvs rdiff -u -r1.1203 -r1.1204 pkgsrc/sysutils/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/u-boot/distinfo-2024.10
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-lego-ev3/DESCR \
pkgsrc/sysutils/u-boot-lego-ev3/Makefile \
pkgsrc/sysutils/u-boot-lego-ev3/PLIST
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/u-boot-lego-ev3/files/installboot.plist
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/u-boot/patches-2024.10/patch-configs_legoev3__defconfig
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.1203 pkgsrc/sysutils/Makefile:1.1204
--- pkgsrc/sysutils/Makefile:1.1203 Thu Aug 27 11:00:32 2026
+++ pkgsrc/sysutils/Makefile Thu Sep 10 20:03:41 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1203 2026/08/27 11:00:32 drixter Exp $
+# $NetBSD: Makefile,v 1.1204 2026/09/10 20:03:41 yurix Exp $
#
COMMENT= System utilities
@@ -851,6 +851,7 @@ SUBDIR+= u-boot-jetson-tk1
SUBDIR+= u-boot-jetson-tx1
SUBDIR+= u-boot-jetson-tx2
SUBDIR+= u-boot-lamobo-r1
+SUBDIR+= u-boot-lego-ev3
SUBDIR+= u-boot-libretech-all-h3-cc-h2-plus
SUBDIR+= u-boot-libretech-all-h3-cc-h3
SUBDIR+= u-boot-libretech-all-h3-cc-h5
Index: pkgsrc/sysutils/u-boot/distinfo-2024.10
diff -u pkgsrc/sysutils/u-boot/distinfo-2024.10:1.2 pkgsrc/sysutils/u-boot/distinfo-2024.10:1.3
--- pkgsrc/sysutils/u-boot/distinfo-2024.10:1.2 Thu Feb 19 09:55:00 2026
+++ pkgsrc/sysutils/u-boot/distinfo-2024.10 Thu Sep 10 20:03:41 2026
@@ -1,6 +1,7 @@
-$NetBSD: distinfo-2024.10,v 1.2 2026/02/19 09:55:00 wiz Exp $
+$NetBSD: distinfo-2024.10,v 1.3 2026/09/10 20:03:41 yurix Exp $
BLAKE2s (u-boot-2024.10.tar.bz2) = dfec4437e3f21cbd97b0336ce035bc8456da74733e773b8bd32f9c0d8520f147
SHA512 (u-boot-2024.10.tar.bz2) = ef817c9b5ae8dc6cd9e3f57811e90acc6a4d4394f0356aa5923e3e3c8559168f977bd5bf82824cd3650aa8e5e3c3d1b00e20818d21368151748682f1fc51152c
Size (u-boot-2024.10.tar.bz2) = 26398495 bytes
+SHA1 (patch-configs_legoev3__defconfig) = de666d8a8ad5df176d30f574eb7307e84be9bc3a
SHA1 (patch-tools_binman_control.py) = 3f10a04765df27bb1b2f8fe5ff395810c0300753
Added files:
Index: pkgsrc/sysutils/u-boot-lego-ev3/DESCR
diff -u /dev/null pkgsrc/sysutils/u-boot-lego-ev3/DESCR:1.1
--- /dev/null Thu Sep 10 20:03:41 2026
+++ pkgsrc/sysutils/u-boot-lego-ev3/DESCR Thu Sep 10 20:03:41 2026
@@ -0,0 +1,5 @@
+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 the second-stage U-Boot for the Lego Mindstorms EV3.
Index: pkgsrc/sysutils/u-boot-lego-ev3/Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot-lego-ev3/Makefile:1.1
--- /dev/null Thu Sep 10 20:03:41 2026
+++ pkgsrc/sysutils/u-boot-lego-ev3/Makefile Thu Sep 10 20:03:41 2026
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2026/09/10 20:03:41 yurix Exp $
+
+UBOOT_TARGET= lego-ev3
+UBOOT_CONFIG= legoev3_defconfig
+UBOOT_BIN= u-boot.bin
+
+UBOOT_INSTALLBOOT_PLIST= installboot.plist
+UBOOT_VERSION= 2024.10
+
+# include u-boot first so it can set PATCHDIR
+.include "../../sysutils/u-boot/u-boot-arm.mk"
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+BUILDLINK_DEPMETHOD.openssl?=build
+.include "../../security/openssl/buildlink3.mk"
+.endif
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/u-boot-lego-ev3/PLIST
diff -u /dev/null pkgsrc/sysutils/u-boot-lego-ev3/PLIST:1.1
--- /dev/null Thu Sep 10 20:03:41 2026
+++ pkgsrc/sysutils/u-boot-lego-ev3/PLIST Thu Sep 10 20:03:41 2026
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2026/09/10 20:03:41 yurix Exp $
+share/u-boot/lego-ev3/installboot.plist
+share/u-boot/lego-ev3/u-boot.bin
Index: pkgsrc/sysutils/u-boot-lego-ev3/files/installboot.plist
diff -u /dev/null pkgsrc/sysutils/u-boot-lego-ev3/files/installboot.plist:1.1
--- /dev/null Thu Sep 10 20:03:41 2026
+++ pkgsrc/sysutils/u-boot-lego-ev3/files/installboot.plist Thu Sep 10 20:03:41 2026
@@ -0,0 +1,60 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2026/09/10 20:03:41 yurix Exp $ -->
+<!--
+ Copyright (c) 2026 The NetBSD Foundation, Inc.
+ All rights reserved.
+
+ This code is derived from software contributed to The NetBSD Foundation
+ by Yuri Honegger.
+
+ 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>lego,ev3</key>
+ <dict>
+ <key>description</key>
+ <string>Lego Mindstorms EV3</string>
+ <key>u-boot-install</key>
+ <array>
+ <dict>
+ <key>file-name</key>
+ <string>u-boot.bin</string>
+
+ <!--
+ The EV3 is a bit unusual in that it contains a immutable, but
+ very old u-boot version as a first stage loader. The version
+ is too old to handle devicetree based booting, but it can be
+ scripted to load a newer second stage u-boot. The old u-boot
+ could load the u-boot from the /boot partition, but the NetBSD
+ tooling is only able to write u-boot to a static location. The
+ way we make it work is that NetBSD installs the second stage
+ u-boot into unused space at a somewhat arbitrary offset of
+ 8192 and the first stage loader is scripted to load it from
+ there.
+ -->
+ <key>image-offset</key>
+ <integer>8192</integer>
+ </dict>
+ </array>
+ </dict>
+</dict>
+</plist>
Index: pkgsrc/sysutils/u-boot/patches-2024.10/patch-configs_legoev3__defconfig
diff -u /dev/null pkgsrc/sysutils/u-boot/patches-2024.10/patch-configs_legoev3__defconfig:1.1
--- /dev/null Thu Sep 10 20:03:41 2026
+++ pkgsrc/sysutils/u-boot/patches-2024.10/patch-configs_legoev3__defconfig Thu Sep 10 20:03:41 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-configs_legoev3__defconfig,v 1.1 2026/09/10 20:03:41 yurix Exp $
+
+Move the location in memory where u-boot runs to avoid corrupting the stage 1
+u-boot.
+
+--- configs/legoev3_defconfig.orig 2026-09-10 17:05:26.038961199 +0000
++++ configs/legoev3_defconfig
+@@ -1,7 +1,7 @@
+ CONFIG_ARM=y
+ CONFIG_SKIP_LOWLEVEL_INIT=y
+ CONFIG_ARCH_DAVINCI=y
+-CONFIG_TEXT_BASE=0xc1080000
++CONFIG_TEXT_BASE=0xc10c0000
+ CONFIG_SYS_MALLOC_LEN=0x110000
+ CONFIG_SYS_MALLOC_F_LEN=0x400
+ CONFIG_TARGET_LEGOEV3=y
Home |
Main Index |
Thread Index |
Old Index