Skip to contentSkip to conversation

Add support for AM62x-SK HS-FS devices

PATCH Superseded Dario Binacchi 2 participants 21 messages Dec 18, 2023 – Feb 13, 2024

v3 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add support for AM62x-SK HS-FS devices

The SK-AM62B-P1 is the newest version of SK-AM62 which includes high-security field-securable (HS-FS) silicon to optionally customize keys and encryption for security applications.
This requires enabling the BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS option, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device.

Dario Binacchi (11):
boot/ti-k3-core-secdev: new package boot/ti-k3-image-gen: manage HS hardware package/python-jsonschema: add host variant package/python-attrs: add host variant package/python-referencing: add host variant package/python-rpds-py: add host variant package/python-jsonschema-specifications: add host variant boot/ti-k3-r5-loader: set binman environment boot/uboot: set BINMAN_INDIRS for TI K3 DM configs/ti_am62x_sk_defconfig: bump U-Boot version to 2023.10 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.1

 DEVELOPERS                                    |  1 +
 board/ti/am62x-sk/genimage.cfg                |  7 ++-
 board/ti/am62x-sk/post-build.sh               | 49 +++++++++++++++++++
 board/ti/am62x-sk/post-image.sh               |  5 ++
 boot/Config.in                                |  1 +
 boot/ti-k3-core-secdev/Config.in              |  9 ++++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash |  3 ++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk   | 19 +++++++
 boot/ti-k3-image-gen/Config.in                |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk       | 16 +++++-
 boot/ti-k3-r5-loader/Config.in                | 13 +++++
 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk       | 15 ++++++
 boot/uboot/uboot.mk                           |  3 +-
 configs/ti_am62x_sk_defconfig                 | 14 ++++--
 package/python-attrs/python-attrs.mk          |  6 +++
 .../python-jsonschema-specifications.mk       |  5 ++
 .../python-jsonschema/python-jsonschema.mk    |  6 +++
 .../python-referencing/python-referencing.mk  |  7 +++
 package/python-rpds-py/python-rpds-py.mk      |  1 +
 19 files changed, 173 insertions(+), 8 deletions(-)
 create mode 100755 board/ti/am62x-sk/post-build.sh
 create mode 100755 board/ti/am62x-sk/post-image.sh
 create mode 100644 boot/ti-k3-core-secdev/Config.in
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk
Signature · 6 lines
2.43.0

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

PATCH v3 1/11 boot/ti-k3-core-secdev: new package

This is a security development package containing tools for High-Security(HS) TI K3 platform devices.

---
 DEVELOPERS                                    |  1 +
 boot/Config.in                                |  1 +
 boot/ti-k3-core-secdev/Config.in              |  9 +++++++++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash |  3 +++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk   | 19 +++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 boot/ti-k3-core-secdev/Config.in
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk
DEVELOPERS +1 -0
index 311dcd950481..60a95434c70f 100644
@@ -754,6 +754,7 @@ F:	package/xinetd/
 N:	Dario Binacchi <[email protected]>
 F:	board/bsh/
 F:	board/stmicroelectronics/stm32f769-disco/
+F:	boot/ti-k3-core-secdev/
 F:	configs/imx8mn_bsh_smm_s2_defconfig
 F:	configs/imx8mn_bsh_smm_s2_pro_defconfig
 F:	configs/stm32f769_disco_sd_defconfig
boot/Config.in +1 -0
index e5fdf7ad439e..18a7d268f95a 100644
@@ -20,6 +20,7 @@ source "boot/s500-bootloader/Config.in"
 source "boot/shim/Config.in"
 source "boot/syslinux/Config.in"
 source "boot/ti-k3-boot-firmware/Config.in"
+source "boot/ti-k3-core-secdev/Config.in"
 source "boot/ti-k3-image-gen/Config.in"
 source "boot/ti-k3-r5-loader/Config.in"
 source "boot/uboot/Config.in"
boot/ti-k3-core-secdev/Config.in new file +9 -0
new file mode 100644
index 000000000000..1749b7ab5fd9
@@ -0,0 +1,9 @@
+config BR2_TARGET_TI_K3_CORE_SECDEV
+	bool "ti-k3-core-secdev"
+	depends on BR2_aarch64
+	help
+	  This package downloads and installs development tools for
+	  High-Security(HS) TI K3 platforms (which include AM62x,
+	  AM64x, AM65x and more).
+
+	  https://git.ti.com/cgit/security-development-tools/core-secdev-k3/
boot/ti-k3-core-secdev/ti-k3-core-secdev.hash new file +3 -0
new file mode 100644
index 000000000000..0460cff6c59f
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  b6d3bca0d561d055c6869c5564b06f2fb1b9f67e4ef180c2baf8a14a6a6afa06  core-secdev-k3-08.06.00.007.tar.xz
+sha256  3e5cf4f5ab9f0333f46cd68fabede3f21e55de1a9e3c6ad673f241f4514d8369  k3-secdev-0.2-manifest.html
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +19 -0
new file mode 100644
index 000000000000..0127e6503d4d
@@ -0,0 +1,19 @@
+################################################################################
+#
+# ti-k3-core-secdev
+#
+################################################################################
+
+TI_K3_CORE_SECDEV_VERSION = 08.06.00.007
+TI_K3_CORE_SECDEV_SITE = https://git.ti.com/cgit/security-development-tools/core-secdev-k3/snapshot
+TI_K3_CORE_SECDEV_SOURCE = core-secdev-k3-$(TI_K3_CORE_SECDEV_VERSION).tar.xz
+TI_K3_CORE_SECDEV_INSTALL_IMAGES = YES
+TI_K3_CORE_SECDEV_LICENSE = TI Text File, Apache-2.0
+TI_K3_CORE_SECDEV_LICENSE_FILES = k3-secdev-0.2-manifest.html
+
+define TI_K3_CORE_SECDEV_INSTALL_IMAGES_CMDS
+	cp -dpfr $(@D)/keys $(BINARIES_DIR)/
+	cp -dpfr $(@D)/scripts $(BINARIES_DIR)/
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 01/11] boot/ti-k3-core-secdev: new package

Hello Dario, All,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 45 lines

This is a security development package containing tools for High-Security(HS) TI K3 platform devices.

---
 DEVELOPERS                                    |  1 +
 boot/Config.in                                |  1 +
 boot/ti-k3-core-secdev/Config.in              |  9 +++++++++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash |  3 +++
 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk   | 19 +++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 boot/ti-k3-core-secdev/Config.in
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.hash
 create mode 100644 boot/ti-k3-core-secdev/ti-k3-core-secdev.mk
DEVELOPERS +1 -0
index 311dcd950481..60a95434c70f 100644
@@ -754,6 +754,7 @@ F:	package/xinetd/
 N:	Dario Binacchi <[email protected]>
 F:	board/bsh/
 F:	board/stmicroelectronics/stm32f769-disco/
