Skip to contentSkip to conversation

Fix gitlab CI build failure due to missing HOST_ dependencies

PATCH Superseded Giulio Benetti 3 participants 22 messages Feb 1, 2022 – Feb 13, 2022

lore
Share & tools
lore
#0 lore raw

v2 cover Fix gitlab CI build failure due to missing HOST_ dependencies

This patchset fixes the gitlab build failure due to HOST_ dependencies(uboot/linux).

V1->V2:
* add missing host openssl for linux on microchip_sama7g5ek_mmc_defconfig/_dev_defconfig

Giulio Benetti (6):
configs/bananapi_m2_ultra_defconfig: u-boot needs host python3 and
host openssl
configs/beaglev_defconfig: linux needs host openssl configs/microchip_sama5d2_icp_mmc_defconfig: linux needs host openssl configs/microchip_sama5d2_icp_mmc_dev_defconfig: linux needs host
openssl
configs/microchip_sama7g5ek_mmc_defconfig: add missing
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux
configs/microchip_sama7g5ek_mmc_dev_defconfig: add missing
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

 configs/bananapi_m2_ultra_defconfig             | 2 ++
 configs/beaglev_defconfig                       | 1 +
 configs/microchip_sama5d2_icp_mmc_defconfig     | 1 +
 configs/microchip_sama5d2_icp_mmc_dev_defconfig | 1 +
 configs/microchip_sama7g5ek_mmc_defconfig       | 2 ++
 configs/microchip_sama7g5ek_mmc_dev_defconfig   | 2 ++
 6 files changed, 9 insertions(+)
Signature · 6 lines
2.25.1

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

PATCH v2 1/6 configs/bananapi_m2_ultra_defconfig: u-boot needs host python3 and host openssl

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035820967

---
 configs/bananapi_m2_ultra_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/bananapi_m2_ultra_defconfig +2 -0
index 67ecec424c..2ec0e60e8d 100644
@@ -19,7 +19,9 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="bananapi_m2_berry"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
 BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
Signature · 6 lines
2.25.1

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

PATCH v2 2/6 configs/beaglev_defconfig: linux needs host openssl

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035820979

---
 configs/beaglev_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/beaglev_defconfig +1 -0
index 70459bf3e8..79af8c2ece 100644
@@ -16,6 +16,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="starlight"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="starfive/jh7100-beaglev-starlight"
 BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
Signature · 6 lines
2.25.1

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

PATCH v2 3/6 configs/microchip_sama5d2_icp_mmc_defconfig: linux needs host openssl

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821094

---
 configs/microchip_sama5d2_icp_mmc_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/microchip_sama5d2_icp_mmc_defconfig +1 -0
index 4bb3625f83..27ea4970f1 100644
@@ -12,6 +12,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,li
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_icp"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author Reviewed-by Michael Trimarchi on v2 3/6
#4 lore raw

Re: [Buildroot] [PATCH v2 3/6] configs/microchip_sama5d2_icp_mmc_defconfig: linux needs host openssl

Quoted 4 lines · Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821094

I've left back this:

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 9 lines
---
  configs/microchip_sama5d2_icp_mmc_defconfig | 1 +
  1 file changed, 1 insertion(+)
configs/microchip_sama5d2_icp_mmc_defconfig +0 -0
index 4bb3625f83..27ea4970f1 100644

configs/microchip_sama5d2_icp_mmc_defconfig BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,li · line 18

Quoted 7 lines
configs/microchip_sama5d2_icp_mmc_defconfig +1 -0
@@ -12,6 +12,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,li
  BR2_LINUX_KERNEL_DEFCONFIG="sama5"
  BR2_LINUX_KERNEL_DTS_SUPPORT=y
  BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_icp"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
  BR2_TARGET_ROOTFS_EXT2=y
  BR2_TARGET_ROOTFS_EXT2_4=y
  BR2_TARGET_ROOTFS_EXT2_SIZE="120M"

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

#5 lore raw

PATCH v2 4/6 configs/microchip_sama5d2_icp_mmc_dev_defconfig: linux needs host openssl

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821096

---
 configs/microchip_sama5d2_icp_mmc_dev_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/microchip_sama5d2_icp_mmc_dev_defconfig +1 -0
