Skip to contentSkip to conversation

defconfig fixes

PATCH Superseded Marcus Hoffmann 2 participants 7 messages Feb 17, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover defconfig fixes

I was looking at some of the defconfigs and found these two easy to fix issues. I don't have those boards, so these are not tested besides being able to compile them again.

Marcus Hoffmann (2):
configs/friendlyarm_nanopi_r2s_defconfig: uboot needs openssl board/orangepi/orangepi-rk3399/genimage: fix partition types for gpt

 board/orangepi/orangepi-rk3399/genimage.cfg | 3 +--
 configs/friendlyarm_nanopi_r2s_defconfig    | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 6 lines
2.25.1

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

PATCH 1/2 configs/friendlyarm_nanopi_r2s_defconfig: uboot needs openssl

Fixes the following compile error:

In file included from include/bootm.h:10,

                 from tools/image-host.c:12:
include/image.h:1178:12: fatal error: openssl/evp.h: No such file or directory
 1178 | #  include <openssl/evp.h>
      |            ^~~~~~~~~~~~~~~

compilation terminated.

---
 configs/friendlyarm_nanopi_r2s_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/friendlyarm_nanopi_r2s_defconfig +1 -0
index 818c847f4b..ce252a5d76 100644
@@ -30,6 +30,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
Signature · 6 lines
2.25.1

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

Re: [Buildroot] [PATCH 1/2] configs/friendlyarm_nanopi_r2s_defconfig: uboot needs openssl

Hi Marcus,

Quoted 21 lines

Il giorno 17 feb 2022, alle ore 16:11, Marcus Hoffmann <[email protected]> ha scritto:

Fixes the following compile error:

In file included from include/bootm.h:10,

                from tools/image-host.c:12:
include/image.h:1178:12: fatal error: openssl/evp.h: No such file or directory
1178 | #  include <openssl/evp.h>
     |            ^~~~~~~~~~~~~~~

compilation terminated.

---
configs/friendlyarm_nanopi_r2s_defconfig | 1 +

1 file changed, 1 insertion(+)
configs/friendlyarm_nanopi_r2s_defconfig +0 -0
index 818c847f4b..ce252a5d76 100644
@@ -30,6 +30,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
Quoted 7 lines

BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y

Thank you for the patch, have you verified it’s enough by building it using utils/docker-run?

Best regards
Giulio

Quoted 7 lines
Signature · 6 lines
2.25.1

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

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

#3 lore raw

Re: [Buildroot] [PATCH 1/2] configs/friendlyarm_nanopi_r2s_defconfig: uboot needs openssl

Hi Gulio,

Quoted 18 lines · Giulio Benetti

Hi Marcus,

Quoted 16 lines

Il giorno 17 feb 2022, alle ore 16:11, Marcus Hoffmann <[email protected]> ha scritto:

Fixes the following compile error:

In file included from include/bootm.h:10,

                 from tools/image-host.c:12:
include/image.h:1178:12: fatal error: openssl/evp.h: No such file or directory
1178 | #  include <openssl/evp.h>
      |            ^~~~~~~~~~~~~~~

compilation terminated.

---
configs/friendlyarm_nanopi_r2s_defconfig | 1 +

1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 5 lines
configs/friendlyarm_nanopi_r2s_defconfig +0 -0
index 818c847f4b..ce252a5d76 100644
@@ -30,6 +30,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
Quoted 7 lines

BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y

Thank you for the patch, have you verified it’s enough by building it using utils/docker-run?

Yes, this fixes the build with docker-run. (same for the other defconfig)

Marcus

Quoted 12 lines

Best regards
Giulio

Quoted 7 lines
Signature · 6 lines
2.25.1

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

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

#4 lore raw

Re: [Buildroot] [PATCH 1/2] configs/friendlyarm_nanopi_r2s_defconfig: uboot needs openssl

Quoted 36 lines · Marcus Hoffmann

Hi Gulio,

Quoted 18 lines · Giulio Benetti

Hi Marcus,

Quoted 16 lines

Il giorno 17 feb 2022, alle ore 16:11, Marcus Hoffmann <[email protected]> ha scritto:

Fixes the following compile error:

In file included from include/bootm.h:10,

                  from tools/image-host.c:12:
include/image.h:1178:12: fatal error: openssl/evp.h: No such file or directory
1178 | #  include <openssl/evp.h>
       |            ^~~~~~~~~~~~~~~

compilation terminated.

---
configs/friendlyarm_nanopi_r2s_defconfig | 1 +

1 file changed, 1 insertion(+)
Quoted 14 lines
Quoted 5 lines
configs/friendlyarm_nanopi_r2s_defconfig +0 -0
index 818c847f4b..ce252a5d76 100644
@@ -30,6 +30,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
Quoted 7 lines

BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi-r2s-rk3328" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y

Thank you for the patch, have you verified it’s enough by building it using utils/docker-run?

Quoted 1 line

Yes, this fixes the build with docker-run. (same for the other defconfig)

Perfect, can you re-send both patches with:
"Fixes:" in commit log?
tag?

Thank you!

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 14 lines

Marcus

Quoted 12 lines

Best regards
Giulio

Quoted 7 lines
Signature · 6 lines
2.25.1

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

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

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

#5 lore raw

PATCH 2/2 board/orangepi/orangepi-rk3399/genimage: fix partition types for gpt

In reply to Marcus Hoffmann

Fixes:
ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

---
 board/orangepi/orangepi-rk3399/genimage.cfg | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
board/orangepi/orangepi-rk3399/genimage.cfg +1 -2
index c94e0bc7cc..a02166172f 100644
@@ -26,14 +26,13 @@ image sdcard.img {
 	}
 
 	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = F
 		bootable = "true"
 		image = "boot.vfat"
 		offset = 16M
 	}
 
 	partition rootfs {
-		partition-type = 0x83
 		image = "rootfs.ext4"
 	}
 }
Signature · 6 lines
2.25.1

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

Re: [Buildroot] [PATCH 2/2] board/orangepi/orangepi-rk3399/genimage: fix partition types for gpt

Hi Marcus,

Quoted 5 lines

Il giorno 17 feb 2022, alle ore 16:11, Marcus Hoffmann <[email protected]> ha scritto:

Fixes:
ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

Here you should add:
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/2103784375

Thank you
Best regards

Quoted 32 lines

---
board/orangepi/orangepi-rk3399/genimage.cfg | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
board/orangepi/orangepi-rk3399/genimage.cfg +1 -2
index c94e0bc7cc..a02166172f 100644
@@ -26,14 +26,13 @@ image sdcard.img {
   }
 
   partition boot {
-        partition-type = 0xC
+        partition-type-uuid = F
       bootable = "true"
       image = "boot.vfat"
       offset = 16M
   }
 
   partition rootfs {
-        partition-type = 0x83
       image = "rootfs.ext4"
   }
 }
Signature · 6 lines
2.25.1

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

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