+F:	boot/ti-k3-core-secdev/
 F:	configs/imx8mn_bsh_smm_s2_defconfig
 F:	configs/imx8mn_bsh_smm_s2_pro_defconfig
 F:	configs/stm32f769_disco_sd_defconfig
boot/Config.in +1 -0
index e5fdf7ad439e..18a7d268f95a 100644
@@ -20,6 +20,7 @@ source "boot/s500-bootloader/Config.in"
 source "boot/shim/Config.in"
 source "boot/syslinux/Config.in"
 source "boot/ti-k3-boot-firmware/Config.in"
+source "boot/ti-k3-core-secdev/Config.in"
 source "boot/ti-k3-image-gen/Config.in"
 source "boot/ti-k3-r5-loader/Config.in"
 source "boot/uboot/Config.in"
boot/ti-k3-core-secdev/Config.in new file +0 -0
new file mode 100644
index 000000000000..1749b7ab5fd9

boot/ti-k3-core-secdev/Config.in line 9

Quoted 9 lines
boot/ti-k3-core-secdev/Config.in new file +9 -0
@@ -0,0 +1,9 @@
+config BR2_TARGET_TI_K3_CORE_SECDEV
+	bool "ti-k3-core-secdev"
+	depends on BR2_aarch64
+	help
+	  This package downloads and installs development tools for
+	  High-Security(HS) TI K3 platforms (which include AM62x,
+	  AM64x, AM65x and more).
+
+	  https://git.ti.com/cgit/security-development-tools/core-secdev-k3/

Remove the trailing '/' at the end of the url.

Quoted 16 lines
boot/ti-k3-core-secdev/ti-k3-core-secdev.hash new file +3 -0
new file mode 100644
index 000000000000..0460cff6c59f
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  b6d3bca0d561d055c6869c5564b06f2fb1b9f67e4ef180c2baf8a14a6a6afa06  core-secdev-k3-08.06.00.007.tar.xz
+sha256  3e5cf4f5ab9f0333f46cd68fabede3f21e55de1a9e3c6ad673f241f4514d8369  k3-secdev-0.2-manifest.html
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +1 -0
new file mode 100644
index 000000000000..0127e6503d4d
@@ -0,0 +1,19 @@
+################################################################################

boot/ti-k3-core-secdev/ti-k3-core-secdev.mk line 11

Quoted 10 lines
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +10 -0
+#
+# ti-k3-core-secdev
+#
+################################################################################
+
+TI_K3_CORE_SECDEV_VERSION = 08.06.00.007
+TI_K3_CORE_SECDEV_SITE = https://git.ti.com/cgit/security-development-tools/core-secdev-k3/snapshot
+TI_K3_CORE_SECDEV_SOURCE = core-secdev-k3-$(TI_K3_CORE_SECDEV_VERSION).tar.xz
+TI_K3_CORE_SECDEV_INSTALL_IMAGES = YES
+TI_K3_CORE_SECDEV_LICENSE = TI Text File, Apache-2.0

What's the meaning of "TI Text File"?

meta-ti's ti-k3-secdev package use BSD-3-Clause as license:

https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb?h=kirkstone#n4

Can you verify the license?

boot/ti-k3-core-secdev/ti-k3-core-secdev.mk line 12

Quoted 1 line
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +1 -0
+TI_K3_CORE_SECDEV_LICENSE_FILES = k3-secdev-0.2-manifest.html

legal-info doesn't work since this file is under "manifest" directory.

boot/ti-k3-core-secdev/ti-k3-core-secdev.mk line 17

Quoted 5 lines
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +5 -0
+
+define TI_K3_CORE_SECDEV_INSTALL_IMAGES_CMDS
+	cp -dpfr $(@D)/keys $(BINARIES_DIR)/
+	cp -dpfr $(@D)/scripts $(BINARIES_DIR)/
+endef

I would suggest to create a sub-directory under $(BINARIES_DIR) to avoid any file conflict.

Best regards,
Romain

boot/ti-k3-core-secdev/ti-k3-core-secdev.mk line 19

Quoted 2 lines
boot/ti-k3-core-secdev/ti-k3-core-secdev.mk new file +2 -0
+
+$(eval $(generic-package))

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

#3 lore raw

PATCH v3 2/11 boot/ti-k3-image-gen: manage HS hardware

In reply to Dario Binacchi

The patch sets the configurations required by TI HS systems. Some of these configurations (i. e. HS SYSFW image signing key, HS Software Revision) are provided by the ti-k3-core-secdev package in the binaries directory.

---
 boot/ti-k3-image-gen/Config.in          |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
boot/ti-k3-image-gen/Config.in +1 -0
index d76cef82e911..38d1598d9fc0 100644
@@ -2,6 +2,7 @@ config BR2_TARGET_TI_K3_IMAGE_GEN
 	bool "ti-k3-image-gen"
 	depends on BR2_TARGET_TI_K3_R5_LOADER
 	select BR2_TARGET_TI_K3_BOOT_FIRMWARE
+	select BR2_TARGET_TI_K3_CORE_SECDEV if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS || BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS
 	# We need FIT support in uboot-tools, which is why we select a
 	# host package
 	select BR2_PACKAGE_HOST_UBOOT_TOOLS
boot/ti-k3-image-gen/ti-k3-image-gen.mk +14 -2
index 64be9a18f2c4..91aed63bab84 100644
@@ -29,10 +29,21 @@ TI_K3_IMAGE_GEN_FW_TYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE))
 TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC))
 TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE))
 
-TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+ifeq ($(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP),y)
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+else
+TI_K3_IMAGE_GEN_DEPENDENCIES += ti-k3-core-secdev
+
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-enc.bin \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-cert.bin
+endif
 
 define TI_K3_IMAGE_GEN_CONFIGURE_CMDS
-	cp $(BINARIES_DIR)/ti-sysfw/$(TI_K3_IMAGE_GEN_SYSFW) $(@D)
+	$(foreach t,$(TI_K3_IMAGE_GEN_SYSFW),\
+		cp $(BINARIES_DIR)/ti-sysfw/$(t) $(@D)/
+	)
 endef
 
 define TI_K3_IMAGE_GEN_BUILD_CMDS
@@ -40,6 +51,7 @@ define TI_K3_IMAGE_GEN_BUILD_CMDS
 	$(BR2_MAKE) -C $(@D) \
 		SOC=$(TI_K3_IMAGE_GEN_SOC) \
 		SOC_TYPE=$(TI_K3_IMAGE_GEN_SECTYPE) \
+		TI_SECURE_DEV_PKG=$(BINARIES_DIR) \
 		CONFIG=evm \
 		CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 		SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 02/11] boot/ti-k3-image-gen: manage HS hardware

Hello Dario,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 3 lines

The patch sets the configurations required by TI HS systems. Some of these configurations (i. e. HS SYSFW image signing key, HS Software Revision) are provided by the ti-k3-core-secdev package in the binaries directory.

AFAIK the ti-k3-image-gen tool is deprecated and must be replaced by binman tool provided by upstream u-boot.

Is all k3 SoC migrated to binman in the latest u-boot release 2024.01?

See the FOSDEM talk:

https://fosdem.org/2024/events/attachments/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/slides/21919/FOSDEM24_Speaker_Slides_y7FsIKM.pdf

Best regards,
Romain

Quoted 48 lines
---
 boot/ti-k3-image-gen/Config.in          |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
boot/ti-k3-image-gen/Config.in +1 -0
index d76cef82e911..38d1598d9fc0 100644
@@ -2,6 +2,7 @@ config BR2_TARGET_TI_K3_IMAGE_GEN
 	bool "ti-k3-image-gen"
 	depends on BR2_TARGET_TI_K3_R5_LOADER
 	select BR2_TARGET_TI_K3_BOOT_FIRMWARE
+	select BR2_TARGET_TI_K3_CORE_SECDEV if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS || BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS
 	# We need FIT support in uboot-tools, which is why we select a
 	# host package
 	select BR2_PACKAGE_HOST_UBOOT_TOOLS
boot/ti-k3-image-gen/ti-k3-image-gen.mk +13 -2
index 64be9a18f2c4..91aed63bab84 100644
@@ -29,10 +29,21 @@ TI_K3_IMAGE_GEN_FW_TYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE))
 TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC))
 TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE))
 
-TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+ifeq ($(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP),y)
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+else
+TI_K3_IMAGE_GEN_DEPENDENCIES += ti-k3-core-secdev
+
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-enc.bin \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-cert.bin
+endif
 
 define TI_K3_IMAGE_GEN_CONFIGURE_CMDS
-	cp $(BINARIES_DIR)/ti-sysfw/$(TI_K3_IMAGE_GEN_SYSFW) $(@D)
+	$(foreach t,$(TI_K3_IMAGE_GEN_SYSFW),\
+		cp $(BINARIES_DIR)/ti-sysfw/$(t) $(@D)/
+	)
 endef
 
 define TI_K3_IMAGE_GEN_BUILD_CMDS

boot/ti-k3-image-gen/ti-k3-image-gen.mk define TI_K3_IMAGE_GEN_BUILD_CMDS · line 57

Quoted 7 lines
boot/ti-k3-image-gen/ti-k3-image-gen.mk +1 -0
@@ -40,6 +51,7 @@ define TI_K3_IMAGE_GEN_BUILD_CMDS
 	$(BR2_MAKE) -C $(@D) \
 		SOC=$(TI_K3_IMAGE_GEN_SOC) \
 		SOC_TYPE=$(TI_K3_IMAGE_GEN_SECTYPE) \
+		TI_SECURE_DEV_PKG=$(BINARIES_DIR) \
 		CONFIG=evm \
 		CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 		SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \

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

#5 lore raw

Re: [Buildroot] [PATCH v3 02/11] boot/ti-k3-image-gen: manage HS hardware

Hello Dario, All,

Le 06/02/2024 à 18:50, Romain Naour a écrit :

Quoted 27 lines

Hello Dario,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 3 lines

The patch sets the configurations required by TI HS systems. Some of these configurations (i. e. HS SYSFW image signing key, HS Software Revision) are provided by the ti-k3-core-secdev package in the binaries directory.

AFAIK the ti-k3-image-gen tool is deprecated and must be replaced by binman tool provided by upstream u-boot.

Is all k3 SoC migrated to binman in the latest u-boot release 2024.01?

See the FOSDEM talk:

https://fosdem.org/2024/events/attachments/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/slides/21919/FOSDEM24_Speaker_Slides_y7FsIKM.pdf

Best regards,
Romain

Quoted 7 lines
---
 boot/ti-k3-image-gen/Config.in          |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
Quoted 9 lines

boot/ti-k3-image-gen/Config.in config BR2_TARGET_TI_K3_IMAGE_GEN · line 5

Quoted 9 lines
boot/ti-k3-image-gen/Config.in +1 -0
index d76cef82e911..38d1598d9fc0 100644
@@ -2,6 +2,7 @@ config BR2_TARGET_TI_K3_IMAGE_GEN
 	bool "ti-k3-image-gen"
 	depends on BR2_TARGET_TI_K3_R5_LOADER
 	select BR2_TARGET_TI_K3_BOOT_FIRMWARE
+	select BR2_TARGET_TI_K3_CORE_SECDEV if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS || BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS

Does it means that currently TI HS configuration are missing the ti-k3-core-secdev tool to build properly?

It seems this patch should fixes them.

Best regards,
Romain

Quoted 30 lines
Quoted 30 lines
boot/ti-k3-image-gen/Config.in +0 -0
 	# We need FIT support in uboot-tools, which is why we select a
 	# host package
 	select BR2_PACKAGE_HOST_UBOOT_TOOLS
boot/ti-k3-image-gen/ti-k3-image-gen.mk +13 -2
index 64be9a18f2c4..91aed63bab84 100644
@@ -29,10 +29,21 @@ TI_K3_IMAGE_GEN_FW_TYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE))
 TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC))
 TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE))
 
-TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+ifeq ($(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP),y)
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+else
+TI_K3_IMAGE_GEN_DEPENDENCIES += ti-k3-core-secdev
+
+TI_K3_IMAGE_GEN_SYSFW = \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-enc.bin \
+	$(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-cert.bin
+endif
 
 define TI_K3_IMAGE_GEN_CONFIGURE_CMDS
-	cp $(BINARIES_DIR)/ti-sysfw/$(TI_K3_IMAGE_GEN_SYSFW) $(@D)
+	$(foreach t,$(TI_K3_IMAGE_GEN_SYSFW),\
+		cp $(BINARIES_DIR)/ti-sysfw/$(t) $(@D)/
+	)
 endef
 
Quoted 10 lines

boot/ti-k3-image-gen/ti-k3-image-gen.mk define TI_K3_IMAGE_GEN_BUILD_CMDS · line 57

Quoted 9 lines
boot/ti-k3-image-gen/ti-k3-image-gen.mk +1 -0
 define TI_K3_IMAGE_GEN_BUILD_CMDS
@@ -40,6 +51,7 @@ define TI_K3_IMAGE_GEN_BUILD_CMDS
 	$(BR2_MAKE) -C $(@D) \
 		SOC=$(TI_K3_IMAGE_GEN_SOC) \
 		SOC_TYPE=$(TI_K3_IMAGE_GEN_SECTYPE) \
+		TI_SECURE_DEV_PKG=$(BINARIES_DIR) \
 		CONFIG=evm \
 		CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 		SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \

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

#6 lore raw

Re: [Buildroot] [PATCH v3 02/11] boot/ti-k3-image-gen: manage HS hardware

Hi Romain, All

Quoted 31 lines · Romain Naour

Hello Dario, All,

Quoted 27 lines · Romain Naour

Hello Dario,

Quoted 3 lines · Dario Binacchi

The patch sets the configurations required by TI HS systems. Some of these configurations (i. e. HS SYSFW image signing key, HS Software Revision) are provided by the ti-k3-core-secdev package in the binaries directory.

AFAIK the ti-k3-image-gen tool is deprecated and must be replaced by binman tool provided by upstream u-boot.

Is all k3 SoC migrated to binman in the latest u-boot release 2024.01?

See the FOSDEM talk:

https://fosdem.org/2024/events/attachments/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/slides/21919/FOSDEM24_Speaker_Slides_y7FsIKM.pdf

Best regards,
Romain

Quoted 7 lines
---
 boot/ti-k3-image-gen/Config.in          |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
Quoted 12 lines
Quoted 9 lines

boot/ti-k3-image-gen/Config.in config BR2_TARGET_TI_K3_IMAGE_GEN · line 5

Quoted 9 lines
boot/ti-k3-image-gen/Config.in +1 -0
index d76cef82e911..38d1598d9fc0 100644
@@ -2,6 +2,7 @@ config BR2_TARGET_TI_K3_IMAGE_GEN
     bool "ti-k3-image-gen"
     depends on BR2_TARGET_TI_K3_R5_LOADER
     select BR2_TARGET_TI_K3_BOOT_FIRMWARE
+    select BR2_TARGET_TI_K3_CORE_SECDEV if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS || BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS

Does it means that currently TI HS configuration are missing the ti-k3-core-secdev tool to build properly?

Yes, you are right. Currently, the compilation with BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS enabled is broken:

./tools/k3_gen_x509_cert.sh -c 16 -b spl/u-boot-spl.bin \
-o tiboot3.bin -l 0x43c00000 -r 1 -k ""
SWRV = 1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ti-k3-r5-loader 2022.10 Installing to target ti-k3-r5-loader 2022.10 Installing to images directory

cp /home/dario/projects/buildroot/output/build/ti-k3-r5-loader-2022.10/spl/u-boot-spl.bin /home/dario/projects/buildroot/output/images/r5-u-boot-spl.bin k3-image-gen-08.06.00.007.tar.gz: OK (sha256:
f89ea4b1f5c992455b1a682fde48359221b53f3294135df4bf20feea6aea90e4)

Quoted 1 line
Quoted 1 line
Quoted 1 line

ti-k3-image-gen 08.06.00.007 Extracting

gzip -d -c /home/dario/projects/buildroot/dl/ti-k3-image-gen/k3-image-gen-08.06.00.007.tar.gz | tar --strip-components=1 -C /home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007
-xf -

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ti-k3-image-gen 08.06.00.007 Patching
ti-k3-image-gen 08.06.00.007 Configuring

cp /home/dario/projects/buildroot/output/images/ti-sysfw/ti-fs-firmware-am62x-hs-fs.bin /home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007
cp: cannot stat '/home/dario/projects/buildroot/output/images/ti-sysfw/ti-fs-firmware-am62x-hs-fs.bin':
No such file or directory
make[1]: *** [package/pkg-generic.mk:273:
/home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007/.stamp_configured] Error 1
make: *** [Makefile:82: _all] Error 2

What do you think if, for this series, I fix the compilation issue for HS configurations by continuing to use the ti-k3-image-gen package, and then
once the series is merged, I try and test the the bump of u-boot to version 2024.01 to see if it is indeed possible to do without ti-k3-image-gen?
Meanwhile, let's at least fix this problem immediately.

Thanks and regards,
Dario

Quoted 47 lines

It seems this patch should fixes them.

Best regards,
Romain

Quoted 40 lines
Quoted 39 lines

# We need FIT support in uboot-tools, which is why we select a # host package
select BR2_PACKAGE_HOST_UBOOT_TOOLS

boot/ti-k3-image-gen/ti-k3-image-gen.mk +14 -2
index 64be9a18f2c4..91aed63bab84 100644
@@ -29,10 +29,21 @@ TI_K3_IMAGE_GEN_FW_TYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE))
 TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC))
 TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE))
 
-TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+ifeq ($(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP),y)
+TI_K3_IMAGE_GEN_SYSFW = \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+else
+TI_K3_IMAGE_GEN_DEPENDENCIES += ti-k3-core-secdev
+
+TI_K3_IMAGE_GEN_SYSFW = \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-enc.bin \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-cert.bin
+endif
 
 define TI_K3_IMAGE_GEN_CONFIGURE_CMDS
-    cp $(BINARIES_DIR)/ti-sysfw/$(TI_K3_IMAGE_GEN_SYSFW) $(@D)
+    $(foreach t,$(TI_K3_IMAGE_GEN_SYSFW),\
+            cp $(BINARIES_DIR)/ti-sysfw/$(t) $(@D)/
+    )
 endef
 
 define TI_K3_IMAGE_GEN_BUILD_CMDS
@@ -40,6 +51,7 @@ define TI_K3_IMAGE_GEN_BUILD_CMDS
     $(BR2_MAKE) -C $(@D) \
             SOC=$(TI_K3_IMAGE_GEN_SOC) \
             SOC_TYPE=$(TI_K3_IMAGE_GEN_SECTYPE) \
+            TI_SECURE_DEV_PKG=$(BINARIES_DIR) \
             CONFIG=evm \
             CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
             SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \
Signature · 21 lines
Dario Binacchi

Senior Embedded Linux Developer

[email protected]

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
[email protected]

www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

Re: [Buildroot] [PATCH v3 02/11] boot/ti-k3-image-gen: manage HS hardware

Hello Dario,

Le 09/02/2024 à 14:58, Dario Binacchi a écrit :

Quoted 76 lines

Hi Romain, All

Quoted 31 lines · Romain Naour

Hello Dario, All,

Quoted 27 lines · Romain Naour

Hello Dario,

Quoted 3 lines · Dario Binacchi

The patch sets the configurations required by TI HS systems. Some of these configurations (i. e. HS SYSFW image signing key, HS Software Revision) are provided by the ti-k3-core-secdev package in the binaries directory.

AFAIK the ti-k3-image-gen tool is deprecated and must be replaced by binman tool provided by upstream u-boot.

Is all k3 SoC migrated to binman in the latest u-boot release 2024.01?

See the FOSDEM talk:

https://fosdem.org/2024/events/attachments/fosdem-2024-3067-standardizing-the-generation-and-signing-of-boot-images/slides/21919/FOSDEM24_Speaker_Slides_y7FsIKM.pdf

Best regards,
Romain

Quoted 7 lines
---
 boot/ti-k3-image-gen/Config.in          |  1 +
 boot/ti-k3-image-gen/ti-k3-image-gen.mk | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
Quoted 12 lines
Quoted 9 lines

boot/ti-k3-image-gen/Config.in config BR2_TARGET_TI_K3_IMAGE_GEN · line 5

Quoted 9 lines
boot/ti-k3-image-gen/Config.in +1 -0
index d76cef82e911..38d1598d9fc0 100644
@@ -2,6 +2,7 @@ config BR2_TARGET_TI_K3_IMAGE_GEN
     bool "ti-k3-image-gen"
     depends on BR2_TARGET_TI_K3_R5_LOADER
     select BR2_TARGET_TI_K3_BOOT_FIRMWARE
+    select BR2_TARGET_TI_K3_CORE_SECDEV if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS || BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS

Does it means that currently TI HS configuration are missing the ti-k3-core-secdev tool to build properly?

Yes, you are right. Currently, the compilation with BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS enabled is broken:

./tools/k3_gen_x509_cert.sh -c 16 -b spl/u-boot-spl.bin \
-o tiboot3.bin -l 0x43c00000 -r 1 -k ""
SWRV = 1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ti-k3-r5-loader 2022.10 Installing to target ti-k3-r5-loader 2022.10 Installing to images directory

cp /home/dario/projects/buildroot/output/build/ti-k3-r5-loader-2022.10/spl/u-boot-spl.bin /home/dario/projects/buildroot/output/images/r5-u-boot-spl.bin k3-image-gen-08.06.00.007.tar.gz: OK (sha256:
f89ea4b1f5c992455b1a682fde48359221b53f3294135df4bf20feea6aea90e4)

Quoted 1 line
Quoted 1 line
Quoted 1 line

ti-k3-image-gen 08.06.00.007 Extracting

gzip -d -c /home/dario/projects/buildroot/dl/ti-k3-image-gen/k3-image-gen-08.06.00.007.tar.gz | tar --strip-components=1 -C /home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007
-xf -

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ti-k3-image-gen 08.06.00.007 Patching
ti-k3-image-gen 08.06.00.007 Configuring

cp /home/dario/projects/buildroot/output/images/ti-sysfw/ti-fs-firmware-am62x-hs-fs.bin /home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007
cp: cannot stat '/home/dario/projects/buildroot/output/images/ti-sysfw/ti-fs-firmware-am62x-hs-fs.bin':
No such file or directory
make[1]: *** [package/pkg-generic.mk:273:
/home/dario/projects/buildroot/output/build/ti-k3-image-gen-08.06.00.007/.stamp_configured] Error 1
make: *** [Makefile:82: _all] Error 2

Quoted 7 lines

What do you think if, for this series, I fix the compilation issue for HS configurations by continuing to use the ti-k3-image-gen package, and then
once the series is merged, I try and test the the bump of u-boot to version 2024.01 to see if it is indeed possible to do without ti-k3-image-gen?
Meanwhile, let's at least fix this problem immediately.

I'm working on the SK-TDA4VM (j721e) and I'm able to boot this board with uboot 2024.01 without ti-k3-image-gen.

I'll post a v4 including binman support with some improvement regarding host-python modules dependencies.

About existing am62 and am64 defconfigs, are you sure that optee-os platform is correct ?

BR2_TARGET_OPTEE_OS_PLATFORM="k3"

meta-ti define OPTEEMACHINE = "k3-am62x" instead (not "k3)

I had a crash on the SK-TDA4VM due to the wrong platform and it worked as soone as I use OPTEEMACHINE = "k3-j721e".

It would be great if you can do a runtime test on am62 and/or am64.

Thanks to binman, I don't think core-secdev-k3 tool is required for HS devices.

Best regards,
Romain

Quoted 53 lines

Thanks and regards,
Dario

Quoted 47 lines

It seems this patch should fixes them.

Best regards,
Romain

Quoted 40 lines
Quoted 39 lines

# We need FIT support in uboot-tools, which is why we select a # host package
select BR2_PACKAGE_HOST_UBOOT_TOOLS

boot/ti-k3-image-gen/ti-k3-image-gen.mk +14 -2
index 64be9a18f2c4..91aed63bab84 100644
@@ -29,10 +29,21 @@ TI_K3_IMAGE_GEN_FW_TYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE))
 TI_K3_IMAGE_GEN_SOC = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SOC))
 TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE))
 
-TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+ifeq ($(BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP),y)
+TI_K3_IMAGE_GEN_SYSFW = \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
+else
+TI_K3_IMAGE_GEN_DEPENDENCIES += ti-k3-core-secdev
+
+TI_K3_IMAGE_GEN_SYSFW = \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-enc.bin \
+    $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE)-cert.bin
+endif
 
 define TI_K3_IMAGE_GEN_CONFIGURE_CMDS
-    cp $(BINARIES_DIR)/ti-sysfw/$(TI_K3_IMAGE_GEN_SYSFW) $(@D)
+    $(foreach t,$(TI_K3_IMAGE_GEN_SYSFW),\
+            cp $(BINARIES_DIR)/ti-sysfw/$(t) $(@D)/
+    )
 endef
 
 define TI_K3_IMAGE_GEN_BUILD_CMDS
@@ -40,6 +51,7 @@ define TI_K3_IMAGE_GEN_BUILD_CMDS
     $(BR2_MAKE) -C $(@D) \
             SOC=$(TI_K3_IMAGE_GEN_SOC) \
             SOC_TYPE=$(TI_K3_IMAGE_GEN_SECTYPE) \
+            TI_SECURE_DEV_PKG=$(BINARIES_DIR) \
             CONFIG=evm \
             CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
             SBL=$(BINARIES_DIR)/r5-u-boot-spl.bin \

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

#8 lore raw

PATCH v3 3/11 package/python-jsonschema: add host variant

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman.

---

Changes in v3:
- Drop Config.in.host

 package/python-jsonschema/python-jsonschema.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/python-jsonschema/python-jsonschema.mk +6 -0
index dee87e8f9d9b..6f2206f3a03c 100644
@@ -15,4 +15,10 @@ PYTHON_JSONSCHEMA_DEPENDENCIES = \
 	host-python-hatch-fancy-pypi-readme \
 	host-python-hatch-vcs
 
+HOST_PYTHON_JSONSCHEMA_DEPENDENCIES = \
+	host-python-hatchling \
+	host-python-hatch-fancy-pypi-readme \
+	host-python-hatch-vcs
+
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.43.0

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

PATCH v3 4/11 package/python-attrs: add host variant

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman.

---

Changes in v3:
- Drop Config.in.host

 package/python-attrs/python-attrs.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/python-attrs/python-attrs.mk +6 -0
index 0d704ea11195..96d6b8ad7923 100644
@@ -15,4 +15,10 @@ PYTHON_ATTRS_DEPENDENCIES = \
 	host-python-hatch-fancy-pypi-readme \
 	host-python-hatch-vcs
 
+HOST_PYTHON_ATTRS_DEPENDENCIES = \
+	host-python-hatchling \
+	host-python-hatch-fancy-pypi-readme \
+	host-python-hatch-vcs
+
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.43.0

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

PATCH v3 5/11 package/python-referencing: add host variant

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman.

---

Changes in v3:
- Drop Config.in.host

 package/python-referencing/python-referencing.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/python-referencing/python-referencing.mk +7 -0
index 4d11c99deb3b..9d8fc5a2f541 100644
@@ -11,7 +11,14 @@ PYTHON_REFERENCING_SETUP_TYPE = pep517
 PYTHON_REFERENCING_LICENSE = MIT
 PYTHON_REFERENCING_LICENSE_FILES = COPYING
 PYTHON_REFERENCING_DEPENDENCIES = \
+	host-python-attrs \
+	host-python-hatchling \
+	host-python-hatch-vcs
+
+HOST_PYTHON_REFERENCING_DEPENDENCIES = \
+	host-python-attrs \
 	host-python-hatchling \
 	host-python-hatch-vcs
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 05/11] package/python-referencing: add host variant

Hello Dario, All,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 21 lines

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman.

---

Changes in v3:
- Drop Config.in.host

 package/python-referencing/python-referencing.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/python-referencing/python-referencing.mk +0 -0
index 4d11c99deb3b..9d8fc5a2f541 100644

package/python-referencing/python-referencing.mk PYTHON_REFERENCING_SETUP_TYPE = pep517 · line 16

Quoted 6 lines
package/python-referencing/python-referencing.mk +3 -0
@@ -11,7 +11,14 @@ PYTHON_REFERENCING_SETUP_TYPE = pep517
 PYTHON_REFERENCING_LICENSE = MIT
 PYTHON_REFERENCING_LICENSE_FILES = COPYING
 PYTHON_REFERENCING_DEPENDENCIES = \
+	host-python-attrs \
+	host-python-hatchling \
+	host-python-hatch-vcs

Why are you adding host-python-attrs in dependency? is host-python-attrs already missing and should be fixed in a separate patch?

Best regards,
Romain

package/python-referencing/python-referencing.mk PYTHON_REFERENCING_SETUP_TYPE = pep517 · line 24

Quoted 8 lines
package/python-referencing/python-referencing.mk +4 -0
+
+HOST_PYTHON_REFERENCING_DEPENDENCIES = \
+	host-python-attrs \
 	host-python-hatchling \
 	host-python-hatch-vcs
 
 $(eval $(python-package))
+$(eval $(host-python-package))

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

#12 lore raw

PATCH v3 6/11 package/python-rpds-py: add host variant

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman

---

Changes in v3:
- Drop Config.in.host

 package/python-rpds-py/python-rpds-py.mk | 1 +
 1 file changed, 1 insertion(+)
package/python-rpds-py/python-rpds-py.mk +1 -0
index 6f71d0204704..f426bddff3d6 100644
@@ -12,3 +12,4 @@ PYTHON_RPDS_PY_LICENSE = MIT
 PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.43.0

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

PATCH v3 7/11 package/python-jsonschema-specifications: add host variant

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts. This package is required by binman.

---

Changes in v3:
- Drop Config.in.host

 .../python-jsonschema-specifications.mk                      | 5 +++++
 1 file changed, 5 insertions(+)
package/python-jsonschema-specifications/python-jsonschema-specifications.mk +5 -0
index 7a19eee4236f..a20045f316b2 100644
@@ -14,4 +14,9 @@ PYTHON_JSONSCHEMA_SPECIFICATIONS_DEPENDENCIES = \
 	host-python-hatchling \
 	host-python-hatch-vcs
 
+HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS_DEPENDENCIES = \
+	host-python-hatchling \
+	host-python-hatch-vcs
+
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.43.0

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

PATCH v3 8/11 boot/ti-k3-r5-loader: set binman environment

In reply to Dario Binacchi

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts.

The patch set the BINMAN_INDIRS environment variable to provide the directory to search for binary blobs and select the packages required by binman.

---

Changes in v2:
- Change commit message
- Add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
- Select packages required by binman if BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is enabled

 boot/ti-k3-r5-loader/Config.in          | 13 +++++++++++++
 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 15 +++++++++++++++
 2 files changed, 28 insertions(+)
boot/ti-k3-r5-loader/Config.in +13 -0
index 8c8368a1a5a8..a40eaed9467b 100644
@@ -93,4 +93,17 @@ config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE
 	help
 	  Path to the TI K3 R5 Loader configuration file.
 
+config BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN
+	bool "U-Boot uses binman"
+	select BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
+	select BR2_PACKAGE_HOST_PYTHON_ATTRS
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS
+	select BR2_PACKAGE_HOST_PYTHON_PYYAML
+	select BR2_PACKAGE_HOST_PYTHON_REFERENCING
+	select BR2_PACKAGE_HOST_PYTHON_RPDS_PY
+	help
+	  Select this option if your U-Boot version uses binman
+	  for building images.
+
 endif
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +15 -0
index 0ffcb8235f2e..7f6da0fb24ea 100644
@@ -49,6 +49,20 @@ TI_K3_R5_LOADER_KCONFIG_DEPENDENCIES = \
 	$(BR2_BISON_HOST_DEPENDENCY) \
 	$(BR2_FLEX_HOST_DEPENDENCY)
 
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
+TI_K3_R5_LOADER_DEPENDENCIES += host-python-pylibfdt
+endif
+
+ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN),y)
+TI_K3_R5_LOADER_DEPENDENCIES += \
+	host-python-attrs \
+	host-python-jsonschema \
+	host-python-jsonschema-specifications \
+	host-python-pyyaml \
+	host-python-referencing \
+	host-python-rpds-py
+endif
+
 ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_DEFCONFIG),y)
 TI_K3_R5_LOADER_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG))_defconfig
 else ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_CUSTOM_CONFIG),y)
@@ -58,6 +72,7 @@ TI_K3_R5_LOADER_MAKE_OPTS = \
 	CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 	ARCH=arm \
 	HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
+	BINMAN_INDIRS=$(BINARIES_DIR) \
 	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
 define TI_K3_R5_LOADER_BUILD_CMDS
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 08/11] boot/ti-k3-r5-loader: set binman environment

Hello Dario,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 31 lines

Recent version of U-Boot use binman to provide a mechanism for building images, from simple SPL + U-Boot combinations, to more complex arrangements with many parts.

The patch set the BINMAN_INDIRS environment variable to provide the directory to search for binary blobs and select the packages required by binman.

---

Changes in v2:
- Change commit message
- Add BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
- Select packages required by binman if BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN is enabled

 boot/ti-k3-r5-loader/Config.in          | 13 +++++++++++++
 boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 15 +++++++++++++++
 2 files changed, 28 insertions(+)
boot/ti-k3-r5-loader/Config.in +0 -0
index 8c8368a1a5a8..a40eaed9467b 100644
@@ -93,4 +93,17 @@ config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE
 	help
 	  Path to the TI K3 R5 Loader configuration file.

boot/ti-k3-r5-loader/Config.in config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE · line 104

Quoted 10 lines
boot/ti-k3-r5-loader/Config.in +9 -0
 
