Add support for AM62x-SK HS-FS devices
v8 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.
Furthermore, this version complete the series by updating theti_am64x_sk_defconfig too and remove ti-k3-image-gen, as requested by
Romain Naour:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I have successfully executed compilation tests for all possible combinations of platform and security type:
am62x -> GP, HS, HS-FS
am64x -> GP, HS, HS-FS
The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board.
Dario Binacchi (22):
configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am64x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant boot/ti-k3-r5-loader: set binman environment
boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalize post-build.sh board/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18
Romain Naour (1):
boot/ti-k3-image-gen: remove package
Config.in.legacy | 7 ++ DEVELOPERS | 2 - board/ti/am62x-sk/genimage.cfg | 7 +- board/ti/am64x-sk/genimage.cfg | 7 +- board/ti/common/am6xx/post-build.sh | 58 ++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 +++ boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++- boot/uboot/Config.in | 23 +++--- boot/uboot/uboot.mk | 12 ++- configs/ti_am62x_sk_defconfig | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++ 25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mk
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 1/23 configs/ti_am62x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting
Using PLATFORM=k3 can leads to a runtime boot crash on some K3 SoC (e.g. j721e) because the optee flavor is missing.
We could use BR2_TARGET_OPTEE_OS_PLATFORM=k3 and BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR=am62x but we actually can use BR2_TARGET_OPTEE_OS_PLATFORM=k3-am62x as explained in the optee-os Makefile [1]:
# If $(PLATFORM) is defined and contains a hyphen, parse it as # $(PLATFORM)-$(PLATFORM_FLAVOR) for convenience
This is how meta-ti set the optee-os platform:
meta-ti]$ git grep OPTEEMACHINE meta-ti-bsp/conf/machine/am437x-hs-evm.conf:OPTEEMACHINE = "ti-am43xx" meta-ti-bsp/conf/machine/am57xx-hs-evm.conf:OPTEEMACHINE = "ti-am57xx" meta-ti-bsp/conf/machine/beagleplay.conf:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf:OPTEEMACHINE = "ti-dra7xx" meta-ti-bsp/conf/machine/include/am62axx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62pxx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62xx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am64xx.inc:OPTEEMACHINE = "k3-am64x" meta-ti-bsp/conf/machine/include/am65xx.inc:OPTEEMACHINE = "k3-am65x" meta-ti-bsp/conf/machine/include/j7200.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721e.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721s2.inc:OPTEEMACHINE = "k3-j784s4" meta-ti-bsp/conf/machine/include/j722s.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/j784s4.inc:OPTEEMACHINE = "k3-j784s4"
meta-ti uses the OPTEEMACHINE to set optee-os platform [2].
[1] https://github.com/OP-TEE/optee_os/blob/4.0.0/Makefile#L37
[2] https://git.yoctoproject.org/meta-arm/tree/meta-arm/recipes-security/optee/optee-os.inc?h=4.0.3#n23
---
Changes in v6:
- Update commit message
Changes in v5
- Drop BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR option
Added in v4
--- configs/ti_am62x_sk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/ti_am62x_sk_defconfig +1 -1
@@ -21,7 +21,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="k3" BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y -BR2_TARGET_OPTEE_OS_PLATFORM="k3" +BR2_TARGET_OPTEE_OS_PLATFORM="k3-am62x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y BR2_TARGET_TI_K3_R5_LOADER=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 2/23 configs/ti_am64x_sk_defconfig: fix BR2_TARGET_OPTEE_OS_PLATFORM setting
In reply to Dario BinacchiUsing PLATFORM=k3 can leads to a runtime boot crash on some K3 SoC (e.g. j721e) because the optee flavor is missing.
We could use BR2_TARGET_OPTEE_OS_PLATFORM=k3 and BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR=am64x but we actually can use BR2_TARGET_OPTEE_OS_PLATFORM=k3-am64x as explained in the optee-os Makefile [1]:
# If $(PLATFORM) is defined and contains a hyphen, parse it as # $(PLATFORM)-$(PLATFORM_FLAVOR) for convenience
This is how meta-ti set the optee-os platform:
meta-ti]$ git grep OPTEEMACHINE meta-ti-bsp/conf/machine/am437x-hs-evm.conf:OPTEEMACHINE = "ti-am43xx" meta-ti-bsp/conf/machine/am57xx-hs-evm.conf:OPTEEMACHINE = "ti-am57xx" meta-ti-bsp/conf/machine/beagleplay.conf:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf:OPTEEMACHINE = "ti-dra7xx" meta-ti-bsp/conf/machine/include/am62axx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62pxx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am62xx.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/am64xx.inc:OPTEEMACHINE = "k3-am64x" meta-ti-bsp/conf/machine/include/am65xx.inc:OPTEEMACHINE = "k3-am65x" meta-ti-bsp/conf/machine/include/j7200.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721e.inc:OPTEEMACHINE = "k3-j721e" meta-ti-bsp/conf/machine/include/j721s2.inc:OPTEEMACHINE = "k3-j784s4" meta-ti-bsp/conf/machine/include/j722s.inc:OPTEEMACHINE = "k3-am62x" meta-ti-bsp/conf/machine/include/j784s4.inc:OPTEEMACHINE = "k3-j784s4"
meta-ti uses the OPTEEMACHINE to set optee-os platform [2].
[1] https://github.com/OP-TEE/optee_os/blob/4.0.0/Makefile#L37
[2] https://git.yoctoproject.org/meta-arm/tree/meta-arm/recipes-security/optee/optee-os.inc?h=4.0.3#n23
---
Changes in v6:
- Update commit message
Changes in v5:
- Drop BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR option
Added in v4
--- configs/ti_am64x_sk_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/ti_am64x_sk_defconfig +1 -1
@@ -21,7 +21,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="k3" BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y -BR2_TARGET_OPTEE_OS_PLATFORM="k3" +BR2_TARGET_OPTEE_OS_PLATFORM="k3-am64x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X=y BR2_TARGET_TI_K3_R5_LOADER=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 3/23 configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader version
In reply to Dario BinacchiCommit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig") forgot to specify the ti-k3-r5-loader, so do that now.
When the defconfig was added, the default version was 2022.10, so use it.
---
no changes since v4
Added in v4
--- configs/ti_am62x_sk_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/ti_am62x_sk_defconfig +2 -0
@@ -25,6 +25,8 @@ BR2_TARGET_OPTEE_OS_PLATFORM="k3-am62x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=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="2022.10" BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 4/23 configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader version
In reply to Dario BinacchiCommit 6b2329bb80 ("configs/ti_am64x_sk: new defconfig") forgot to specify the ti-k3-r5-loader, so do that now.
When the defconfig was added, the default version was 2022.10, so use it.
---
no changes since v4
Added in v4
--- configs/ti_am64x_sk_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/ti_am64x_sk_defconfig +2 -0
@@ -25,6 +25,8 @@ BR2_TARGET_OPTEE_OS_PLATFORM="k3-am64x" BR2_TARGET_TI_K3_IMAGE_GEN=y BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X=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="2022.10" BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am64x_evm_r5" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 5/23 boot/ti-k3-r5-loader: bump to version 2024.01
In reply to Dario BinacchiAll in-tree configs with the ti-k3-r5 bootloader use a custom version, so this patch is mostly for the menuconfig default version
---
no changes since v4
Added in v4
--- boot/ti-k3-r5-loader/Config.in | 4 ++-- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
boot/ti-k3-r5-loader/Config.in +2 -2
@@ -16,7 +16,7 @@ choice here as it is used to build the main U-Boot package. config BR2_TARGET_TI_K3_R5_LOADER_LATEST_VERSION - bool "2022.10" + bool "2024.01" config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION bool "Custom version"
@@ -60,7 +60,7 @@ endif config BR2_TARGET_TI_K3_R5_LOADER_VERSION string - default "2022.10" if BR2_TARGET_TI_K3_R5_LOADER_LATEST_VERSION + default "2024.01" if BR2_TARGET_TI_K3_R5_LOADER_LATEST_VERSION default BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE \ if BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION default "custom" if BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_TARBALL
boot/ti-k3-r5-loader/ti-k3-r5-loader.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 50b4482a505bc281ba8470c399a3c26e145e29b23500bc35c50debd7fa46bdf8 u-boot-2022.10.tar.bz2 +sha256 b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3 u-boot-2024.01.tar.bz2 sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 Licenses/gpl-2.0.txt
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 6/23 package/python-attrs: add host variant
In reply to Dario BinacchiRecent 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.
---
no changes since v3
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
@@ -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
PATCH v8 7/23 package/python-rpds-py: add host variant
In reply to Dario BinacchiRecent 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
---
no changes since v3
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
@@ -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
PATCH v8 8/23 package/python-referencing: add host variant
In reply to Dario BinacchiRecent 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 v5:
- Add runtime dependencies
- Add SOB and COB tags of Romain Naour
no changes in v4
Changes in v3:
- Drop Config.in.host
--- package/python-referencing/python-referencing.mk | 11 +++++++++++ 1 file changed, 11 insertions(+)
package/python-referencing/python-referencing.mk +11 -0
@@ -14,4 +14,15 @@ PYTHON_REFERENCING_DEPENDENCIES = \ host-python-hatchling \ host-python-hatch-vcs +HOST_PYTHON_REFERENCING_DEPENDENCIES = \ + host-python-hatchling \ + host-python-hatch-vcs + +# This is a runtime dependency, but we don't have the concept of +# runtime dependencies for host packages. +HOST_PYTHON_REFERENCING_DEPENDENCIES += \ + host-python-attrs \ + host-python-rpds-py + $(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
PATCH v8 9/23 package/python-jsonschema-specifications: add host variant
In reply to Dario BinacchiRecent 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 v6:
- Add runtime dependencies
- Add SOB and COB tags of Romain Naour
no changes since v3
Changes in v3:
- Drop Config.in.host
--- .../python-jsonschema-specifications.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/python-jsonschema-specifications/python-jsonschema-specifications.mk +10 -0
@@ -14,4 +14,14 @@ PYTHON_JSONSCHEMA_SPECIFICATIONS_DEPENDENCIES = \ host-python-hatchling \ host-python-hatch-vcs +HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS_DEPENDENCIES = \ + host-python-hatchling \ + host-python-hatch-vcs + +# This is a runtime dependency, but we don't have the concept of +# runtime dependencies for host packages. +HOST_PYTHON_JSONSCHEMA_SPECIFICATIONS_DEPENDENCIES += \ + host-python-referencing + $(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
PATCH v8 10/23 package/python-jsonschema: add host variant
In reply to Dario BinacchiRecent 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 v5:
- Add runtime dependencies
- Add SOB and COB tags of Romain Naour
no changes in v4
Changes in v3:
- Drop Config.in.host
--- package/python-jsonschema/python-jsonschema.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
package/python-jsonschema/python-jsonschema.mk +14 -0
@@ -15,4 +15,18 @@ 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 + +# This is a runtime dependency, but we don't have the concept of +# runtime dependencies for host packages. +HOST_PYTHON_JSONSCHEMA_DEPENDENCIES += \ + host-python-attrs \ + host-python-jsonschema-specifications \ + host-python-referencing \ + host-python-rpds-py + $(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
PATCH v8 11/23 boot/ti-k3-r5-loader: set binman environment
In reply to Dario BinacchiRecent 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.
The dependency of binman is not really easy to follow. First we have the packages list from binman.rst [1] then we have to install additional python modules [2]. Maybe in the future it will be necessary to add host-lzma and host-lz4 in the dependencies list.
[1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/binman/binman.rst?plain=1#L377
[2] https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt
---
Changes in v6:
- Update the commit message adding the links of requirements.
Changes in v5:
- Add dependecy on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
- Drop runtime dependecies
- Add host-python-pylibfdt dependency without requiring BR2_TARGET_UBOOT_NEEDS_PYLIBFDT configuration
- Add host-python3 and host-python-setuptools dependencies
- Add SOB and COB tags of Romain Naour
Changes in v4:
- Drop the BR2_TARGET_TI_K3_R5_LOADER_USE_BINMAN option
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 | 1 + boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)
boot/ti-k3-r5-loader/Config.in +1 -0
@@ -1,6 +1,7 @@ config BR2_TARGET_TI_K3_R5_LOADER bool "ti-k3-r5-loader" depends on BR2_aarch64 + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-rpds-py -> python-jsonschema help Separate U-Boot SPL build for R5 core on TI's K3 processors. Usually used to build tiboot3.bin with k3-image-gen.
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +7 -1
@@ -39,7 +39,12 @@ TI_K3_R5_LOADER_DEPENDENCIES = \ host-pkgconf \ $(BR2_MAKE_HOST_DEPENDENCY) \ host-arm-gnu-toolchain \ - host-openssl + host-openssl \ + host-python-jsonschema \ + host-python-pyyaml \ + host-python3 \ + host-python-setuptools \ + host-python-pylibfdt TI_K3_R5_LOADER_MAKE = $(BR2_MAKE) TI_K3_R5_LOADER_MAKE_ENV = $(TARGET_MAKE_ENV)
@@ -58,6 +63,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
PATCH v8 12/23 boot/uboot: add BR2_TARGET_UBOOT_USE_BINMAN option
In reply to Dario BinacchiRecent 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 tool uses additional host python modules that must be provided by Buildroot. So introduce a new option BR2_TARGET_UBOOT_USE_BINMAN to add additional host packages in U-Boot build dependency to use binman.
The binman requirement is directly included in buildman dependency (tools/buildman/requirements.txt) since within U-Boot, binman is invoked by the build system, here buildman [1].
Furthermore, the use of Binman no longer makes it necessary to set `UBOOT_MAKE_OPTS += DM=...'. We had the explanation from [2]:
BINMAN_INDIRS is used to fetch the DM binary from <path to ti-linux-firmware>/ti-dm/ and SYSFW binaries from <path to ti-linux-firmware>/ti-sysfw/.
[1] https://docs.u-boot.org/en/v2024.01/develop/package/binman.html#invoking-binman-within-u-boot
[2] https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-General-Info.html
---
Changes in v7:
- Replace ifneq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) with ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),).
- Update the commit message
Changes in v6:
- BR2_TARGET_UBOOT_USE_BINMAN
- Binman tool is not specific to TI K3 platform, so add an option to specify the use of Binman in U-Boot.
- Add runtime dependencies
- Update commit message
- Add SOB and COB tags of Romain Naour
Changes in v5:
- Drop "DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f" from UBOOT_MAKE_OPTS.
no changes since v1:
--- boot/uboot/Config.in | 11 +++++++++++ boot/uboot/uboot.mk | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-)
boot/uboot/Config.in +11 -0
@@ -290,6 +290,17 @@ config BR2_TARGET_UBOOT_NEEDS_ROCKCHIP_RKBIN This option makes sure that the needed binary blobs are copied into the U-Boot source directory. +config BR2_TARGET_UBOOT_USE_BINMAN + bool "U-Boot use binman" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-rpds-py -> python-jsonschema + select BR2_TARGET_UBOOT_NEEDS_PYTHON3 + select BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS + select BR2_TARGET_UBOOT_NEEDS_PYLIBFDT + help + Use binman tool for generation and signing of boot images. + + https://docs.u-boot.org/en/v2024.01/develop/package/binman.html + menu "U-Boot binary format" config BR2_TARGET_UBOOT_FORMAT_AIS
boot/uboot/uboot.mk +11 -1
@@ -187,10 +187,12 @@ UBOOT_MAKE_OPTS += TEE=$(BINARIES_DIR)/tee.elf 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 +ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),) +UBOOT_TI_K3_DM_SOCNAME = $(call qstrip,$(BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME)) UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f endif +endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSBI),y) UBOOT_DEPENDENCIES += opensbi
@@ -269,6 +271,14 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_XXD),y) UBOOT_DEPENDENCIES += host-vim endif +ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) +# https://source.denx.de/u-boot/u-boot/-/blob/v2024.01/tools/buildman/requirements.txt +UBOOT_DEPENDENCIES += \ + host-python-jsonschema \ + host-python-pyyaml +UBOOT_MAKE_OPTS += BINMAN_INDIRS=$(BINARIES_DIR) +endif + # prior to u-boot 2013.10 the license info was in COPYING. Copy it so # legal-info finds it define UBOOT_COPY_OLD_LICENSE_FILE
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 13/23 package/ti-k3: move TI_K3_{SECTYPE, SOC} out of the image-gen scope
In reply to Dario BinacchiRecent versions of U-Boot can use Binman to compile and sign the generated binaries, thus making the use of custom tools like ti-k3-image-gen no longer necessary. In ti-k3-image-gen, options such as SECTYPE and SOC were configured and used outside of it. This patch allows setting such options even if the package is not enabled.
The patch makes an exception to the Buildroot rule "no subdirectory in package directory".
---
Changes in v7:
- Revert change disabling BR2_PACKAGE_TI_K3_SECTYPE_HS_FS for BR2_PACKAGE_TI_K3_SOC_AM65X. The change is moved in a separate patch.
Changes in v6:
- Move BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME to ti-k3 (BR2_PACKAGE_TI_K3_DM).
- Disable BR2_PACKAGE_TI_K3_SECTYPE_HS_FS for BR2_PACKAGE_TI_K3_SOC_AM65X
Changes in v5:
- Add SOB tag
- Move the new ti-k3 from boot to package
Added in v4
--- boot/ti-k3-image-gen/Config.in | 61 ++----------------------- boot/ti-k3-image-gen/ti-k3-image-gen.mk | 4 +- boot/uboot/Config.in | 12 +---- boot/uboot/uboot.mk | 2 +- configs/ti_am62x_sk_defconfig | 3 +- configs/ti_am64x_sk_defconfig | 3 +- package/Config.in | 1 + package/ti-k3/Config.in | 59 ++++++++++++++++++++++++ package/ti-k3/ti-k3.mk | 7 +++ 9 files changed, 79 insertions(+), 73 deletions(-) create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mk
boot/ti-k3-image-gen/Config.in +4 -57
@@ -13,65 +13,12 @@ config BR2_TARGET_TI_K3_IMAGE_GEN https://git.ti.com/cgit/k3-image-gen/k3-image-gen/ if BR2_TARGET_TI_K3_IMAGE_GEN -choice - prompt "SoC family" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62AX - bool "am62ax" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X - bool "am62x" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X - bool "am64x" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM65X - bool "am65x" - -endchoice - -choice - prompt "Security type" - help - The target SoC security type option for image gen. Valid - options are "gp" for General Purpose devices, "hs-fs" for - High Security - Field Securable devices, or "hs" for High - Security - Security Enforcing devices. Note for all High - Security device variants the TI_SECURE_DEV_PKG environmental - variable must be defined at build time pointing to a valid - core-secdev-k3 folder location, otherwise the build will - fail, see - https://git.ti.com/cgit/security-development-tools/core-secdev-k3 - -config BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP - bool "gp" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS - bool "hs-fs" - -config BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS - bool "hs" - -endchoice - -config BR2_TARGET_TI_K3_IMAGE_GEN_SOC - string - default "am62ax" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62AX - default "am62x" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X - default "am64x" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X - default "am65x" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM65X config BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE string - default "ti-fs" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62AX - default "ti-fs" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X - default "ti-sci" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X - default "ti-sci" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM65X - -config BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE - string - default "gp" if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP - default "hs-fs" if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS - default "hs" if BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS + default "ti-fs" if BR2_PACKAGE_TI_K3_SOC_AM62AX + default "ti-fs" if BR2_PACKAGE_TI_K3_SOC_AM62X + default "ti-sci" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "ti-sci" if BR2_PACKAGE_TI_K3_SOC_AM65X endif
boot/ti-k3-image-gen/ti-k3-image-gen.mk +2 -2
@@ -26,8 +26,8 @@ TI_K3_IMAGE_GEN_DEPENDENCIES = \ $(BR2_MAKE_HOST_DEPENDENCY) 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_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) +TI_K3_IMAGE_GEN_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) TI_K3_IMAGE_GEN_SYSFW = $(TI_K3_IMAGE_GEN_FW_TYPE)-firmware-$(TI_K3_IMAGE_GEN_SOC)-$(TI_K3_IMAGE_GEN_SECTYPE).bin
boot/uboot/Config.in +1 -11
@@ -244,21 +244,11 @@ config BR2_TARGET_UBOOT_NEEDS_TI_K3_DM bool "U-Boot needs TI K3 Device Manager (DM)" # We use the SoC selection defined for the ti-k3-image-gen # package - depends on BR2_TARGET_TI_K3_IMAGE_GEN - depends on BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62AX || BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X + depends on BR2_PACKAGE_TI_K3_SOC_AM62AX || BR2_PACKAGE_TI_K3_SOC_AM62X help Some TI K3 devices need the Device Manager (DM) firmware to be available for the U-Boot build. -if BR2_TARGET_UBOOT_NEEDS_TI_K3_DM - -config BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME - string - default "am62axx" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62AX - default "am62xx" if BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X - -endif - config BR2_TARGET_UBOOT_NEEDS_OPENSBI bool "U-Boot needs OpenSBI" depends on BR2_TARGET_OPENSBI
boot/uboot/uboot.mk +1 -1
@@ -189,7 +189,7 @@ endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_TI_K3_DM),y) UBOOT_DEPENDENCIES += ti-k3-boot-firmware ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),) -UBOOT_TI_K3_DM_SOCNAME = $(call qstrip,$(BR2_TARGET_UBOOT_TI_K3_DM_SOCNAME)) +UBOOT_TI_K3_DM_SOCNAME = $(call qstrip,$(BR2_PACKAGE_TI_K3_DM_SOCNAME)) UBOOT_MAKE_OPTS += DM=$(BINARIES_DIR)/ti-dm/$(UBOOT_TI_K3_DM_SOCNAME)/ipc_echo_testb_mcu1_0_release_strip.xer5f endif endif
configs/ti_am62x_sk_defconfig +2 -1
@@ -11,6 +11,8 @@ 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_PACKAGE_TI_K3=y +BR2_PACKAGE_TI_K3_SOC_AM62X=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="256M"
@@ -23,7 +25,6 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y BR2_TARGET_OPTEE_OS_PLATFORM="k3-am62x" BR2_TARGET_TI_K3_IMAGE_GEN=y -BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=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="2022.10"
configs/ti_am64x_sk_defconfig +2 -1
@@ -11,6 +11,8 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am642-sk" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_PACKAGE_LINUX_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX=y +BR2_PACKAGE_TI_K3=y +BR2_PACKAGE_TI_K3_SOC_AM64X=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
@@ -23,7 +25,6 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y BR2_TARGET_OPTEE_OS_PLATFORM="k3-am64x" BR2_TARGET_TI_K3_IMAGE_GEN=y -BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM64X=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="2022.10"
package/Config.in +1 -0
@@ -629,6 +629,7 @@ endmenu source "package/sysstat/Config.in" source "package/targetcli-fb/Config.in" source "package/ti-gfx/Config.in" + source "package/ti-k3/Config.in" source "package/ti-sgx-demos/Config.in" source "package/ti-sgx-km/Config.in" source "package/ti-sgx-um/Config.in"
package/ti-k3/Config.in new file +59 -0
59 lines not on this page · raw message
package/ti-k3/ti-k3.mk new file +7 -0
@@ -0,0 +1,7 @@ +################################################################################ +# +# ti-k3 +# +################################################################################ + +include $(sort $(wildcard package/ti-k3/*/*.mk))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 14/23 package/ti-k3: disable HS-FS for AM65 SOC
In reply to Dario BinacchiIt seems that some TI K3 SoC variant doesn't provide all SECTYPE.
For example: AM65 provide only GP or HS, there is no HS-FS.
This can be checked in meta-ti:
meta-ti-bsp/conf/machine/include/am65xx.inc:IMAGE_BOOT_FILES += "tiboot3-am65x_sr2-gp-evm.bin" meta-ti-bsp/conf/machine/include/am65xx.inc:IMAGE_BOOT_FILES += "tiboot3-am65x_sr2-hs-evm.bin"
So BR2_PACKAGE_TI_K3_SECTYPE_HS_FS must not be selected if BR2_PACKAGE_TI_K3_SOC_AM65X is used.
---
Added in v7
--- package/ti-k3/Config.in | 1 + 1 file changed, 1 insertion(+)
package/ti-k3/Config.in +1 -0
@@ -32,6 +32,7 @@ config BR2_PACKAGE_TI_K3_SECTYPE_GP config BR2_PACKAGE_TI_K3_SECTYPE_HS_FS bool "hs-fs" + depends on !BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE_HS bool "hs"
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 15/23 boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin
In reply to Dario BinacchiRecent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory.
The use of find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simple cp' command.
---
Changes in v8:
- Use the find' command in pipe with the cp' command.
Changes in v6:
- Replace find' command with cp' one.
Changes in v5:
- Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin
Added in v4
--- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +4 -0
@@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; endef $(eval $(kconfig-package))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin
Hello Dario,
Le 01/03/2024 à 14:36, Dario Binacchi a écrit :
Quoted 33 lines
Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory.
The use of
find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simplecp' command.Signed-off-by Dario Binacchi <[email protected]>---
Changes in v8:
- Use thefind' command in pipe with thecp' command.Changes in v6:
- Replacefind' command withcp' one.Changes in v5:
- Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.binAdded in v4
Signed-off-by Dario Binacchi <[email protected]>--- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk define TI_K3_R5_LOADER_BUILD_CMDS · line 78
Quoted 9 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +4
-0@@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \;
I believe there is missing step here for the AM65 variant (using split binary based Boot Flow) [1].
With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman (ti-k3-r5-loader) otherwise the system won't boot.
Too bad that we don't have a AM65 defconfig for testing.
Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ?
On my side, I have a patch series for the SK-TDA4VM that also requires sysfw*.itb binary.
[1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html
Best regards,
Romain
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk define TI_K3_R5_LOADER_BUILD_CMDS · line 81
Quoted 3 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0endef $(eval $(kconfig-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin
Hello Romain,
Quoted 53 lines · Romain Naour
Hello Dario,
Quoted 33 lines · Dario Binacchi
Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory.
The use of
find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simplecp' command.Signed-off-by Dario Binacchi <[email protected]>---
Changes in v8:
- Use thefind' command in pipe with thecp' command.Changes in v6:
- Replacefind' command withcp' one.Changes in v5:
- Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.binAdded in v4
Signed-off-by Dario Binacchi <[email protected]>--- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0boot/ti-k3-r5-loader/ti-k3-r5-loader.mk define TI_K3_R5_LOADER_BUILD_CMDS · line 78
Quoted 9 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +4
-0@@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \;I believe there is missing step here for the AM65 variant (using split binary based Boot Flow) [1].
With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman (ti-k3-r5-loader) otherwise the system won't boot.
Quoted 7 lines
Too bad that we don't have a AM65 defconfig for testing.
Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ?On my side, I have a patch series for the SK-TDA4VM that also requires sysfw*.itb binary.
[1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html
Can we, for now, consider this modification unnecessary, merge the series, and proceed later
with any further improvements? Especially considering that there isn't currently a configuration
for am65 in Buildroot?
Thanks and regards,
Dario
Quoted 9 lines
Best regards,
RomainQuoted 3 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0endef $(eval $(kconfig-package))
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
Re: [Buildroot] [PATCH v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin
Hi Dario, Romain,
Quoted 55 lines · Dario Binacchi
Hello Romain,
Quoted 52 lines · Romain Naour
Hello Dario,
Quoted 33 lines · Dario Binacchi
Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory.
The use of
find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simplecp' command.Signed-off-by Dario Binacchi <[email protected]>---
Changes in v8:
- Use thefind' command in pipe with thecp' command.Changes in v6:
- Replacefind' command withcp' one.Changes in v5:
- Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.binAdded in v4
Signed-off-by Dario Binacchi <[email protected]>--- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0boot/ti-k3-r5-loader/ti-k3-r5-loader.mk define TI_K3_R5_LOADER_BUILD_CMDS · line 78
Quoted 9 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +4
-0@@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \;I believe there is missing step here for the AM65 variant (using split binary based Boot Flow) [1].
With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman (ti-k3-r5-loader) otherwise the system won't boot.
Correct, good catch Romain.
Quoted 5 lines
Quoted 5 lines
Too bad that we don't have a AM65 defconfig for testing.
Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ?On my side, I have a patch series for the SK-TDA4VM that also requires sysfw*.itb binary.
Romain, Would you mind rolling this 'cp' addition into your upcoming J721E* variant series? Since it's the same boot architecture I think that would be a good combination, and this way you can make sure it really works for you.
Then, as a follow-up, I would then like to prepare/test an AM65 defconfig and related board support and submit it upstream. I feel I really want to take this on since I consider AM65 to be "my baby" (I was the first to integrate/debug/bringup and successfully execute the full ROM->U-Boot->Linux boot flow before we even had silicon...:)
Thanks, Andreas
--
Andreas Dannenberg
Texas Instruments Inc
Quoted 13 lines
Quoted 2 lines
[1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html
Can we, for now, consider this modification unnecessary, merge the series, and proceed later
with any further improvements? Especially considering that there isn't currently a configuration
for am65 in Buildroot?Thanks and regards,
DarioQuoted 1 line
Quoted 29 lines
Quoted 8 lines
Best regards,
RomainQuoted 3 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0endef $(eval $(kconfig-package))Signature · 17 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
Re: [Buildroot] [PATCH v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin
Hi Andreas, Dario, All,
Le 05/03/2024 à 08:07, Andreas Dannenberg a écrit :
Quoted 64 lines
Hi Dario, Romain,
Quoted 55 lines · Dario Binacchi
Hello Romain,
Quoted 52 lines · Romain Naour
Hello Dario,
Quoted 33 lines · Dario Binacchi
Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory.
The use of
find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simplecp' command.Signed-off-by Dario Binacchi <[email protected]>---
Changes in v8:
- Use thefind' command in pipe with thecp' command.Changes in v6:
- Replacefind' command withcp' one.Changes in v5:
- Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.binAdded in v4
Signed-off-by Dario Binacchi <[email protected]>--- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+)boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0boot/ti-k3-r5-loader/ti-k3-r5-loader.mk define TI_K3_R5_LOADER_BUILD_CMDS · line 78
Quoted 9 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +4
-0@@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \;I believe there is missing step here for the AM65 variant (using split binary based Boot Flow) [1].
With the ti-k3-image-gen removal, we need to copy sysfw*.itb generated by binman (ti-k3-r5-loader) otherwise the system won't boot.
Correct, good catch Romain.
Quoted 3 lines
Quoted 3 lines
Too bad that we don't have a AM65 defconfig for testing.
Andreas, Do you think you can contribute a new defconfig for the TMDX654IDKEVM ?
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
On my side, I have a patch series for the SK-TDA4VM that also requires sysfw*.itb binary.
Romain, Would you mind rolling this 'cp' addition into your upcoming J721E* variant series? Since it's the same boot architecture I think that would be a good combination, and this way you can make sure it really works for you.
Sorry, I was AFK last week and I haven't reviewed the v9 yet.
Quoted 6 lines
Then, as a follow-up, I would then like to prepare/test an AM65 defconfig and related board support and submit it upstream. I feel I really want to take this on since I consider AM65 to be "my baby" (I was the first to integrate/debug/bringup and successfully execute the full ROM->U-Boot->Linux boot flow before we even had silicon...:)
:)
Best regards,
Romain
Quoted 49 lines
Thanks, Andreas
--
Andreas Dannenberg
Texas Instruments IncQuoted 42 lines
Quoted 2 lines
[1] http://lists.busybox.net/pipermail/buildroot/2024-February/685666.html
Can we, for now, consider this modification unnecessary, merge the series, and proceed later
with any further improvements? Especially considering that there isn't currently a configuration
for am65 in Buildroot?Thanks and regards,
DarioQuoted 9 lines
Best regards,
RomainQuoted 3 lines
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +0
-0endef $(eval $(kconfig-package))Signature · 17 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
PATCH v8 16/23 configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01
In reply to Dario BinacchiThe 2024.01 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.
- U-Boot is capable of building tiboot3.bin using Binman. So it's no longer necessary to use custom tools like ti-k3-image-gen.
Tested on SK-AM62B-P1.
---
Changes in v7:
- Add devicetree k3-am625-sk.dtb to extlinux.conf
- Improve error messages in post-build.sh script
Changes in v6:
- Enable BR2_TARGET_UBOOT_USE_BINMAN option
Changes in v5:
- Update commit message.
Changes in v4:
- bump to 204.01 instead of 2023.10
- Update the commit message
- Replace 'PARTUUID=00000000-02' with '/dev/mmcblk1p2' where to get rootfs in the BR2_ROOTFS_POST_SCRIPT_ARGS insided the ti_am62x_sk_defconfig.
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 | 54 +++++++++++++++++++++++++++++++++ board/ti/am62x-sk/post-image.sh | 5 +++ configs/ti_am62x_sk_defconfig | 13 ++++---- 4 files changed, 72 insertions(+), 7 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
@@ -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 +54 -0
54 lines not on this page · raw message
board/ti/am62x-sk/post-image.sh new file +5 -0
@@ -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 -6
@@ -1,14 +1,14 @@ BR2_aarch64=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=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 -d k3-am625-sk.dtb -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.16" 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_PACKAGE_TI_K3=y
@@ -24,20 +24,21 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y BR2_TARGET_OPTEE_OS_PLATFORM="k3-am62x" -BR2_TARGET_TI_K3_IMAGE_GEN=y +BR2_TARGET_TI_K3_BOOT_FIRMWARE=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="2022.10" +BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5" 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="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am62x_evm_a53" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_TI_K3_DM=y +BR2_TARGET_UBOOT_USE_BINMAN=y # BR2_TARGET_UBOOT_FORMAT_BIN is not set BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 17/23 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18
In reply to Dario BinacchiTested on SK-AM62B-P1.
---
Changes in v8
- Bump to 6.6.18 from 6.6.17
- Update commit message
Changes in v5
- Bump to 6.6.17 from 6.6.1
- Update commit message
Changes in v4
- Add BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6 to ti_am62x_sk_defconfig.
no changes since v1
--- configs/ti_am62x_sk_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
configs/ti_am62x_sk_defconfig +2 -2
@@ -1,11 +1,11 @@ BR2_aarch64=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_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 -d k3-am625-sk.dtb -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" 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
PATCH v8 18/23 board/ti/am62x-sk: generalize post-build.sh
In reply to Dario BinacchiRemoving any explicit reference to the ti_am62x_sk_defconfig configuration, the script can also be used by other configurations or at least by ti_am64x_sk_defconfig.
---
Added in v8
--- board/ti/am62x-sk/post-build.sh | 10 +++++++--- configs/ti_am62x_sk_defconfig | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-)
board/ti/am62x-sk/post-build.sh +7 -3
@@ -12,8 +12,8 @@ EOF exit 1 } -o='c:d:r:x:' -O='console:,devicetree:,root:,extra-args:' +o='c:d:l:r:x:' +O='console:,devicetree:,label:,root:,extra-args:' opts="$(getopt -n "${0##*/}" -o "${o}" -l "${O}" -- "${@}")" eval set -- "${opts}" while [ ${#} -gt 0 ]; do
@@ -24,6 +24,9 @@ while [ ${#} -gt 0 ]; do (-d|--devicetree) DEVICETREE="${2}"; shift 2 ;; + (-l|--label) + LABEL="${2}"; shift 2 + ;; (-r|--root) ROOT="${2}"; shift 2 ;;
@@ -38,6 +41,7 @@ done [ -n "${CONSOLE}" ] || die "Missing \`console' argument" [ -n "${DEVICETREE}" ] || die "Missing \`devicetree' argument" +[ -n "${LABEL}" ] || die "Missing \`label' argument" [ -n "${ROOT}" ] || die "Missing \`root' argument" append="console=${CONSOLE} root=${ROOT} rw rootfstype=ext4 rootwait" if [ -n "${EXTRA_ARGS}" ]; then
@@ -46,7 +50,7 @@ fi mkdir -p "${BINARIES_DIR}" cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf" - label am62x-sk-buildroot + label ${LABEL} kernel /Image fdtdir / devicetree /${DEVICETREE}
configs/ti_am62x_sk_defconfig +1 -1
@@ -2,7 +2,7 @@ BR2_aarch64=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_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 -d k3-am625-sk.dtb -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am625-sk.dtb -l am62x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18"
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 19/23 board/ti/am62x-sk: move post-{build, image}.sh to board/ti/common/am6xx
In reply to Dario BinacchiThe patch makes it clear that the moved scripts can be used by the am6{2,4}x platforms.
---
Added in v8
---
board/ti/am62x-sk/post-image.sh | 5 -----
board/ti/{am62x-sk => common/am6xx}/post-build.sh | 0
board/ti/common/am6xx/post-image.sh | 11 +++++++++++
configs/ti_am62x_sk_defconfig | 4 ++--
4 files changed, 13 insertions(+), 7 deletions(-)
delete mode 100755 board/ti/am62x-sk/post-image.sh
rename board/ti/{am62x-sk => common/am6xx}/post-build.sh (100%)
create mode 100755 board/ti/common/am6xx/post-image.shboard/ti/am62x-sk/post-image.sh deleted +0 -5
@@ -1,5 +0,0 @@ -#!/bin/sh -x - -BOARD_DIR="$(dirname "$0")" - -support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg"
board/ti/common/am6xx/post-build.sh renamed from board/ti/am62x-sk/post-build.sh +0 -0
board/ti/common/am6xx/post-image.sh new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/sh -x + +board_dir() { + if grep -Eq "^BR2_DEFCONFIG=.*/ti_am64x_sk_defconfig\"$" "${BR2_CONFIG}"; then + echo "am64x-sk" + else + echo "am62x-sk" + fi +} + +support/scripts/genimage.sh -c "board/ti/$(board_dir)/genimage.cfg"
configs/ti_am62x_sk_defconfig +2 -2
@@ -1,7 +1,7 @@ BR2_aarch64=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_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_BUILD_SCRIPT="board/ti/common/am6xx/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/common/am6xx/post-image.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am625-sk.dtb -l am62x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 20/23 package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
In reply to Dario BinacchiIn the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
- HS_FS -> tiboot3_am64x_sr2-hs-fs-evm.bin
The patch allows you to identify the correct file based on the SEC_TYPE option.
---
Added in v8
--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/ti-k3/Config.in +2 -1
@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
Hi Dario,
Le 01/03/2024 à 14:36, Dario Binacchi a écrit :
Quoted 8 lines
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
-HS_FS-> tiboot3_am64x_sr2-hs-fs-evm.binThe patch allows you to identify the correct file based on the
SEC_TYPEoption.
It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin.
Also other TI K3 SoC variant like AM65 provide a sr2 binary:
tiboot3-am62ax-hs-fs-evm.bin
tiboot3-am62ax-gp-evm.bin
tiboot3-am62ax-hs-evm.bin
tiboot3-am62px-hs-fs-evm.bin
tiboot3-am62x-hs-fs-evm.bin
tiboot3-am62x-gp-evm.bin
tiboot3-am62x-hs-evm.bin
tiboot3-am64x_sr2-hs-fs-evm.bin
tiboot3-am64x-gp-evm.bin
tiboot3-am64x_sr2-hs-evm.bin
tiboot3-am65x_sr2-gp-evm.bin
tiboot3-am65x_sr2-hs-evm.bin
tiboot3-j7200-gp-evm.bin
tiboot3-j7200_sr2-hs-fs-evm.bin
tiboot3-j7200_sr2-hs-evm.bin
tiboot3-j721e-gp-evm.bin
tiboot3-j721e_sr2-hs-fs-evm.bin
tiboot3-j721e_sr1_1-hs-evm.bin
tiboot3-j721s2-gp-evm.bin
tiboot3-j721s2-hs-fs-evm.bin
tiboot3-j722s-hs-fs-evm.bin
tiboot3-j784s4-gp-evm.bin
tiboot3-j784s4-hs-fs-evm.bin
Maybe we need to introduce TI_K3_R5_LOADER_SOC_SUFFIX to handle sr2, sr1_1 or "" ?
Best regards,
Romain
Quoted 17 lines
Signed-off-by Dario Binacchi <[email protected]>---
Added in v8
Signed-off-by Dario Binacchi <[email protected]>--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/ti-k3/Config.in +0
-0
package/ti-k3/Config.in config BR2_PACKAGE_TI_K3_SOC · line 50
Quoted 9 lines
package/ti-k3/Config.in +2
-1@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
Hi Romain, All,
Quoted 10 lines · Romain Naour
Hi Dario,
Quoted 6 lines · Dario Binacchi
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
-HS_FS-> tiboot3_am64x_sr2-hs-fs-evm.bin
Quoted 5 lines
Quoted 2 lines
The patch allows you to identify the correct file based on the
SEC_TYPEoption.It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin.
I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01
Quoted 31 lines
Also other TI K3 SoC variant like AM65 provide a sr2 binary:
tiboot3-am62ax-hs-fs-evm.bin
tiboot3-am62ax-gp-evm.bin
tiboot3-am62ax-hs-evm.bintiboot3-am62px-hs-fs-evm.bin
tiboot3-am62x-hs-fs-evm.bin
tiboot3-am62x-gp-evm.bin
tiboot3-am62x-hs-evm.bintiboot3-am64x_sr2-hs-fs-evm.bin
tiboot3-am64x-gp-evm.bin
tiboot3-am64x_sr2-hs-evm.bintiboot3-am65x_sr2-gp-evm.bin
tiboot3-am65x_sr2-hs-evm.bintiboot3-j7200-gp-evm.bin
tiboot3-j7200_sr2-hs-fs-evm.bin
tiboot3-j7200_sr2-hs-evm.bintiboot3-j721e-gp-evm.bin
tiboot3-j721e_sr2-hs-fs-evm.bin
tiboot3-j721e_sr1_1-hs-evm.bintiboot3-j721s2-gp-evm.bin
tiboot3-j721s2-hs-fs-evm.bin
Quoted 7 lines
tiboot3-j722s-hs-fs-evm.bin
tiboot3-j784s4-gp-evm.bin
tiboot3-j784s4-hs-fs-evm.binMaybe we need to introduce
TI_K3_R5_LOADER_SOC_SUFFIXto handle sr2,sr1_1or "" ?
At first, I also thought about a new configuration to specify an additional suffix, but after verifying
that BR2_PACKAGE_TI_K3_SOC is only used in boot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the
adopted solution:
- default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X &&
BR2_PACKAGE_TI_K3_SECTYPE_GP
+ default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X &&
!BR2_PACKAGE_TI_K3_SECTYPE_GP
seemed the simplest to me.
And I think this approach can also be used for the variants you listed, since for each {SOC,SEC_TYPE} pair
there exists one and only one tiboot3.bin.
Furthermore, if I'm not missing anything, this remains the only adjustment we need to make since there are no
other configurations in buildroot among those you listed. So, in my humble opinion, for now, this should be fine.
So, please let me know if, in addition to squashing this patch into "[21/23] configs/ti_am64x_sk_defconfig:
bump U-Boot version to 2024.01", I need to make any other adjustments for version 9.
Thanks and regards,
Dario
Quoted 31 lines
Best regards,
RomainQuoted 26 lines
Signed-off-by Dario Binacchi <[email protected]>---
Added in v8
Signed-off-by Dario Binacchi <[email protected]>--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/ti-k3/Config.in +2
-1@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE
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
Re: [Buildroot] [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
Hello Dario,
Le 02/03/2024 à 15:21, Dario Binacchi a écrit :
Quoted 13 lines
Hi Romain, All,
Quoted 10 lines · Romain Naour
Hi Dario,
Quoted 6 lines · Dario Binacchi
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
-HS_FS-> tiboot3_am64x_sr2-hs-fs-evm.bin
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
The patch allows you to identify the correct file based on the
SEC_TYPEoption.It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin.
I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01
Ok
Quoted 51 lines
Quoted 32 lines
Also other TI K3 SoC variant like AM65 provide a sr2 binary:
tiboot3-am62ax-hs-fs-evm.bin
tiboot3-am62ax-gp-evm.bin
tiboot3-am62ax-hs-evm.bintiboot3-am62px-hs-fs-evm.bin
tiboot3-am62x-hs-fs-evm.bin
tiboot3-am62x-gp-evm.bin
tiboot3-am62x-hs-evm.bintiboot3-am64x_sr2-hs-fs-evm.bin
tiboot3-am64x-gp-evm.bin
tiboot3-am64x_sr2-hs-evm.bintiboot3-am65x_sr2-gp-evm.bin
tiboot3-am65x_sr2-hs-evm.bintiboot3-j7200-gp-evm.bin
tiboot3-j7200_sr2-hs-fs-evm.bin
tiboot3-j7200_sr2-hs-evm.bintiboot3-j721e-gp-evm.bin
tiboot3-j721e_sr2-hs-fs-evm.bin
tiboot3-j721e_sr1_1-hs-evm.bintiboot3-j721s2-gp-evm.bin
tiboot3-j721s2-hs-fs-evm.binQuoted 7 lines
tiboot3-j722s-hs-fs-evm.bin
tiboot3-j784s4-gp-evm.bin
tiboot3-j784s4-hs-fs-evm.binMaybe we need to introduce
TI_K3_R5_LOADER_SOC_SUFFIXto handle sr2,sr1_1or "" ?At first, I also thought about a new configuration to specify an additional suffix, but after verifying
thatBR2_PACKAGE_TI_K3_SOCis only used inboot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the
adopted solution:(quoted diff) +1
-1- default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X &&
BR2_PACKAGE_TI_K3_SECTYPE_GP
+ default "am64x_sr2" ifBR2_PACKAGE_TI_K3_SOC_AM64X&&
!BR2_PACKAGE_TI_K3_SECTYPE_GP
Quoted 5 lines
seemed the simplest to me.
And I think this approach can also be used for the variants you listed, since for each {SOC,SEC_TYPE} pair
there exists one and only one tiboot3.bin.
What about removing BR2_PACKAGE_TI_K3_SOC and BR2_PACKAGE_TI_K3_SECTYPE (inherited from ti-k3-image-gen, so we need them until we can remove this package) we just need to know the name of the file we should copy based on TI K3 SoC and Security type selection.
config BR2_PACKAGE_TI_K3_TIBOOT3_BIN
string default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_GP default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_HS default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX &&
BR2_PACKAGE_TI_K3_SECTYPE_HS_FS
...
define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS
cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin
cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.bin
endef
So we can avoid using complex find -regex -exec -cp command :)
BR2_PACKAGE_TI_K3_TIBOOT3_BIN can be defined in ti-k3-r5-loader package.
Best regards,
Romain
Quoted 6 lines
Furthermore, if I'm not missing anything, this remains the only adjustment we need to make since there are no
other configurations in buildroot among those you listed. So, in my humble opinion, for now, this should be fine.
Quoted 41 lines
So, please let me know if, in addition to squashing this patch into "[21/23] configs/ti_am64x_sk_defconfig:
bump U-Boot version to 2024.01", I need to make any other adjustments for version 9.Thanks and regards,
DarioQuoted 31 lines
Best regards,
RomainQuoted 26 lines
Signed-off-by Dario Binacchi <[email protected]>---
Added in v8
Signed-off-by Dario Binacchi <[email protected]>--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/ti-k3/Config.in +2
-1@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
Hello Romain,
Quoted 100 lines · Romain Naour
Hello Dario,
Quoted 13 lines · Dario Binacchi
Hi Romain, All,
Quoted 10 lines · Romain Naour
Hi Dario,
Quoted 6 lines · Dario Binacchi
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
-HS_FS-> tiboot3_am64x_sr2-hs-fs-evm.binQuoted 8 lines
Quoted 5 lines
Quoted 2 lines
The patch allows you to identify the correct file based on the
SEC_TYPEoption.It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin.
I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01
Ok
Quoted 51 lines
Quoted 32 lines
Also other TI K3 SoC variant like AM65 provide a sr2 binary:
tiboot3-am62ax-hs-fs-evm.bin
tiboot3-am62ax-gp-evm.bin
tiboot3-am62ax-hs-evm.bintiboot3-am62px-hs-fs-evm.bin
tiboot3-am62x-hs-fs-evm.bin
tiboot3-am62x-gp-evm.bin
tiboot3-am62x-hs-evm.bintiboot3-am64x_sr2-hs-fs-evm.bin
tiboot3-am64x-gp-evm.bin
tiboot3-am64x_sr2-hs-evm.bintiboot3-am65x_sr2-gp-evm.bin
tiboot3-am65x_sr2-hs-evm.bintiboot3-j7200-gp-evm.bin
tiboot3-j7200_sr2-hs-fs-evm.bin
tiboot3-j7200_sr2-hs-evm.bintiboot3-j721e-gp-evm.bin
tiboot3-j721e_sr2-hs-fs-evm.bin
tiboot3-j721e_sr1_1-hs-evm.bintiboot3-j721s2-gp-evm.bin
tiboot3-j721s2-hs-fs-evm.binQuoted 7 lines
tiboot3-j722s-hs-fs-evm.bin
tiboot3-j784s4-gp-evm.bin
tiboot3-j784s4-hs-fs-evm.binMaybe we need to introduce
TI_K3_R5_LOADER_SOC_SUFFIXto handle sr2,sr1_1or "" ?At first, I also thought about a new configuration to specify an additional suffix, but after verifying
thatBR2_PACKAGE_TI_K3_SOCis only used inboot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the
adopted solution:(quoted diff) +1
-1- default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X &&
BR2_PACKAGE_TI_K3_SECTYPE_GP
+ default "am64x_sr2" ifBR2_PACKAGE_TI_K3_SOC_AM64X&&
!BR2_PACKAGE_TI_K3_SECTYPE_GPQuoted 5 lines
seemed the simplest to me.
And I think this approach can also be used for the variants you listed, since for each {SOC,SEC_TYPE} pair
there exists one and only one tiboot3.bin.What about removing
BR2_PACKAGE_TI_K3_SOCandBR2_PACKAGE_TI_K3_SECTYPE(inherited from ti-k3-image-gen, so we need them until we can remove this package) we just need to know the name of the file we should copy based on TI K3 SoC and Security type selection.config
BR2_PACKAGE_TI_K3_TIBOOT3_BINstring default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_GP default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_HS default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX &&
BR2_PACKAGE_TI_K3_SECTYPE_HS_FS
...
Quoted 8 lines
define
TI_K3_R5_LOADER_INSTALL_IMAGES_CMDScp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.binendef
So we can avoid using complex find -regex -exec -cp command :)
BR2_PACKAGE_TI_K3_TIBOOT3_BINcan be defined in ti-k3-r5-loader package.
Sure, for me it's fine.
However, this is an additional patch to add that isn't necessary at this moment. Can we consider adding it after this series has been merged? I recall that currently the compilation of
the Hs and HS-FS variants for am62x are broken. Therefore, having verified with Andreas tests that the
changes made in this series are okay for am62x_sk_defconfig and am64x_sk_defconfig, I would merge
the series as soon as possible and then proceed with implementing further improvements.
So, my intention is to submit version 9 with the only change being the squash of this patch to [PATCH 21/23] "configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01".
Do you agree?
Thanks and regards,
Dario
Quoted 53 lines
Best regards,
RomainQuoted 47 lines
Furthermore, if I'm not missing anything, this remains the only adjustment we need to make since there are no
other configurations in buildroot among those you listed. So, in my humble opinion, for now, this should be fine.So, please let me know if, in addition to squashing this patch into "[21/23] configs/ti_am64x_sk_defconfig:
bump U-Boot version to 2024.01", I need to make any other adjustments for version 9.Thanks and regards,
DarioQuoted 31 lines
Best regards,
RomainQuoted 26 lines
Signed-off-by Dario Binacchi <[email protected]>---
Added in v8
Signed-off-by Dario Binacchi <[email protected]>--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/ti-k3/Config.in +2
-1@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE
--
Dario Binacchi
Senior Embedded Linux Developer
__________________________________
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
Re: [Buildroot] [PATCH v8 20/23] package/ti-k3: fix BR2_PACKAGE_TI_K3_SOC setting for am64x SOC
Dario, Romain,
Quoted 114 lines · Dario Binacchi
Hello Romain,
Quoted 100 lines · Romain Naour
Hello Dario,
Quoted 13 lines · Dario Binacchi
Hi Romain, All,
Quoted 10 lines · Romain Naour
Hi Dario,
Quoted 6 lines · Dario Binacchi
In the case of SOC am64x, ti-k3-r5-loader creates the following tiboot3.bin files:
- GP -> tiboot3_am64x-gp-evm.bin
- HS -> tiboot3_am64x_sr2-hs-evm.bin
-HS_FS-> tiboot3_am64x_sr2-hs-fs-evm.binQuoted 8 lines
Quoted 5 lines
Quoted 2 lines
The patch allows you to identify the correct file based on the
SEC_TYPEoption.It seems this patch should be merged with the AM64x u-boot version bump since ti-k3-r5 (aka u-boot) now provide tiboot3.bin.
I will squash it to [PATCH 21/23] configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01
Ok
Quoted 51 lines
Quoted 32 lines
Also other TI K3 SoC variant like AM65 provide a sr2 binary:
tiboot3-am62ax-hs-fs-evm.bin
tiboot3-am62ax-gp-evm.bin
tiboot3-am62ax-hs-evm.bintiboot3-am62px-hs-fs-evm.bin
tiboot3-am62x-hs-fs-evm.bin
tiboot3-am62x-gp-evm.bin
tiboot3-am62x-hs-evm.bintiboot3-am64x_sr2-hs-fs-evm.bin
tiboot3-am64x-gp-evm.bin
tiboot3-am64x_sr2-hs-evm.bintiboot3-am65x_sr2-gp-evm.bin
tiboot3-am65x_sr2-hs-evm.bintiboot3-j7200-gp-evm.bin
tiboot3-j7200_sr2-hs-fs-evm.bin
tiboot3-j7200_sr2-hs-evm.bintiboot3-j721e-gp-evm.bin
tiboot3-j721e_sr2-hs-fs-evm.bin
tiboot3-j721e_sr1_1-hs-evm.bintiboot3-j721s2-gp-evm.bin
tiboot3-j721s2-hs-fs-evm.binQuoted 7 lines
tiboot3-j722s-hs-fs-evm.bin
tiboot3-j784s4-gp-evm.bin
tiboot3-j784s4-hs-fs-evm.binMaybe we need to introduce
TI_K3_R5_LOADER_SOC_SUFFIXto handle sr2,sr1_1or "" ?At first, I also thought about a new configuration to specify an additional suffix, but after verifying
thatBR2_PACKAGE_TI_K3_SOCis only used inboot/ti-k3-r5-loader/ti-k3-r5-loader.mk, the
adopted solution:(quoted diff) +1
-1- default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X &&
BR2_PACKAGE_TI_K3_SECTYPE_GP
+ default "am64x_sr2" ifBR2_PACKAGE_TI_K3_SOC_AM64X&&
!BR2_PACKAGE_TI_K3_SECTYPE_GPQuoted 5 lines
seemed the simplest to me.
And I think this approach can also be used for the variants you listed, since for each {SOC,SEC_TYPE} pair
there exists one and only one tiboot3.bin.What about removing
BR2_PACKAGE_TI_K3_SOCandBR2_PACKAGE_TI_K3_SECTYPE(inherited from ti-k3-image-gen, so we need them until we can remove this package) we just need to know the name of the file we should copy based on TI K3 SoC and Security type selection.config
BR2_PACKAGE_TI_K3_TIBOOT3_BINstring default "tiboot3-am62ax-gp-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_GP default "tiboot3-am62ax-hs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX && BR2_PACKAGE_TI_K3_SECTYPE_HS default "tiboot3-am62ax-hs-fs-evm.bin" if BR2_PACKAGE_TI_K3_SOC_AM62AX &&
BR2_PACKAGE_TI_K3_SECTYPE_HS_FS
...Quoted 8 lines
define
TI_K3_R5_LOADER_INSTALL_IMAGES_CMDScp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin cp $(@D)/$(BR2_PACKAGE_TI_K3_TIBOOT3_BIN) $(BINARIES_DIR)/tiboot3.binendef
So we can avoid using complex find -regex -exec -cp command :)
BR2_PACKAGE_TI_K3_TIBOOT3_BINcan be defined in ti-k3-r5-loader package.Sure, for me it's fine.
Quoted 9 lines
However, this is an additional patch to add that isn't necessary at this moment. Can we consider adding it after this series has been merged? I recall that currently the compilation of
the Hs and HS-FS variants for am62x are broken. Therefore, having verified with Andreas tests that the
changes made in this series are okay foram62x_sk_defconfigandam64x_sk_defconfig, I would merge
the series as soon as possible and then proceed with implementing further improvements.
I'd agree here, I think what we have now and what has already been posted as v9 is more than good enough to make a cut and hopefully have an initial solution that's acceptable to others here as well, and serve as a base for future additions/improvements. Software development is iterative IMHO anyways.
Thanks, Andreas
Quoted 76 lines
So, my intention is to submit version 9 with the only change being the squash of this patch to [PATCH 21/23] "configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01".
Do you agree?
Thanks and regards,
DarioQuoted 53 lines
Best regards,
RomainQuoted 47 lines
Furthermore, if I'm not missing anything, this remains the only adjustment we need to make since there are no
other configurations in buildroot among those you listed. So, in my humble opinion, for now, this should be fine.So, please let me know if, in addition to squashing this patch into "[21/23] configs/ti_am64x_sk_defconfig:
bump U-Boot version to 2024.01", I need to make any other adjustments for version 9.Thanks and regards,
DarioQuoted 31 lines
Best regards,
RomainQuoted 26 lines
Signed-off-by Dario Binacchi <[email protected]>---
Added in v8
Signed-off-by Dario Binacchi <[email protected]>--- package/ti-k3/Config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/ti-k3/Config.in +2
-1@@ -43,7 +43,8 @@ config BR2_PACKAGE_TI_K3_SOC string default "am62ax" if BR2_PACKAGE_TI_K3_SOC_AM62AX default "am62x" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X + default "am64x" if BR2_PACKAGE_TI_K3_SOC_AM64X && BR2_PACKAGE_TI_K3_SECTYPE_GP + default "am64x_sr2" if BR2_PACKAGE_TI_K3_SOC_AM64X && !BR2_PACKAGE_TI_K3_SECTYPE_GP default "am65x" if BR2_PACKAGE_TI_K3_SOC_AM65X config BR2_PACKAGE_TI_K3_SECTYPE--
Dario Binacchi
Senior Embedded Linux Developer
__________________________________
Quoted 8 lines
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
PATCH v8 21/23 configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01
In reply to Dario BinacchiThe 2024.01 version of U-Boot for the am64x-sk board has introduced two major changes:
- The device tree k3-am642-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.
- U-Boot is capable of building tiboot3.bin using Binman. So it's no longer necessary to use custom tools like ti-k3-image-gen.
---
Added in v8
--- board/ti/am64x-sk/genimage.cfg | 7 ++++++- configs/ti_am64x_sk_defconfig | 13 +++++++------ 2 files changed, 13 insertions(+), 7 deletions(-)
board/ti/am64x-sk/genimage.cfg +6 -1
@@ -4,10 +4,15 @@ image boot.vfat { "tiboot3.bin", "tispl.bin", "u-boot.img", + "k3-am642-sk.dtb", + "Image" + } + file extlinux/extlinux.conf { + image = extlinux.conf } } - size = 16M + size = 64M } image sdcard.img {
configs/ti_am64x_sk_defconfig +7 -6
@@ -1,14 +1,14 @@ BR2_aarch64=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=y -BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" -BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am64x-sk/genimage.cfg" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/common/am6xx/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/common/am6xx/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am642-sk.dtb -l am64x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.16" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am642-sk" -BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_PACKAGE_LINUX_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX=y BR2_PACKAGE_TI_K3=y
@@ -24,19 +24,20 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_TARGET_BOARD="lite" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y BR2_TARGET_OPTEE_OS=y BR2_TARGET_OPTEE_OS_PLATFORM="k3-am64x" -BR2_TARGET_TI_K3_IMAGE_GEN=y +BR2_TARGET_TI_K3_BOOT_FIRMWARE=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="2022.10" +BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am64x_evm_r5" 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="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am64x_evm_a53" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_USE_BINMAN=y # BR2_TARGET_UBOOT_FORMAT_BIN is not set BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 22/23 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18
In reply to Dario Binacchi---
Added in v8
--- configs/ti_am64x_sk_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
configs/ti_am64x_sk_defconfig +2 -2
@@ -1,11 +1,11 @@ BR2_aarch64=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/common/am6xx/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/common/am6xx/post-image.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am642-sk.dtb -l am64x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.16" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/k3-am642-sk"
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 23/23 boot/ti-k3-image-gen: remove package
In reply to Dario BinacchiFrom: Romain Naour <[email protected]>
ti-k3-image-gen tool is deprecated an replaced by binman [1].
All defconfig that was using it have been updated to use U-boot binman tool instead.
So, we can safely remove ti-k3-image-gen package.
[1] https://git.yoctoproject.org/meta-ti/commit/?id=835811cf8586926cf78a961d090f4e6150432235
---
Added in v8
--- Config.in.legacy | 7 +++ DEVELOPERS | 2 - boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 24 ---------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 -- boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ----------------------- 6 files changed, 7 insertions(+), 84 deletions(-) delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk
Config.in.legacy +7 -0
@@ -146,6 +146,13 @@ endif comment "Legacy options removed in 2024.02" +config BR2_TARGET_TI_K3_IMAGE_GEN + bool "ti-k3-image-gen removed" + select BR2_LEGACY + help + ti-k3-image-gen tool has been removed and replaced by + U-Boot binman tool (requires U-boot >= 2024.01). + config BR2_PACKAGE_TINYMEMBENCH bool "tinymembench removed" select BR2_LEGACY
DEVELOPERS +0 -2
@@ -151,7 +151,6 @@ N: Anand Gadiyar <[email protected]> F: board/ti/am62x-sk/ F: board/ti/am64x-sk/ F: boot/ti-k3-boot-firmware/ -F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ F: configs/ti_am62x_sk_defconfig F: configs/ti_am64x_sk_defconfig
@@ -3219,7 +3218,6 @@ N: Xuanhao Shi <[email protected]> F: board/ti/am62x-sk/ F: board/ti/am64x-sk/ F: boot/ti-k3-boot-firmware/ -F: boot/ti-k3-image-gen/ F: boot/ti-k3-r5-loader/ F: configs/ti_am62x_sk_defconfig F: configs/ti_am64x_sk_defconfig
boot/Config.in +0 -1
@@ -20,7 +20,6 @@ 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-image-gen/Config.in" source "boot/ti-k3-r5-loader/Config.in" source "boot/uboot/Config.in" source "boot/vexpress-firmware/Config.in"
boot/ti-k3-image-gen/Config.in deleted +0 -24
@@ -1,24 +0,0 @@ -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 - # We need FIT support in uboot-tools, which is why we select a - # host package - select BR2_PACKAGE_HOST_UBOOT_TOOLS - select BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT - help - Use TI's k3-image-gen to build a separate bare metal boot - binary from a separate SPL that is running on the R5 core. - - https://git.ti.com/cgit/k3-image-gen/k3-image-gen/ - -if BR2_TARGET_TI_K3_IMAGE_GEN - -config BR2_TARGET_TI_K3_IMAGE_GEN_FW_TYPE - string - default "ti-fs" if BR2_PACKAGE_TI_K3_SOC_AM62AX - default "ti-fs" if BR2_PACKAGE_TI_K3_SOC_AM62X - default "ti-sci" if BR2_PACKAGE_TI_K3_SOC_AM64X - default "ti-sci" if BR2_PACKAGE_TI_K3_SOC_AM65X - -endif
boot/ti-k3-image-gen/ti-k3-image-gen.hash deleted +0 -3
@@ -1,3 +0,0 @@ -# Locally calculated -sha256 f89ea4b1f5c992455b1a682fde48359221b53f3294135df4bf20feea6aea90e4 k3-image-gen-08.06.00.007.tar.gz -sha256 f012e8d000d711d0539e5b4c812fc1d3a59c10fc1e3d6ea155556f5b78286845 LICENSE
boot/ti-k3-image-gen/ti-k3-image-gen.mk deleted +0 -54
54 lines not on this page · raw message
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Dario,
Quoted 7 lines · Dario Binacchi
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 theBR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FSoption, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device.
Quoted 7 lines
Furthermore, this version complete the series by updating the
ti_am64x_sk_defconfigtoo and remove ti-k3-image-gen, as requested by
Romain Naour:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I have successfully executed compilation tests for all possible combinations of platform and security type:
am62x -> GP, HS, HS-FS
am64x -> GP, HS, HS-FS
Thank you for the changes and the updated submission. I'll build and boot-test your v8 on all 4 hardware variants of the above platforms and report back before the end of this weekend.
Also yesterday I was able to get graphics to work on AM62x with a few patches based on top of your v7 series, using the Imagination Rogue Power VR GPU driver and Mesa, and was able to run (accelerated) Weston. Will pobably submit an RFC of this next week.
--
Andreas Dannenberg
Texas Instruments Inc
Quoted 59 lines
The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board.
Dario Binacchi (22):
configs/ti_am62x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am64x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant boot/ti-k3-r5-loader: set binman environment
boot/uboot: addBR2_TARGET_UBOOT_USE_BINMANoption package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalizepost-build.shboard/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx package/ti-k3: fixBR2_PACKAGE_TI_K3_SOCsetting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18Romain Naour (1):
boot/ti-k3-image-gen: remove packageConfig.in.legacy | 7 ++ DEVELOPERS | 2 - board/ti/am62x-sk/genimage.cfg | 7 +- board/ti/am64x-sk/genimage.cfg | 7 +- board/ti/common/am6xx/post-build.sh | 58 ++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 +++ boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++- boot/uboot/Config.in | 23 +++--- boot/uboot/uboot.mk | 12 ++- configs/ti_am62x_sk_defconfig | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++
Quoted 12 lines
25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mkSignature · 1 line
2.43.0
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Andreas Dannenberg via buildroot
Tested-by Andreas DannenbergHi Dario,
Quoted 18 lines · Andreas Dannenberg via buildroot
Hi Dario,
Quoted 7 lines · Dario Binacchi
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 theBR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FSoption, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device.Quoted 7 lines
Furthermore, this version complete the series by updating the
ti_am64x_sk_defconfigtoo and remove ti-k3-image-gen, as requested by
Romain Naour:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I have successfully executed compilation tests for all possible combinations of platform and security type:
am62x -> GP, HS, HS-FS
am64x -> GP, HS, HS-FS
Quoted 3 lines
Thank you for the changes and the updated submission. I'll build and boot-test your v8 on all 4 hardware variants of the above platforms and report back before the end of this weekend.
I just finished build and boot testing all 4 device/security combinations without any issues:
1) AM62 GP
2) AM62 HS-FS
3) AM64 GP
4) AM64 HS-FS
For this I applied your v8 series on top of... 75a3562324 ("support/scripts/pkg-stats: sort CVEs in HTML output") ...and performed 4 individual completely clean builds.
Then, I boot tested all 4 SD card images on the respective HW platforms (4 different SK boards). The boot logs of each case look pretty clean and about as expected and I've archived them here [1] if somebody is curious. While the boot logs show there's further work needed (e.g., updating TIFS/DM device firmwares to more current versions, enabling/ fixing power off functionality) all what I saw should be done as future work and not as part of this series. I think it does a great job making those device families accessible and enabling said further development.
So for the series:
[1] https://gist.github.com/adannenb-ti/35feca65e7d86a7e062a36c48efddc63
Quoted 78 lines
Also yesterday I was able to get graphics to work on AM62x with a few patches based on top of your v7 series, using the Imagination Rogue Power VR GPU driver and Mesa, and was able to run (accelerated) Weston. Will pobably submit an RFC of this next week.
--
Andreas Dannenberg
Texas Instruments IncQuoted 68 lines
The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board.
Dario Binacchi (22):
configs/ti_am62x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am64x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant boot/ti-k3-r5-loader: set binman environment
boot/uboot: addBR2_TARGET_UBOOT_USE_BINMANoption package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalizepost-build.shboard/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx package/ti-k3: fixBR2_PACKAGE_TI_K3_SOCsetting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18Romain Naour (1):
boot/ti-k3-image-gen: remove packageConfig.in.legacy | 7 ++ DEVELOPERS | 2 - board/ti/am62x-sk/genimage.cfg | 7 +- board/ti/am64x-sk/genimage.cfg | 7 +- board/ti/common/am6xx/post-build.sh | 58 ++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 +++ boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++- boot/uboot/Config.in | 23 +++--- boot/uboot/uboot.mk | 12 ++- configs/ti_am62x_sk_defconfig | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++ 25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mk
Quoted 7 lines
Quoted 3 lines
Signature · 1 line
2.43.0_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Andreas,
Quoted 47 lines · Andreas Dannenberg
Hi Dario,
Quoted 18 lines · Andreas Dannenberg via buildroot
Hi Dario,
Quoted 7 lines · Dario Binacchi
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 theBR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FSoption, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device.Quoted 7 lines
Furthermore, this version complete the series by updating the
ti_am64x_sk_defconfigtoo and remove ti-k3-image-gen, as requested by
Romain Naour:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I have successfully executed compilation tests for all possible combinations of platform and security type:
am62x -> GP, HS, HS-FS
am64x -> GP, HS, HS-FSQuoted 3 lines
Thank you for the changes and the updated submission. I'll build and boot-test your v8 on all 4 hardware variants of the above platforms and report back before the end of this weekend.
I just finished build and boot testing all 4 device/security combinations without any issues:
1) AM62 GP
2) AM62 HS-FS
3) AM64 GP
4) AM64 HS-FSFor this I applied your v8 series on top of...
75a3562324("support/scripts/pkg-stats: sort CVEs in HTML output") ...and performed 4 individual completely clean builds.Then, I boot tested all 4 SD card images on the respective HW platforms (4 different SK boards). The boot logs of each case look pretty clean and about as expected and I've archived them here [1] if somebody is curious. While the boot logs show there's further work needed (e.g., updating TIFS/DM device firmwares to more current versions, enabling/ fixing power off functionality) all what I saw should be done as future work and not as part of this series. I think it does a great job making those device families accessible and enabling said further development.
Quoted 3 lines
So for the series:
Tested-by Andreas Dannenberg <[email protected]>
Nice!
Thanks a lot for your tests!
Regards,
Dario
Quoted 91 lines
[1] https://gist.github.com/adannenb-ti/35feca65e7d86a7e062a36c48efddc63
Quoted 85 lines
Also yesterday I was able to get graphics to work on AM62x with a few patches based on top of your v7 series, using the Imagination Rogue Power VR GPU driver and Mesa, and was able to run (accelerated) Weston. Will pobably submit an RFC of this next week.
--
Andreas Dannenberg
Texas Instruments IncQuoted 68 lines
The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board.
Dario Binacchi (22):
configs/ti_am62x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am64x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant boot/ti-k3-r5-loader: set binman environment
boot/uboot: addBR2_TARGET_UBOOT_USE_BINMANoption package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalizepost-build.shboard/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx package/ti-k3: fixBR2_PACKAGE_TI_K3_SOCsetting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18Romain Naour (1):
boot/ti-k3-image-gen: remove packageConfig.in.legacy | 7 ++ DEVELOPERS | 2 - board/ti/am62x-sk/genimage.cfg | 7 +- board/ti/am64x-sk/genimage.cfg | 7 +- board/ti/common/am6xx/post-build.sh | 58 ++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 +++ boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++- boot/uboot/Config.in | 23 +++--- boot/uboot/uboot.mk | 12 ++- configs/ti_am62x_sk_defconfig | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++ 25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mkQuoted 3 lines
--
2.43.0_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
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
Michael Nazzareno Trimarchi
Tested-byHi Romain
Quoted 47 lines · Andreas Dannenberg
Hi Dario,
Quoted 18 lines · Andreas Dannenberg via buildroot
Hi Dario,
Quoted 7 lines · Dario Binacchi
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 theBR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FSoption, which, however, was buggy. This series fixes the errors and bumps the Linux kernel and U-Boot required for such a new device.Quoted 7 lines
Furthermore, this version complete the series by updating the
ti_am64x_sk_defconfigtoo and remove ti-k3-image-gen, as requested by
Romain Naour:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I have successfully executed compilation tests for all possible combinations of platform and security type:
am62x -> GP, HS, HS-FS
am64x -> GP, HS, HS-FSQuoted 3 lines
Thank you for the changes and the updated submission. I'll build and boot-test your v8 on all 4 hardware variants of the above platforms and report back before the end of this weekend.
I just finished build and boot testing all 4 device/security combinations without any issues:
1) AM62 GP
2) AM62 HS-FS
3) AM64 GP
4) AM64 HS-FSFor this I applied your v8 series on top of...
75a3562324("support/scripts/pkg-stats: sort CVEs in HTML output") ...and performed 4 individual completely clean builds.Then, I boot tested all 4 SD card images on the respective HW platforms (4 different SK boards). The boot logs of each case look pretty clean and about as expected and I've archived them here [1] if somebody is curious. While the boot logs show there's further work needed (e.g., updating TIFS/DM device firmwares to more current versions, enabling/ fixing power off functionality) all what I saw should be done as future work and not as part of this series. I think it does a great job making those device families accessible and enabling said further development.
Quoted 7 lines
So for the series:
Tested-by Andreas Dannenberg <[email protected]>[1] https://gist.github.com/adannenb-ti/35feca65e7d86a7e062a36c48efddc63
Can we merge it up?
Tested on my AM62X industrial product
Quoted 87 lines
Quoted 87 lines
Also yesterday I was able to get graphics to work on AM62x with a few patches based on top of your v7 series, using the Imagination Rogue Power VR GPU driver and Mesa, and was able to run (accelerated) Weston. Will pobably submit an RFC of this next week.
--
Andreas Dannenberg
Texas Instruments IncQuoted 68 lines
The AM62x HS-FS configuration has also been tested on the SK-AM62B-P1 board.
Dario Binacchi (22):
configs/ti_am62x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am64x_sk_defconfig: fixBR2_TARGET_OPTEE_OS_PLATFORM
setting
configs/ti_am62x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
configs/ti_am64x_sk_defconfig: explicitly set the ti-k3-r5-loader
version
boot/ti-k3-r5-loader: bump to version 2024.01 package/python-attrs: add host variant package/python-rpds-py: add host variant package/python-referencing: add host variant package/python-jsonschema-specifications: add host variant package/python-jsonschema: add host variant boot/ti-k3-r5-loader: set binman environment
boot/uboot: addBR2_TARGET_UBOOT_USE_BINMANoption package/ti-k3: move TI_K3_{SECTYPE,SOC} out of the image-gen scope package/ti-k3: disable HS-FS for AM65 SOC boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin configs/ti_am62x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am62x_sk_defconfig: bump Linux version to 6.6.18 board/ti/am62x-sk: generalizepost-build.shboard/ti/am62x-sk: move post-{build,image}.sh to board/ti/common/am6xx package/ti-k3: fixBR2_PACKAGE_TI_K3_SOCsetting for am64x SOC configs/ti_am64x_sk_defconfig: bump U-Boot version to 2024.01 configs/ti_am64x_sk_defconfig: bump Linux version to 6.6.18Romain Naour (1):
boot/ti-k3-image-gen: remove packageConfig.in.legacy | 7 ++ DEVELOPERS | 2 - board/ti/am62x-sk/genimage.cfg | 7 +- board/ti/am64x-sk/genimage.cfg | 7 +- board/ti/common/am6xx/post-build.sh | 58 ++++++++++++++ board/ti/common/am6xx/post-image.sh | 11 +++ boot/Config.in | 1 - boot/ti-k3-image-gen/Config.in | 77 ------------------- boot/ti-k3-image-gen/ti-k3-image-gen.hash | 3 - boot/ti-k3-image-gen/ti-k3-image-gen.mk | 54 ------------- boot/ti-k3-r5-loader/Config.in | 5 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.hash | 2 +- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 12 ++- boot/uboot/Config.in | 23 +++--- boot/uboot/uboot.mk | 12 ++- configs/ti_am62x_sk_defconfig | 22 +++--- configs/ti_am64x_sk_defconfig | 22 +++--- package/Config.in | 1 + package/python-attrs/python-attrs.mk | 6 ++ .../python-jsonschema-specifications.mk | 10 +++ .../python-jsonschema/python-jsonschema.mk | 14 ++++ .../python-referencing/python-referencing.mk | 11 +++ package/python-rpds-py/python-rpds-py.mk | 1 + package/ti-k3/Config.in | 61 +++++++++++++++ package/ti-k3/ti-k3.mk | 7 ++ 25 files changed, 263 insertions(+), 173 deletions(-) create mode 100755 board/ti/common/am6xx/post-build.sh create mode 100755 board/ti/common/am6xx/post-image.sh delete mode 100644 boot/ti-k3-image-gen/Config.in delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.hash delete mode 100644 boot/ti-k3-image-gen/ti-k3-image-gen.mk create mode 100644 package/ti-k3/Config.in create mode 100644 package/ti-k3/ti-k3.mkQuoted 3 lines
--
2.43.0_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 15 lines
Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 [email protected] __________________________________ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 [email protected] www.amarulasolutions.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot