Skip to contentSkip to conversation

configs/beagleboneai: move to u-boot 2025.04 to unbreak build with gcc 14

PATCH Applied Peter Korsgaard 2 participants 6 messages Oct 5, 2025 – Oct 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs/beagleboneai: move to u-boot 2025.04 to unbreak build with gcc 14

With the change to default to gcc 14.x with commit 1e1fafa1f0f5 ("package/gcc: switch to GCC 14.x as the default"), the old u-boot version no longer builds:

board/ti/am57xx/board.c:948:17: error: implicit declaration of function 'do_cape_detect'; did you mean 'do_board_detect'? [-Wimplicit-function-declaration]

https://gitlab.com/buildroot.org/buildroot/-/jobs/11570241744

So move to u-boot 2025.04 to fix that. We still need a small patch as (early) beagleboneai boards do not have the EEPROM (or eMMC partition) populated, so include the bb.org patch from

https://github.com/beagleboard/u-boot/commit/0b161f8e89a411fe54059cf1d0ba61354ee1e8a2

The new u-boot version needs both openssl and gnutls on the host, so enable them.

---
 ...d.c-assume-on-failure-its-a-BBONE-AI.patch |  31 +
 .../patches/uboot/0001-am57xx_evm-fixes.patch | 839 ------------------
 .../beagleboneai/patches/uboot/uboot.hash     |   2 +-
 configs/beagleboneai_defconfig                |   4 +-
 4 files changed, 35 insertions(+), 841 deletions(-)
 create mode 100644 board/beagleboard/beagleboneai/patches/uboot/0001-am57xx-board.c-assume-on-failure-its-a-BBONE-AI.patch
 delete mode 100644 board/beagleboard/beagleboneai/patches/uboot/0001-am57xx_evm-fixes.patch
board/beagleboard/beagleboneai/patches/uboot/0001-am57xx-board.c-assume-on-failure-its-a-BBONE-AI.patch new file +31 -0
new file mode 100644
index 0000000000..0f2975bfaa
@@ -0,0 +1,31 @@
+From 0b161f8e89a411fe54059cf1d0ba61354ee1e8a2 Mon Sep 17 00:00:00 2001
+From: Robert Nelson <[email protected]>
+Date: Wed, 3 Aug 2022 11:28:10 -0500
+Subject: [PATCH] am57xx/board.c: assume on failure its a BBONE-AI
+
+Signed-off-by: Robert Nelson <[email protected]>
+Upstream: https://github.com/beagleboard/u-boot/commit/0b161f8e89a411fe54059cf1d0ba61354ee1e8a2
+Signed-off-by: Peter Korsgaard <[email protected]>
+---
+ board/ti/am57xx/board.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
+index cfc825e52a3..f369693f382 100644
+--- a/board/ti/am57xx/board.c
++++ b/board/ti/am57xx/board.c
+@@ -529,8 +529,10 @@ void do_board_detect(void)
+ 
+ 	rc = ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS,
+ 				  CONFIG_EEPROM_CHIP_ADDRESS);
+-	if (rc)
++	if (rc) {
+ 		printf("ti_i2c_eeprom_init failed %d\n", rc);
++		ti_i2c_eeprom_am_set("BBONE-AI", "A");
++	};
+ 
+ #ifdef CONFIG_SUPPORT_EMMC_BOOT
+ 	rc = board_bootmode_has_emmc();
+-- 
+2.39.5
+
board/beagleboard/beagleboneai/patches/uboot/0001-am57xx_evm-fixes.patch deleted +0 -839

839 lines not on this page · raw message

board/beagleboard/beagleboneai/patches/uboot/uboot.hash +1 -1
index 4b82872f31..80ea21b7cb 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  0d438b1bb5cceb57a18ea2de4a0d51f7be5b05b98717df05938636e0aadfe11a  u-boot-2021.04.tar.bz2
+sha256  439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718  u-boot-2025.04.tar.bz2
configs/beagleboneai_defconfig +3 -1
index 38db184817..5d269a1825 100644
@@ -19,9 +19,11 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.04"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2025.04"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am57xx_evm"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
 # BR2_TARGET_UBOOT_FORMAT_BIN is not set
 BR2_TARGET_UBOOT_FORMAT_IMG=y
 BR2_TARGET_UBOOT_SPL=y
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 configs/beagleboneai: move to Linux 6.12.50