+config BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN
+	bool "U-Boot uses binman"
+	select BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
+	select BR2_PACKAGE_HOST_PYTHON_ATTRS
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA
+	select BR2_PACKAGE_HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS
+	select BR2_PACKAGE_HOST_PYTHON_PYYAML
+	select BR2_PACKAGE_HOST_PYTHON_REFERENCING
+	select BR2_PACKAGE_HOST_PYTHON_RPDS_PY

There is no such BR2_PACKAGE_HOST_PYTHON_* symbols added when you enabled host variant. We don't really need such option for host package, just add them in ti-k3-r5-loader build dependency from .mk file.

boot/ti-k3-r5-loader/Config.in config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE · line 107

Quoted 3 lines
boot/ti-k3-r5-loader/Config.in +3 -0
+	help
+	  Select this option if your U-Boot version uses binman
+	  for building images.

It seems that this is a TI specific script tools/binman/etype/ti_board_config.py that requires python-jsonschema but its already a requirement for buildman [1].

So it should also be handled in u-boot package.

[1]
https://source.denx.de/u-boot/u-boot/-/blob/master/tools/buildman/requirements.txt?ref_type=heads

Best regards,
Romain

Quoted 28 lines
boot/ti-k3-r5-loader/Config.in +1 -0
+
 endif
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +14 -0
index 0ffcb8235f2e..7f6da0fb24ea 100644
@@ -49,6 +49,20 @@ TI_K3_R5_LOADER_KCONFIG_DEPENDENCIES = \
 	$(BR2_BISON_HOST_DEPENDENCY) \
 	$(BR2_FLEX_HOST_DEPENDENCY)
 
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
+TI_K3_R5_LOADER_DEPENDENCIES += host-python-pylibfdt
+endif
+
+ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN),y)
+TI_K3_R5_LOADER_DEPENDENCIES += \
+	host-python-attrs \
+	host-python-jsonschema \
+	host-python-jsonschema-specifications \
+	host-python-pyyaml \
+	host-python-referencing \
+	host-python-rpds-py
+endif
+
 ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_DEFCONFIG),y)
 TI_K3_R5_LOADER_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG))_defconfig
 else ifeq ($(BR2_TARGET_TI_K3_R5_LOADER_USE_CUSTOM_CONFIG),y)

boot/ti-k3-r5-loader/ti-k3-r5-loader.mk TI_K3_R5_LOADER_MAKE_OPTS = \ · line 78

Quoted 7 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +1 -0
@@ -58,6 +72,7 @@ TI_K3_R5_LOADER_MAKE_OPTS = \
 	CROSS_COMPILE=$(HOST_DIR)/bin/arm-none-eabi- \
 	ARCH=arm \
 	HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS)))" \
+	BINMAN_INDIRS=$(BINARIES_DIR) \
 	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
 define TI_K3_R5_LOADER_BUILD_CMDS

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

#16 lore raw

PATCH v3 9/11 boot/uboot: set BINMAN_INDIRS for TI K3 DM

In reply to Dario Binacchi

As explained in [1], adding support for AM62x LP SK in U-Boot, requires binman for building bootloader images. The BINMAN_INDIRS environment variable is used to provide a space-separated list of directories to search for binary blobs.

[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

---
 boot/uboot/uboot.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
boot/uboot/uboot.mk +2 -1
index dda606a88059..cf70f86a4132 100644
@@ -189,7 +189,8 @@ endif
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_TI_K3_DM),y)
 UBOOT_TI_K3_DM_SOCNAME = $(call qstrip,$(BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME))
 UBOOT_DEPENDENCIES += ti-k3-boot-firmware
-UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f
+UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f \
+	BINMAN_INDIRS=$(BINARIES_DIR)
 endif
 
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y)
Signature · 6 lines
2.43.0

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

PATCH v3 10/11 configs/ti_am62x_sk_defconfig: bump U-Boot version to 2023.10

In reply to Dario Binacchi

The 2023.10 version of U-Boot for the am62x-sk board has introduced two major changes:
- The device tree k3-am625-sk.dtb is no longer searched in /boot, but in /boot/dtb/ti. Hence, the disabling of BR2_LINUX_KERNEL_INSTALL_TARGET and the use of extlinux.conf for the proper loading of the device tree. Furthermore, the parameter BR2_ROOTFS_POST_SCRIPT_ARGS was used to auto-generate the extlinux.conf file so that developers can change the kernel loading options by modifying the .config.
- The use of binman for building images.

Tested on SK-AM62B-P1.

---

Changes in v2:
- Update the commit message
- Drop Python options required by binman.
- Enable BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN. This option automatically selects the Python modules required by binman.

 board/ti/am62x-sk/genimage.cfg  |  7 ++++-
 board/ti/am62x-sk/post-build.sh | 49 +++++++++++++++++++++++++++++++++
 board/ti/am62x-sk/post-image.sh |  5 ++++
 configs/ti_am62x_sk_defconfig   | 11 +++++---
 4 files changed, 67 insertions(+), 5 deletions(-)
 create mode 100755 board/ti/am62x-sk/post-build.sh
 create mode 100755 board/ti/am62x-sk/post-image.sh
board/ti/am62x-sk/genimage.cfg +6 -1
index 26304fe98f99..398209f4d831 100644
@@ -4,10 +4,15 @@ image boot.vfat {
 			"tiboot3.bin",
 			"tispl.bin",
 			"u-boot.img",
+			"k3-am625-sk.dtb",
+			"Image"
+		}
+		file extlinux/extlinux.conf {
+			image = extlinux.conf
 		}
 	}
 
-	size = 16M
+	size = 64M
 }
 
 image sdcard.img {
board/ti/am62x-sk/post-build.sh new file +49 -0

49 lines not on this page · raw message

board/ti/am62x-sk/post-image.sh new file +5 -0
new file mode 100755
index 000000000000..34f732c091ad
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+BOARD_DIR="$(dirname "$0")"
+
+support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"
configs/ti_am62x_sk_defconfig +7 -4
index b98a68ff153f..0fb9a2f0246c 100644
@@ -1,11 +1,11 @@
 BR2_aarch64=y
-BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/am62x-sk/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/am62x-sk/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -r PARTUUID=00000000-02 -x earlycon=ns16550a,mmio32,0x02800000"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am625-sk"
-BR2_LINUX_KERNEL_INSTALL_TARGET=y
 BR2_PACKAGE_LINUX_FIRMWARE=y
 BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX=y
 BR2_TARGET_ROOTFS_EXT2=y
@@ -23,11 +23,14 @@ BR2_TARGET_TI_K3_IMAGE_GEN=y
 BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y
 BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP=y
 BR2_TARGET_TI_K3_R5_LOADER=y
+BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION=y
+BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE="2023.10"
 BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5"
+BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.10"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am62x_evm_a53"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 10/11] configs/ti_am62x_sk_defconfig: bump U-Boot version to 2023.10

Hello Dario,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 122 lines