index 052d9e032c..27d1d3409d 100644
@@ -16,6 +16,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,linux4microchip,linux,li
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d2_icp"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_PACKAGE_LINUX_TOOLS_IIO=y
 BR2_PACKAGE_BZIP2=y
 BR2_PACKAGE_XZ=y
Signature · 6 lines
2.25.1

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

PATCH v2 5/6 configs/microchip_sama7g5ek_mmc_defconfig: add missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

---
V1->V2:
* add host openssl linux

---
 configs/microchip_sama7g5ek_mmc_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/microchip_sama7g5ek_mmc_defconfig +2 -0
index b1cd193829..df48c0880b 100644
@@ -1,12 +1,14 @@
 BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_DEFCONFIG="sama7"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
Signature · 6 lines
2.25.1

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

Re: [Buildroot] [PATCH v2 5/6] configs/microchip_sama7g5ek_mmc_defconfig: add missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

Quoted 16 lines · On Wed, 2 Feb 2022 00:04:13 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

---
V1->V2:
* add host openssl linux

---
 configs/microchip_sama7g5ek_mmc_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/microchip_sama7g5ek_mmc_defconfig +0 -0
index b1cd193829..df48c0880b 100644

configs/microchip_sama7g5ek_mmc_defconfig line 4

Quoted 4 lines
configs/microchip_sama7g5ek_mmc_defconfig +1 -0
@@ -1,12 +1,14 @@
 BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y

This will continue to break: the big problem in this defconfig is that the kernel version is not defined as a fixed version.

Thomas

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

PATCH v2 6/6 configs/microchip_sama7g5ek_mmc_dev_defconfig: add missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821100

---
V1->V2:
* add host openssl linux

---
 configs/microchip_sama7g5ek_mmc_dev_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/microchip_sama7g5ek_mmc_dev_defconfig +2 -0
index 3253bce401..d34192b66d 100644
@@ -1,6 +1,7 @@
 BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
 BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 BR2_PTHREAD_DEBUG=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
@@ -11,6 +12,7 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_DEFCONFIG="sama7"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_PACKAGE_LINUX_TOOLS_IIO=y
 BR2_PACKAGE_BZIP2=y
 BR2_PACKAGE_XZ=y
Signature · 6 lines
2.25.1

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

Re: [Buildroot] [PATCH v2 6/6] configs/microchip_sama7g5ek_mmc_dev_defconfig: add missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

Quoted 10 lines · On Wed, 2 Feb 2022 00:04:14 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821100

---
V1->V2:
* add host openssl linux

---
 configs/microchip_sama7g5ek_mmc_dev_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Same problem as PATCH 5/6: the kernel version should be defined as a fixed version.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw
In reply to Giulio Benetti
Quoted 6 lines · On Wed, 2 Feb 2022 00:04:08 +0100 Giulio Benetti…

configs/bananapi_m2_ultra_defconfig: u-boot needs host python3 and
host openssl
configs/beaglev_defconfig: linux needs host openssl configs/microchip_sama5d2_icp_mmc_defconfig: linux needs host openssl configs/microchip_sama5d2_icp_mmc_dev_defconfig: linux needs host
openssl

These four are applied.

Quoted 6 lines

configs/microchip_sama7g5ek_mmc_defconfig: add missing
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux
configs/microchip_sama7g5ek_mmc_dev_defconfig: add missing
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15 and host openssl for linux

These two have issues, marked as Changes Requested.

Thanks!

Thomas

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

v3 cover Fix gitlab CI build failure due to missing HOST_ dependencies

This patchset fixes the gitlab build failure due to HOST_ dependencies(uboot/linux).

V1->V2:
* add missing host openssl for linux on microchip_sama7g5ek_mmc_defconfig/_dev_defconfig V2->V3:
* add specific custom linux version as suggested by Thomas

Giulio Benetti (2):
configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to
5.15.21 and add host openssl for linux
configs/microchip_sama7g5ek_mmc_dev_defconfig: set custom linux
version to 5.15.21 and add host openssl for linux

 configs/microchip_sama7g5ek_mmc_defconfig     | 4 ++++
 configs/microchip_sama7g5ek_mmc_dev_defconfig | 4 ++++
 2 files changed, 8 insertions(+)
Signature · 6 lines
2.25.1

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

PATCH v3 1/2 configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

---
V1->V2:
* add host openssl linux
V2->V3:
* set custom linux version as suggested by Thomas

---
 configs/microchip_sama7g5ek_mmc_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/microchip_sama7g5ek_mmc_defconfig +4 -0
index b1cd193829..7ab81d1dd0 100644
@@ -1,12 +1,16 @@
 BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
 BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.21"
 BR2_LINUX_KERNEL_DEFCONFIG="sama7"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
Signature · 6 lines
2.25.1

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

Re: [Buildroot] [PATCH v3 1/2] configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Quoted 4 lines · On Sun, 6 Feb 2022 12:26:19 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

Did you actually test on HW that 5.15.21 was working? Shouldn't this be done by the original submitter of the defconfig.

Eugen, Ludovic?

Thomas

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

Re: [Buildroot] [PATCH v3 1/2] configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni
Quoted 4 lines · On Sun, 6 Feb 2022 12:26:19 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

Did you actually test on HW that 5.15.21 was working?

Unfortunately I don't have board, so no.

Quoted 4 lines

Shouldn't this be
done by the original submitter of the defconfig.

Eugen, Ludovic?

It would be great to have it tested. Both, this and the microchip_sama7g5ek_mmc_dev_defconfig too.

Best regards

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

Re: [Buildroot] [PATCH v3 1/2] configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Quoted 6 lines · Giulio Benetti

Hi Thomas,

Quoted 3 lines · Thomas Petazzoni

On Sun,  6 Feb 2022 12:26:19 +0100
Giulio Benetti <[email protected]> wrote:

Quoted 13 lines
Quoted 6 lines
Quoted 4 lines

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

Did you actually test on HW that 5.15.21 was working?

Unfortunately I don't have board, so no.

Quoted 4 lines

Shouldn't this be
done by the original submitter of the defconfig.

Eugen, Ludovic?

I can test it. Do you have a built already done with it on top that I could download ? (would certainly speed things up)

I do not really understand why we need to have a fixed kernel version. This board works with latest LTS starting from 5.15. Can't buildroot just select that ?

And why just adding the missing dependency does not fix things.

(I remember buildroot had something like kernel latest version to pick up ).

Eugen

Quoted 8 lines

It would be great to have it tested. Both, this and the microchip_sama7g5ek_mmc_dev_defconfig too.

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas

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

#16 lore raw

Re: [Buildroot] [PATCH v3 1/2] configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Hi Eugen, Thomas, Ludovic,

Quoted 16 lines · On 06/02/22 20:39, [email protected] wrote:
Quoted 15 lines · Giulio Benetti

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni
Quoted 4 lines · On Sun,  6 Feb 2022 12:26:19 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

Did you actually test on HW that 5.15.21 was working?

Unfortunately I don't have board, so no.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

Shouldn't this be
done by the original submitter of the defconfig.

Eugen, Ludovic?

I can test it. Do you have a built already done with it on top that I could download ? (would certainly speed things up)

Here are the 2 links with the prebuilt images for both boards:
https://www.dropbox.com/s/av9vz28459hakjl/microchip_sama7g5ek_mmc_dev-sdcard.img?dl=0
https://www.dropbox.com/s/77t2tru95f6l0wk/microchip_sama7g5ek_mmc-sdcard.img?dl=0

Quoted 3 lines

I do not really understand why we need to have a fixed kernel version. This board works with latest LTS starting from 5.15. Can't buildroot just select that ?

It can't because otherwise, once Buildroot Latest Linux version gets bumped(like 5.16 etc.), your defconfig will be built with a new and untested Linux version(i.e 5.16). So we need to set a specific version, test it, commit it, and in the future we can bump it, wait for a HW testing, commit it etc.

Quoted 1 line

And why just adding the missing dependency does not fix things.

Because that only chooses the "Custom kernel headers series" and not Linux version, so once Latest version is bumped(i.e. to 5.16) it won't be valid anymore. The point here is that this:
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15
is needed because of these:
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.21"

and these ^^^ allow us to have a stable, HW tested defconfig.

Quoted 1 line

(I remember buildroot had something like kernel latest version to pick up ).

That is not what we want because of above explanation. It can result in a non working defconfig.

Best regards

Signature · 6 lines
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Tested-by Eugen Hristev
#17 lore raw

Re: [Buildroot] [PATCH v3 1/2] configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Quoted 53 lines · Giulio Benetti

Hi Eugen, Thomas, Ludovic,

Quoted 16 lines · On 06/02/22 20:39, [email protected] wrote:
Quoted 15 lines · Giulio Benetti

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni
Quoted 4 lines · On Sun,  6 Feb 2022 12:26:19 +0100 Giulio Benetti…

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821098

Did you actually test on HW that 5.15.21 was working?

Unfortunately I don't have board, so no.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

Shouldn't this be
done by the original submitter of the defconfig.

Eugen, Ludovic?

I can test it. Do you have a built already done with it on top that I could download ? (would certainly speed things up)

Here are the 2 links with the prebuilt images for both boards:
https://www.dropbox.com/s/av9vz28459hakjl/microchip_sama7g5ek_mmc_dev-sdcard.img?dl=0

https://www.dropbox.com/s/77t2tru95f6l0wk/microchip_sama7g5ek_mmc-sdcard.img?dl=0

Quoted 3 lines

I do not really understand why we need to have a fixed kernel version. This board works with latest LTS starting from 5.15. Can't buildroot just select that ?

It can't because otherwise, once Buildroot Latest Linux version gets bumped(like 5.16 etc.), your defconfig will be built with a new and untested Linux version(i.e 5.16). So we need to set a specific version, test it, commit it, and in the future we can bump it, wait for a HW testing, commit it etc.

Quoted 1 line

And why just adding the missing dependency does not fix things.

Because that only chooses the "Custom kernel headers series" and not Linux version, so once Latest version is bumped(i.e. to 5.16) it won't be valid anymore. The point here is that this:
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15
is needed because of these:
BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.21"

Quoted 7 lines

and these ^^^ allow us to have a stable, HW tested defconfig.

Quoted 2 lines

(I remember buildroot had something like kernel latest version to pick up ).

That is not what we want because of above explanation. It can result in a non working defconfig.

Booting Linux on physical CPU 0x0
Linux version 5.15.21 (br-user@73343cda1592) (arm-buildroot-linux-uclibcgnueabihf-gcc.br_real (Buildroot 2021.11-1538-g036577d6b5) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 Sun Feb 6 14:40:03 UTC 2022
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d

# cat /etc/os-release
NAME=Buildroot
VERSION=2021.11-1538-g036577d6b5
ID=buildroot
VERSION_ID=2022.02-git
PRETTY_NAME="Buildroot 2022.02-git"
#

It looks to boot fine.

Quoted 5 lines

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas

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

#18 lore raw

PATCH v3 2/2 configs/microchip_sama7g5ek_mmc_dev_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

In reply to Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821100

---
V1->V2:
* add host openssl linux
V2->V3:
* set custom linux version as suggested by Thomas

---
 configs/microchip_sama7g5ek_mmc_dev_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/microchip_sama7g5ek_mmc_dev_defconfig +4 -0
index 3253bce401..c11ea2f518 100644
@@ -1,6 +1,7 @@
 BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
 BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 BR2_PTHREAD_DEBUG=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
@@ -8,9 +9,12 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
 BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.21"
 BR2_LINUX_KERNEL_DEFCONFIG="sama7"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 BR2_PACKAGE_LINUX_TOOLS_IIO=y
 BR2_PACKAGE_BZIP2=y
 BR2_PACKAGE_XZ=y
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Tested-by Eugen Hristev on v3 2/2
#19 lore raw

Re: [Buildroot] [PATCH v3 2/2] configs/microchip_sama7g5ek_mmc_dev_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Quoted 39 lines · Giulio Benetti

Fixes:
https://gitlab.com/ymorin/buildroot/-/jobs/2035821100

---
V1->V2:
* add host openssl linux
V2->V3:
* set custom linux version as suggested by Thomas

---
  configs/microchip_sama7g5ek_mmc_dev_defconfig | 4 ++++
  1 file changed, 4 insertions(+)
configs/microchip_sama7g5ek_mmc_dev_defconfig +4 -1
index 3253bce401..c11ea2f518 100644
@@ -1,6 +1,7 @@
  BR2_arm=y
  BR2_cortex_a7=y
  BR2_ARM_FPU_NEON_VFPV4=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
  BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
  BR2_PTHREAD_DEBUG=y
  BR2_TOOLCHAIN_BUILDROOT_CXX=y
@@ -8,9 +9,12 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
  BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
  BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/microchip/sama7g5ek/genimage.cfg"
  BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.21"
  BR2_LINUX_KERNEL_DEFCONFIG="sama7"
  BR2_LINUX_KERNEL_DTS_SUPPORT=y
  BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama7g5ek"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
  BR2_PACKAGE_LINUX_TOOLS_IIO=y
  BR2_PACKAGE_BZIP2=y
  BR2_PACKAGE_XZ=y
--
Quoted 2 lines

2.25.1

Hi,

This one boots , but it has a small problem

Here is the log :

Waiting for root device /dev/mmcblk1p2...
mmc1: new SDHC card at address aaaa
mmcblk1: mmc1:aaaa SL16G 14.8 GiB
mmcblk1: p1 p2
EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts:
(null). Quota mode: disabled.
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel image (initmem) memory: 1024K
Run /sbin/init as init process
mmc0: new MMC card at address 0001
mmcblk0: mmc0:0001 S40004 3.64 GiB
mmcblk0: p1
mmcblk0boot0: mmc0:0001 S40004 4.00 MiB
mmcblk0boot1: mmc0:0001 S40004 4.00 MiB
mmcblk0rpmb: mmc0:0001 S40004 4.00 MiB, chardev (246:0) EXT4-fs (mmcblk1p2): re-mounted. Opts: (null). Quota mode: disabled. Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: udevd[101]: starting version 3.2.11
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read) udevd[102]: starting eudev-3.2.11
done
Saving random seed: OK
Starting system message bus: done
Starting iptables: OK
Starting bluetoothd: OK
Starting network: OK
urandom_read: 5 callbacks suppressed
random: bluetoothd: uninitialized urandom read (4 bytes read)
LDO2: disabling
VDDOUT25: disabling

^C^C

^Z

random: crng init done
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 Starting sshd: OK

Welcome to Buildroot
buildroot login:

It takes a few minutes before crng init done.

I remember such problem was caused by libjitterentropy .

Even so, it looks like a different problem, so,

Eugen

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

#20 lore raw
In reply to Giulio Benetti
Quoted 7 lines · Giulio Benetti

This patchset fixes the gitlab build failure due to HOST_ dependencies(uboot/linux).

V1->V2:
* add missing host openssl for linux on microchip_sama7g5ek_mmc_defconfig/_dev_defconfig V2->V3:
* add specific custom linux version as suggested by Thomas

Quoted 5 lines

Giulio Benetti (2):
configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to
5.15.21 and add host openssl for linux
configs/microchip_sama7g5ek_mmc_dev_defconfig: set custom linux
version to 5.15.21 and add host openssl for linux

Both applied to master, thanks.

The entropy issue can be resolved later.

Regards,
Arnout

Quoted 5 lines
  configs/microchip_sama7g5ek_mmc_defconfig     | 4 ++++
  configs/microchip_sama7g5ek_mmc_dev_defconfig | 4 ++++
  2 files changed, 8 insertions(+)

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

#21 lore raw
Quoted 16 lines · Arnout Vandecappelle
Quoted 9 lines · Giulio Benetti

This patchset fixes the gitlab build failure due to HOST_ dependencies(uboot/linux).

V1->V2:
* add missing host openssl for linux on microchip_sama7g5ek_mmc_defconfig/_dev_defconfig V2->V3:
* add specific custom linux version as suggested by Thomas

Quoted 5 lines

Giulio Benetti (2):
   configs/microchip_sama7g5ek_mmc_defconfig: set custom linux version to 5.15.21 and add host openssl for linux configs/microchip_sama7g5ek_mmc_dev_defconfig: set custom linux version to 5.15.21 and add host openssl for linux

Quoted 3 lines

 Both applied to master, thanks.

 The entropy issue can be resolved later.

I already sent another patch to fix that. Please have a look. Thanks !

Eugen

Quoted 9 lines

 Regards,
 Arnout

Quoted 5 lines

  configs/microchip_sama7g5ek_mmc_defconfig     | 4 ++++ configs/microchip_sama7g5ek_mmc_dev_defconfig | 4 ++++

  2 files changed, 8 insertions(+)

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