And adjust the dtb path to the new subdir after commit 724ba6751532 ("ARM:
dts: Move .dts files to vendor sub-directories") in v6.5.

---
 board/beagleboard/beagleboneai/patches/linux/linux.hash | 2 +-
 configs/beagleboneai_defconfig                          | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
board/beagleboard/beagleboneai/patches/linux/linux.hash +1 -1
index ec1a3601b7..4ae61c9e4f 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  c52bc1ffc396c11bce335c9ee5cd55fe4213cbc1fb4026ff62bb90c864c61f62  linux-5.10.217.tar.xz
+sha256  c435bd74d1c21fc5a950781a50d78bae2b93944144694843359948ad3afc72a5  linux-6.12.50.tar.xz
configs/beagleboneai_defconfig +3 -3
index 5d269a1825..bf6d73a525 100644
@@ -1,6 +1,6 @@
 BR2_arm=y
 BR2_cortex_a15=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
 BR2_GLOBAL_PATCH_DIR="board/beagleboard/beagleboneai/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_SYSTEM_DHCP="eth0"
@@ -9,10 +9,10 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboard/beagleboneai/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.217"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.50"
 BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/omap/am5729-beagleboneai"
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] configs/beagleboneai: move to Linux 6.12.50

In reply of:

Quoted 4 lines

And adjust the dtb path to the new subdir after commit 724ba6751532 ("ARM:
dts: Move .dts files to vendor sub-directories") in v6.5.

Applied to 2025.02.x, 2025.05.x & 2025.08.x. Thanks

Quoted 45 lines
---
 board/beagleboard/beagleboneai/patches/linux/linux.hash | 2 +-
 configs/beagleboneai_defconfig                          | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
board/beagleboard/beagleboneai/patches/linux/linux.hash +1 -1
index ec1a3601b7..4ae61c9e4f 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  c52bc1ffc396c11bce335c9ee5cd55fe4213cbc1fb4026ff62bb90c864c61f62  linux-5.10.217.tar.xz
+sha256  c435bd74d1c21fc5a950781a50d78bae2b93944144694843359948ad3afc72a5  linux-6.12.50.tar.xz
configs/beagleboneai_defconfig +3 -3
index 5d269a1825..bf6d73a525 100644
@@ -1,6 +1,6 @@
 BR2_arm=y
 BR2_cortex_a15=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
 BR2_GLOBAL_PATCH_DIR="board/beagleboard/beagleboneai/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_SYSTEM_DHCP="eth0"
@@ -9,10 +9,10 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboard/beagleboneai/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.217"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.50"
 BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/omap/am5729-beagleboneai"
 BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 2/2] configs/beagleboneai: move to Linux 6.12.50

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Perale <[email protected]> writes:

In reply of:

Quoted 4 lines

And adjust the dtb path to the new subdir after commit 724ba6751532 ("ARM:
dts: Move .dts files to vendor sub-directories") in v6.5.

Applied to 2025.02.x, 2025.05.x & 2025.08.x. Thanks

Again, not really needed for these branches.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Peter Korsgaard
Quoted 12 lines · Peter Korsgaard

With the change to default to gcc 14.x with commit 1e1fafa1f0f5 ("package/gcc: switch to GCC 14.x as the default"), the old u-boot version no longer builds:

board/ti/am57xx/board.c:948:17: error: implicit declaration of function 'do_cape_detect'; did you mean 'do_board_detect'? [-Wimplicit-function-declaration]

https://gitlab.com/buildroot.org/buildroot/-/jobs/11570241744

So move to u-boot 2025.04 to fix that. We still need a small patch as (early) beagleboneai boards do not have the EEPROM (or eMMC partition) populated, so include the bb.org patch from

Quoted 6 lines

https://github.com/beagleboard/u-boot/commit/0b161f8e89a411fe54059cf1d0ba61354ee1e8a2

The new u-boot version needs both openssl and gnutls on the host, so enable them.

Series applied to master, thanks.

For info, I fixed a check-package error by removing the stale entry in .checkpackageingore file. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/7ec419fb9c07292dc28b87ccb0ed35b00437dd16

Also, if you still have your board available for testing, I suggest the following maintenance followup patches:

Could you fix the shellcheck warnings in:
board/beagleboard/beagleboneai/post-build.sh
and remove the .checkpackageignore entry

Could you also switch this beagleboneai_defconfig to use a bootlin external glibc stable toolchain please?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Julien" == Julien Olivain <[email protected]> writes:

Series applied to master, thanks.

For info, I fixed a check-package error by removing the stale entry in .checkpackageingore file. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/7ec419fb9c07292dc28b87ccb0ed35b00437dd16

Ups, thanks.

Quoted 9 lines

Also, if you still have your board available for testing, I suggest the following maintenance followup patches:

Could you fix the shellcheck warnings in:
board/beagleboard/beagleboneai/post-build.sh
and remove the .checkpackageignore entry

Could you also switch this beagleboneai_defconfig to use a bootlin external glibc stable toolchain please?

Sure, I'll do a quick test and send a series.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot