Skip to contentSkip to conversation

configs/ti_am62x_sk_defconfig: explicitly set the kernel version

PATCH In review Dario Binacchi 3 participants 7 messages Nov 23, 2023 – Feb 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs/ti_am62x_sk_defconfig: explicitly set the kernel version

Commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig) forgot to specify the Linux kernel version, so do that now.

When the defconfig was added, the default version was 6.4.x, so use version 6.4.16.

---
 configs/ti_am62x_sk_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +3 -0
index b98a68ff153f..6610e6fcf890 100644
@@ -1,7 +1,10 @@
 BR2_aarch64=y
+BR2_KERNEL_HEADERS_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_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"
Signature · 6 lines
2.42.0

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

PATCH 2/2 configs/ti_am62x_sk_defconfig: drop redundant defconfig choice

The defconfig choice is the default one, so it is redundant and can be removed without effect.

---
 configs/ti_am62x_sk_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/ti_am62x_sk_defconfig +0 -1
index 6610e6fcf890..130d092e304f 100644
@@ -24,7 +24,6 @@ BR2_TARGET_OPTEE_OS=y
 BR2_TARGET_OPTEE_OS_PLATFORM="k3"
 BR2_TARGET_TI_K3_IMAGE_GEN=y
 BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y
-BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP=y
 BR2_TARGET_TI_K3_R5_LOADER=y
 BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5"
 BR2_TARGET_UBOOT=y
Signature · 6 lines
2.42.0

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

Re: [Buildroot] [PATCH 2/2] configs/ti_am62x_sk_defconfig: drop redundant defconfig choice

Hi Dario,

Quoted 13 lines · Dario Binacchi

The defconfig choice is the default one, so it is redundant and can be removed without effect.

---
  configs/ti_am62x_sk_defconfig | 1 -
  1 file changed, 1 deletion(-)
configs/ti_am62x_sk_defconfig +0 -0
index 6610e6fcf890..130d092e304f 100644

configs/ti_am62x_sk_defconfig BR2_TARGET_OPTEE_OS=y · line 27

Quoted 4 lines
configs/ti_am62x_sk_defconfig +0 -1
@@ -24,7 +24,6 @@ BR2_TARGET_OPTEE_OS=y
  BR2_TARGET_OPTEE_OS_PLATFORM="k3"
  BR2_TARGET_TI_K3_IMAGE_GEN=y
  BR2_TARGET_TI_K3_IMAGE_GEN_SOC_AM62X=y
-BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP=y

Best regards

Signature · 2 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas

configs/ti_am62x_sk_defconfig BR2_TARGET_OPTEE_OS=y · line 29

Quoted 3 lines
configs/ti_am62x_sk_defconfig +0 -0
  BR2_TARGET_TI_K3_R5_LOADER=y
  BR2_TARGET_TI_K3_R5_LOADER_BOARD_DEFCONFIG="am62x_evm_r5"
  BR2_TARGET_UBOOT=y

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

#3 lore raw
In reply to Dario Binacchi

Hi Dario,

Quoted 15 lines · Dario Binacchi

Commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig) forgot to specify the Linux kernel version, so do that now.

When the defconfig was added, the default version was 6.4.x, so use version 6.4.16.

  configs/ti_am62x_sk_defconfig | 3 +++
  1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +0 -0
index b98a68ff153f..6610e6fcf890 100644

configs/ti_am62x_sk_defconfig line 2

Quoted 2 lines
configs/ti_am62x_sk_defconfig +1 -0
@@ -1,7 +1,10 @@
  BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_4=y

here ^^^ you need to specify BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4 and not the line above,

configs/ti_am62x_sk_defconfig line 10

Quoted 8 lines
configs/ti_am62x_sk_defconfig +2 -0
  BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
  BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg"
  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"

Can you please correct and send V2?

Thank you!

Best regards

Signature · 6 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Dario,

I've also tried to build this defconfig and it fails while building ti-k3-r5-loader
with:

```
  COPY    spl/u-boot-spl.bin
./tools/k3_gen_x509_cert.sh -c 16 -b spl/u-boot-spl.bin \
			-o tiboot3.bin -l 0x43c00000 -r 1 -k ""
 SWRV = 1
Could not open file or uri for loading private key from eckey.pem: No such file or directory
cat: certificate.bin: No such file or directory
rm: cannot remove 'certificate.bin': No such file or directory
rm: cannot remove 'eckey.pem': No such file or directory
make[3]: *** [arch/arm/mach-k3//config.mk:55: tiboot3.bin] Error 1
make[3]: *** Deleting file 'tiboot3.bin'
```

Can you please take a look into it?

Thank you
Best regards

Signature · 2 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
Quoted 35 lines · Giulio Benetti

Hi Dario,

Quoted 15 lines · Dario Binacchi

Commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig) forgot to specify the Linux kernel version, so do that now.

When the defconfig was added, the default version was 6.4.x, so use version 6.4.16.

  configs/ti_am62x_sk_defconfig | 3 +++

  1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +0 -0
index b98a68ff153f..6610e6fcf890 100644
@@ -1,7 +1,10 @@
Quoted 2 lines

  BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_4=y

here ^^^ you need to specify BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4 and not the line above,

Quoted 8 lines

  BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg" BR2_LINUX_KERNEL=y

configs/ti_am62x_sk_defconfig +2 -0
+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"

Can you please correct and send V2?

Quoted 3 lines

Thank you!

Best regards

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

#5 lore raw

Hi Giulio and Romain, All

Quoted 20 lines · Giulio Benetti

Dario,

I've also tried to build this defconfig and it fails while building ti-k3-r5-loader
with:

```
   COPY    spl/u-boot-spl.bin
./tools/k3_gen_x509_cert.sh -c 16 -b spl/u-boot-spl.bin \
                        -o tiboot3.bin -l 0x43c00000 -r 1 -k ""
  SWRV = 1
Could not open file or uri for loading private key from eckey.pem: No
such file or directory
cat: certificate.bin: No such file or directory
rm: cannot remove 'certificate.bin': No such file or directory
rm: cannot remove 'eckey.pem': No such file or directory
make[3]: *** [arch/arm/mach-k3//config.mk:55: tiboot3.bin] Error 1
make[3]: *** Deleting file 'tiboot3.bin'
```
Quoted 1 line

Can you please take a look into it?

The compilation with BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_GP enabled is fine, while the compilation with BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS enabled is broken.
Have you enabled the BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS_FS or BR2_TARGET_TI_K3_IMAGE_GEN_SECTYPE_HS option?

Thanks and regards,
Dario

Quoted 48 lines

Thank you
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sas

Quoted 39 lines · Giulio Benetti

Hi Dario,

Quoted 16 lines · Dario Binacchi

Commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig) forgot to specify the Linux kernel version, so do that now.

When the defconfig was added, the default version was 6.4.x, so use version 6.4.16.

  configs/ti_am62x_sk_defconfig | 3 +++
  1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +0 -0
index b98a68ff153f..6610e6fcf890 100644

configs/ti_am62x_sk_defconfig line 2

Quoted 2 lines
configs/ti_am62x_sk_defconfig +1 -0
@@ -1,7 +1,10 @@
  BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_4=y

here ^^^ you need to specify BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4 and not the line above,

configs/ti_am62x_sk_defconfig line 10

Quoted 8 lines
configs/ti_am62x_sk_defconfig +2 -0
  BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
  BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg"
  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"

Can you please correct and send V2?

Thank you!

Best regards

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
#6 lore raw
In reply to Giulio Benetti

Hello Dario, All,

Le 05/02/2024 à 16:13, Giulio Benetti a écrit :

Quoted 24 lines

Hi Dario,

Quoted 15 lines · Dario Binacchi

Commit 4b8fddb060fb ("configs/ti_am62x_sk: new defconfig) forgot to specify the Linux kernel version, so do that now.

When the defconfig was added, the default version was 6.4.x, so use version 6.4.16.

  configs/ti_am62x_sk_defconfig | 3 +++

  1 file changed, 3 insertions(+)
configs/ti_am62x_sk_defconfig +0 -0
index b98a68ff153f..6610e6fcf890 100644
@@ -1,7 +1,10 @@
Quoted 2 lines

  BR2_aarch64=y
+BR2_KERNEL_HEADERS_6_4=y

here ^^^ you need to specify BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4 and not the line above,

Quoted 10 lines
Quoted 8 lines

  BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg" BR2_LINUX_KERNEL=y

configs/ti_am62x_sk_defconfig +2 -0
+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"

Can you please correct and send V2?

I fixed the kernel header symbol before pushing.

Both patches applied to master, thanks.

Best regards,
Romain

Quoted 4 lines

Thank you!

Best regards

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