Skip to contentSkip to conversation

boot/arm-trusted-firmware: version bump and source update

PATCH Superseded Bryan Brattlof via buildroot 1 participant 6 messages Jul 22, 2024 – Aug 4, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover boot/arm-trusted-firmware: version bump and source update

Hello everyone,

When trying to bump the versions for arm-trusted-firmware I noticed we're using the old mirror which hasn't received any new tags in a while. So this changes ARM_TRUSTED_FIRMWARE_SITE to point to the new TrustedFirmware-A[0] organization and updates all the hashes I could see

I did notice the lts-v2.10.x branch however I didn't add it as I didn't see anyone using it. (The boards using TI's K3 SoCs will be going to v2.11 in another patch series)

Happy reviewing
~Bryan

[0] https://github.com/TrustedFirmware-A

---
Bryan Brattlof (3):
boot/arm-trusted-firmware: update source to the new mirror boot/arm-trusted-firmware: bump to v2.11 boot/arm-trusted-firmware: bump latest v2.8 version

 .../fvp-ebbr/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 board/qemu/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash          | 2 +-
 .../am62x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../am64x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 boot/arm-trusted-firmware/Config.in                                 | 6 +++---
 boot/arm-trusted-firmware/arm-trusted-firmware.hash                 | 4 ++--
 boot/arm-trusted-firmware/arm-trusted-firmware.mk                   | 2 +-
 .../0001-build-tools-avoid-unnecessary-link.patch                   | 0
 14 files changed, 16 insertions(+), 16 deletions(-)

---
base-commit: 4e4554eeb76e8b516c6cbcd66f15868492aac594
change-id: 20240623-tfa-src-update-8de4cdf5ceed

Best regards,

Signature · 6 lines
Bryan Brattlof <[email protected]>

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

PATCH 1/3 boot/arm-trusted-firmware: update source to the new mirror

Tags are no longer being pused to the old ARM-softwre mirror. Let's move to the new mirror at TrustedFirmware-A which continues to publish newer tags

---
 .../fvp-ebbr/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../beagleplay/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 board/qemu/patches/arm-trusted-firmware/arm-trusted-firmware.hash     | 2 +-
 .../stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../am62ax-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash  | 2 +-
 .../am62x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../am64x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 boot/arm-trusted-firmware/arm-trusted-firmware.hash                   | 4 ++--
 boot/arm-trusted-firmware/arm-trusted-firmware.mk                     | 2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)
board/arm/fvp-ebbr/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 02714d06a09c0..c056d6ad0ddc8 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  2e18b881ada9198173238cca80086c787b1fa3f698944bde1743142823fc511c  arm-trusted-firmware-v2.10.tar.gz
+sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
board/beagleboard/beagleboneai64/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 02714d06a09c0..c056d6ad0ddc8 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  2e18b881ada9198173238cca80086c787b1fa3f698944bde1743142823fc511c  arm-trusted-firmware-v2.10.tar.gz
+sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
board/beagleboard/beagleplay/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 02714d06a09c0..c056d6ad0ddc8 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  2e18b881ada9198173238cca80086c787b1fa3f698944bde1743142823fc511c  arm-trusted-firmware-v2.10.tar.gz
+sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
board/bsh/common/imx8mn-bsh-smm-s2/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 80e592dab6065..6dcfb66431f22 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  fc4cdac7c08fc398b6d4b705285dc13ac2d2b30a7449c6f07e9ccd81207241df  arm-trusted-firmware-v2.5.tar.gz
+sha256  ad8a2ffcbcd12d919723da07630fc0840c3c2fba7656d1462e45488e42995d7c  arm-trusted-firmware-v2.5.tar.gz
board/orangepi/orangepi-zero2w/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index c9d043c46f129..2f00eec47ccd3 100644
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256  2e18b881ada9198173238cca80086c787b1fa3f698944bde1743142823fc511c  arm-trusted-firmware-v2.10.tar.gz
+sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
board/qemu/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 74fe35c9bc733..5f8b9fa4419cd 100644
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256  327c65b1bc231608a7a808b068b00c1a22310e9fc86158813cd10a9711d5725e  arm-trusted-firmware-v2.7.tar.gz
+sha256  53422dc649153838e03820330ba17cb10afe3e330ecde0db11e4d5f1361a33e6  arm-trusted-firmware-v2.7.tar.gz
board/stmicroelectronics/common/stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 8b69a5a96453b..5a4e619135aa2 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  06d32acf42808b682859008292f0591d2d872f19aa1a8021bfcd1c1c626285e6  arm-trusted-firmware-v2.9.tar.gz
+sha256  76a66a1de0c01aeb83dfc7b72b51173fe62c6e51d6fca17cc562393117bed08b  arm-trusted-firmware-v2.9.tar.gz
board/ti/am62ax-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 8f60864fbf67f..ded5f952cd3d7 100644
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256  ba215404fe9db26e5f2cef3fdce17b7c8ed344a2a1d592dd01a5f1c5e72cfdbd  arm-trusted-firmware-lts-v2.10.4.tar.gz
+sha256  05f08e6728474e7af3cca3c0d6f6d065e5b2622aabaca942d57377a46d4ae0ab  arm-trusted-firmware-lts-v2.10.4.tar.gz
board/ti/am62x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 7494e04ead5d0..b7927be6e85b9 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  ba215404fe9db26e5f2cef3fdce17b7c8ed344a2a1d592dd01a5f1c5e72cfdbd  arm-trusted-firmware-lts-v2.10.4.tar.gz
+sha256  05f08e6728474e7af3cca3c0d6f6d065e5b2622aabaca942d57377a46d4ae0ab  arm-trusted-firmware-lts-v2.10.4.tar.gz
board/ti/am64x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 7494e04ead5d0..b7927be6e85b9 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256  ba215404fe9db26e5f2cef3fdce17b7c8ed344a2a1d592dd01a5f1c5e72cfdbd  arm-trusted-firmware-lts-v2.10.4.tar.gz
+sha256  05f08e6728474e7af3cca3c0d6f6d065e5b2622aabaca942d57377a46d4ae0ab  arm-trusted-firmware-lts-v2.10.4.tar.gz
boot/arm-trusted-firmware/arm-trusted-firmware.hash +2 -2
index 73ab431b9fc97..2c541674bf54b 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  2e18b881ada9198173238cca80086c787b1fa3f698944bde1743142823fc511c  arm-trusted-firmware-v2.10.tar.gz
-sha256  e55ae7105c996b60f748b2eb6adeaf5ac8946425e1d4294ecc1c56aebf435274  arm-trusted-firmware-lts-v2.8.13.tar.gz
+sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
+sha256  24b530f15cd714fa82cd8b80fbde0c18b8b8ea33778104532185ad67cb364bf9  arm-trusted-firmware-lts-v2.8.13.tar.gz
 sha256  130d0c6e5159fa454b1e969fd281fa1d388819aefb203f65dd282544b5ab7ba9  docs/license.rst