The 2023.10 version of U-Boot for the am62x-sk board has introduced two major changes:
- The device tree k3-am625-sk.dtb is no longer searched in /boot, but in /boot/dtb/ti. Hence, the disabling of BR2_LINUX_KERNEL_INSTALL_TARGET and the use of extlinux.conf for the proper loading of the device tree. Furthermore, the parameter BR2_ROOTFS_POST_SCRIPT_ARGS was used to auto-generate the extlinux.conf file so that developers can change the kernel loading options by modifying the .config.
- The use of binman for building images.

Tested on SK-AM62B-P1.

---

Changes in v2:
- Update the commit message
- Drop Python options required by binman.
- Enable BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN. This option automatically selects the Python modules required by binman.

 board/ti/am62x-sk/genimage.cfg  |  7 ++++-
 board/ti/am62x-sk/post-build.sh | 49 +++++++++++++++++++++++++++++++++
 board/ti/am62x-sk/post-image.sh |  5 ++++
 configs/ti_am62x_sk_defconfig   | 11 +++++---
 4 files changed, 67 insertions(+), 5 deletions(-)
 create mode 100755 board/ti/am62x-sk/post-build.sh
 create mode 100755 board/ti/am62x-sk/post-image.sh
board/ti/am62x-sk/genimage.cfg +6 -1
index 26304fe98f99..398209f4d831 100644
@@ -4,10 +4,15 @@ image boot.vfat {
 			"tiboot3.bin",
 			"tispl.bin",
 			"u-boot.img",
+			"k3-am625-sk.dtb",
+			"Image"
+		}
+		file extlinux/extlinux.conf {
+			image = extlinux.conf
 		}
 	}
 
-	size = 16M
+	size = 64M
 }
 
 image sdcard.img {
board/ti/am62x-sk/post-build.sh new file +49 -0
new file mode 100755
index 000000000000..0f1f98ef217a
@@ -0,0 +1,49 @@
+#!/bin/sh -x
+
+# genimage will need to find the extlinux.conf
+# in the binaries directory
+
+die() {
+  cat <<EOF >&2
+Error: $@
+
+Usage: ${0} -c <console> -r <root> [-x <extra-args>]
+EOF
+  exit 1
+}
+
+o='c:r:x:'
+O='console:,root:,extra-args:'
+opts="$(getopt -n "${0##*/}" -o "${o}" -l "${O}" -- "${@}")"
+eval set -- "${opts}"
+while [ ${#} -gt 0 ]; do
+    case "${1}" in
+    (-c|--console)
+        CONSOLE="${2}"; shift 2
+        ;;
+    (-r|--root)
+        ROOT="${2}"; shift 2
+        ;;
+    (-x|--extra-args)
+        EXTRA_ARGS="${2}"; shift 2
+        ;;
+    (--)
+        shift 1; break
+        ;;
+    esac
+done
+
+[ -n "${CONSOLE}" ] || die "Missing argument"
+[ -n "${ROOT}" ] || die "Missing argument"
+append="console=${CONSOLE} root=${ROOT} rw rootfstype=ext4 rootwait"
+if [ -n "${EXTRA_ARGS}" ]; then
+    append="${append} ${EXTRA_ARGS}"
+fi
+
+mkdir -p "${BINARIES_DIR}"
+cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
+	label am62x-sk-buildroot
+	  kernel /Image
+	  fdtdir /
+	  append ${append}
+	__HEADER_EOF
board/ti/am62x-sk/post-image.sh new file +5 -0
new file mode 100755
index 000000000000..34f732c091ad
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+BOARD_DIR="$(dirname "$0")"
+
+support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"
configs/ti_am62x_sk_defconfig +0 -0
index b98a68ff153f..0fb9a2f0246c 100644

configs/ti_am62x_sk_defconfig line 4

Quoted 6 lines
configs/ti_am62x_sk_defconfig +3 -2
@@ -1,11 +1,11 @@
 BR2_aarch64=y
-BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/am62x-sk/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/am62x-sk/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -r PARTUUID=00000000-02 -x earlycon=ns16550a,mmio32,0x02800000"

Can the harcoded PARTUUID be avoided by using uuidgen as for some other defconfigs?

Quoted 9 lines
configs/ti_am62x_sk_defconfig +0 -1
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am625-sk"
-BR2_LINUX_KERNEL_INSTALL_TARGET=y
 BR2_PACKAGE_LINUX_FIRMWARE=y
 BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX=y
 BR2_TARGET_ROOTFS_EXT2=y

configs/ti_am62x_sk_defconfig BR2_TARGET_TI_K3_IMAGE_GEN=y · line 27

Quoted 5 lines
configs/ti_am62x_sk_defconfig +2 -0
@@ -23,11 +23,14 @@ BR2_TARGET_TI_K3_IMAGE_GEN=y
 BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y
 BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP=y
 BR2_TARGET_TI_K3_R5_LOADER=y
+BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION=y
+BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE="2023.10"

Maybe the BR2_TARGET_TI_K3_R5_LOADER version should be fixed in this defconfig before your version bump. Indded it would be better to fix the BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE to 2022.10 even if it's the default one.

Care to update BR2_TARGET_TI_K3_R5_LOADER_LATEST_VERSION to 2024.01?

Best regards,
Romain

configs/ti_am62x_sk_defconfig BR2_TARGET_TI_K3_IMAGE_GEN=y · line 36

Quoted 10 lines
configs/ti_am62x_sk_defconfig +2 -1
 BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5"
+BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.10"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am62x_evm_a53"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y

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

#19 lore raw

PATCH v3 11/11 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.1

In reply to Dario Binacchi

Tested on SK-AM62B-P1.

---
 configs/ti_am62x_sk_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +3 -0
index 0fb9a2f0246c..9e825d65c0f6 100644
@@ -1,8 +1,11 @@
 BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_6=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/am62x-sk/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/am62x-sk/post-image.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -r PARTUUID=00000000-02 -x earlycon=ns16550a,mmio32,0x02800000"
 BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.1"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am625-sk"
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 11/11] configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.1

Hello Dario,

Le 18/12/2023 à 09:19, Dario Binacchi a écrit :

Quoted 12 lines

Tested on SK-AM62B-P1.

---
 configs/ti_am62x_sk_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +0 -0
index 0fb9a2f0246c..9e825d65c0f6 100644

configs/ti_am62x_sk_defconfig line 2

Quoted 2 lines
configs/ti_am62x_sk_defconfig +1 -0
@@ -1,8 +1,11 @@
 BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_6=y

As reported by Giulio Benetti in a preview patch, BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6 must be used instead.

This patch series needs some rework, I'll mark it as "changes requested".

Thank you,

Best regards,
Romain

configs/ti_am62x_sk_defconfig line 11

Quoted 9 lines
configs/ti_am62x_sk_defconfig +2 -0
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/am62x-sk/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/am62x-sk/post-image.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -r PARTUUID=00000000-02 -x earlycon=ns16550a,mmio32,0x02800000"
 BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.1"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am625-sk"

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