boot/arm-trusted-firmware/arm-trusted-firmware.mk +1 -1
index abf917948eeee..d13998ce091c2 100644
@@ -16,7 +16,7 @@ ARM_TRUSTED_FIRMWARE_SITE = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUST
 ARM_TRUSTED_FIRMWARE_SITE_METHOD = git
 else
 # Handle stable official ATF versions
-ARM_TRUSTED_FIRMWARE_SITE = $(call github,ARM-software,arm-trusted-firmware,$(ARM_TRUSTED_FIRMWARE_VERSION))
+ARM_TRUSTED_FIRMWARE_SITE = $(call github,TrustedFirmware-A,trusted-firmware-a,$(ARM_TRUSTED_FIRMWARE_VERSION))
 # The licensing of custom or from-git versions is unknown.
 # This is valid only for the latest (i.e. known) version.
 ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION),y)
Signature · 6 lines
2.45.2

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

Re: [Buildroot] [PATCH 1/3] boot/arm-trusted-firmware: update source to the new mirror

Hello Bryan,

Quoted 5 lines · On Mon, 22 Jul 2024 14:17:37 -0500 Bryan Brattlof via buildroot…

Tags are no longer being pused to the old ARM-softwre mirror. Let's move to the new mirror at TrustedFirmware-A which continues to publish newer tags

Quoted 14 lines
---
 .../fvp-ebbr/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../beagleplay/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 board/qemu/patches/arm-trusted-firmware/arm-trusted-firmware.hash     | 2 +-
 .../stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../am62ax-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash  | 2 +-
 .../am62x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../am64x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 boot/arm-trusted-firmware/arm-trusted-firmware.hash                   | 4 ++--
 boot/arm-trusted-firmware/arm-trusted-firmware.mk                     | 2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)

I have applied locally, but not yet pushed. My concern is that it's really annoying that it breaks hashes for all previous versions of TF-A. This means that all people having existing defconfigs (not the one in Buildroot) that use BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE will see their build fail now. And even for those using the defconfigs in Buildroot, they will see a hash mismatch message and a redownload.

But I don't really see any other way around that. The issue is basically that we are not fetching real tarballs, but auto-generated ones, which are different when fetched from one repo or another.

Should we instead switch to fetching via Git all the time? Should we switch to using the official Git repo, instead of a Github mirror?

As you can see, I am not 100% sure about this change, even though we obviously need to change something to be able to use the newer versions of TF-A...

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 1/3] boot/arm-trusted-firmware: update source to the new mirror

Hi Thomas

On August 3, 2024 thus sayeth Thomas Petazzoni:

Quoted 38 lines

Hello Bryan,

Quoted 5 lines · On Mon, 22 Jul 2024 14:17:37 -0500 Bryan Brattlof via buildroot…

Tags are no longer being pused to the old ARM-softwre mirror. Let's move to the new mirror at TrustedFirmware-A which continues to publish newer tags

Quoted 15 lines
---
 .../fvp-ebbr/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../beagleplay/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash            | 2 +-
 board/qemu/patches/arm-trusted-firmware/arm-trusted-firmware.hash     | 2 +-
 .../stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 .../am62ax-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash  
 | 2 +-
 .../am62x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 .../am64x-sk/patches/arm-trusted-firmware/arm-trusted-firmware.hash   | 2 +-
 boot/arm-trusted-firmware/arm-trusted-firmware.hash                   | 4 ++--
 boot/arm-trusted-firmware/arm-trusted-firmware.mk                     | 2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)

I have applied locally, but not yet pushed. My concern is that it's really annoying that it breaks hashes for all previous versions of TF-A. This means that all people having existing defconfigs (not the one in Buildroot) that use BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE will see their build fail now. And even for those using the defconfigs in Buildroot, they will see a hash mismatch message and a redownload.

But I don't really see any other way around that. The issue is basically that we are not fetching real tarballs, but auto-generated ones, which are different when fetched from one repo or another.

Quoted 7 lines

Should we instead switch to fetching via Git all the time? Should we switch to using the official Git repo, instead of a Github mirror?

As you can see, I am not 100% sure about this change, even though we obviously need to change something to be able to use the newer versions of TF-A...

Ah I agree completely. I saw we originally used the mirror and assumed we did that for bandwidth reasons. I can update this to use the trustedfirmware.org source.

Thanks for the review
~Bryan
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

PATCH 2/3 boot/arm-trusted-firmware: bump to v2.11

In reply to Bryan Brattlof via buildroot

On May 23rd the v2.11 tag was published. Bump to this latest version

---
 boot/arm-trusted-firmware/Config.in                 | 4 ++--
 boot/arm-trusted-firmware/arm-trusted-firmware.hash | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
boot/arm-trusted-firmware/Config.in +2 -2
index 2fe3dd1146ed9..60ecf419bc348 100644
@@ -14,7 +14,7 @@ choice
 	  Select the specific ATF version you want to use
 
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
-	bool "v2.10"
+	bool "v2.11"
 
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
 	bool "latest lts-v2.8.x"
@@ -47,7 +47,7 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE
 
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION
 	string
-	default "v2.10"		if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
+	default "v2.11"		if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
 	default "lts-v2.8.13"	if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
 	default "custom"	if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
 	default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION \
boot/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index 2c541674bf54b..a09a7e1945a79 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201  arm-trusted-firmware-v2.10.tar.gz
+sha256  a362d89884a96ad1815fda64db17776ac1b10e5398940a28c37fdeda2c62e6f5  arm-trusted-firmware-v2.11.tar.gz
 sha256  24b530f15cd714fa82cd8b80fbde0c18b8b8ea33778104532185ad67cb364bf9  arm-trusted-firmware-lts-v2.8.13.tar.gz
 sha256  130d0c6e5159fa454b1e969fd281fa1d388819aefb203f65dd282544b5ab7ba9  docs/license.rst
Signature · 6 lines
2.45.2

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

PATCH 3/3 boot/arm-trusted-firmware: bump latest v2.8 version

In reply to Bryan Brattlof via buildroot

The lts-v2.8.20 tag was published on June 28th. Bump arm-trusted-firmware to this latest release.

---
 boot/arm-trusted-firmware/Config.in                                     | 2 +-
 boot/arm-trusted-firmware/arm-trusted-firmware.hash                     | 2 +-
 .../0001-build-tools-avoid-unnecessary-link.patch                       | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
boot/arm-trusted-firmware/Config.in +1 -1
index 60ecf419bc348..870db48c80b07 100644
@@ -48,7 +48,7 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION
 	string
 	default "v2.11"		if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION
-	default "lts-v2.8.13"	if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
+	default "lts-v2.8.20"	if BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION
 	default "custom"	if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL
 	default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION \
 				if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT
boot/arm-trusted-firmware/arm-trusted-firmware.hash +1 -1
index a09a7e1945a79..d5b954e4f1e5b 100644
@@ -1,4 +1,4 @@
 # Locally calculated
 sha256  a362d89884a96ad1815fda64db17776ac1b10e5398940a28c37fdeda2c62e6f5  arm-trusted-firmware-v2.11.tar.gz
-sha256  24b530f15cd714fa82cd8b80fbde0c18b8b8ea33778104532185ad67cb364bf9  arm-trusted-firmware-lts-v2.8.13.tar.gz
+sha256  a8d82dde1efc3de3c2752e15318e0445418019fc20a1208064f98edc7288fd5d  arm-trusted-firmware-lts-v2.8.20.tar.gz
 sha256  130d0c6e5159fa454b1e969fd281fa1d388819aefb203f65dd282544b5ab7ba9  docs/license.rst
boot/arm-trusted-firmware/lts-v2.8.20/0001-build-tools-avoid-unnecessary-link.patch renamed from boot/arm-trusted-firmware/lts-v2.8.13/0001-build-tools-avoid-unnecessary-link.patch +0 -0
similarity index 100%
rename from boot/arm-trusted-firmware/lts-v2.8.13/0001-build-tools-avoid-unnecessary-link.patch
rename to boot/arm-trusted-firmware/lts-v2.8.20/0001-build-tools-avoid-unnecessary-link.patch
Signature · 6 lines
2.45.2

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