Skip to contentSkip to conversation

defconfig fixes

PATCH Applied Marcus Hoffmann 4 participants 10 messages Feb 17, 2022 – Mar 5, 2022

lore
Share & tools
lore
#0 lore raw

v2 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.

Changes v1 -> v2:
- Add references to gitlab CI's defconfig run failures (Giulio Benetti)

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 v2 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
Reviewed-by on v2 1/2
#2 lore raw

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

Quoted 7 lines · Marcus Hoffmann

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>
       |            ^~~~~~~~~~~~~~~
Quoted 5 lines

compilation terminated.

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 9 lines
---
  configs/friendlyarm_nanopi_r2s_defconfig | 1 +
  1 file changed, 1 insertion(+)
configs/friendlyarm_nanopi_r2s_defconfig +0 -0
index 818c847f4b..ce252a5d76 100644

configs/friendlyarm_nanopi_r2s_defconfig BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" · line 36

Quoted 7 lines
configs/friendlyarm_nanopi_r2s_defconfig +1 -0
@@ -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

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

#3 lore raw

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

In reply to Marcus Hoffmann

Marcus, All

On 2022-02-17 16:55 +0100, Marcus Hoffmann spake thusly:

Quoted 7 lines

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>
      |            ^~~~~~~~~~~~~~~
Quoted 5 lines

compilation terminated.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 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
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

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

In reply to Marcus Hoffmann

Fixes the following error during image generation:
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
Reviewed-by on v2 2/2
#5 lore raw

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

Quoted 7 lines · Marcus Hoffmann

Fixes the following error during image generation:
ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 14 lines
---
  board/orangepi/orangepi-rk3399/genimage.cfg | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
board/orangepi/orangepi-rk3399/genimage.cfg +1 -1
index c94e0bc7cc..a02166172f 100644
@@ -26,14 +26,13 @@ image sdcard.img {
  	}
 
  	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = F

board/orangepi/orangepi-rk3399/genimage.cfg image sdcard.img { · line 38

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -1
  		bootable = "true"
  		image = "boot.vfat"
  		offset = 16M
  	}
 
  	partition rootfs {
-		partition-type = 0x83
  		image = "rootfs.ext4"
  	}
  }

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

#6 lore raw

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

In reply to Marcus Hoffmann

Marcus, All,

On 2022-02-17 16:55 +0100, Marcus Hoffmann spake thusly:

Quoted 18 lines

Fixes the following error during image generation:
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 +0 -0
index c94e0bc7cc..a02166172f 100644
@@ -26,14 +26,13 @@ image sdcard.img {
 	}
 

board/orangepi/orangepi-rk3399/genimage.cfg image sdcard.img { · line 36

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +1 -2
 	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = F
 		bootable = "true"
 		image = "boot.vfat"
 		offset = 16M
 	}
 
 	partition rootfs {
-		partition-type = 0x83

Why don't you also switch this one to partition-type-uuid?

Regards,
Yann E. MORIN.

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -0
 		image = "rootfs.ext4"
 	}
 }
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

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

Hi Yann,

Quoted 29 lines · Yann E. MORIN

Marcus, All,

On 2022-02-17 16:55 +0100, Marcus Hoffmann spake thusly:

Quoted 26 lines

Fixes the following error during image generation:
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 -1
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
  	}
 
Quoted 4 lines

board/orangepi/orangepi-rk3399/genimage.cfg image sdcard.img { · line 36

Quoted 2 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -1
  	partition rootfs {
-		partition-type = 0x83

Why don't you also switch this one to partition-type-uuid?

The replacement for this would be "partition-type-uuid = L", which is the default. I believe I saw a patch recently that removed those default entries, which is why I didn't include it.

Best,
Marcus

Quoted 15 lines

Regards,
Yann E. MORIN.

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -0
  		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

#8 lore raw

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

In reply to Yann E. MORIN

Hi Yann,

Quoted 29 lines · Yann E. MORIN

Marcus, All,

On 2022-02-17 16:55 +0100, Marcus Hoffmann spake thusly:

Quoted 26 lines

Fixes the following error during image generation:
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 -1
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
  	}
 
Quoted 4 lines

board/orangepi/orangepi-rk3399/genimage.cfg image sdcard.img { · line 36

Quoted 2 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -1
  	partition rootfs {
-		partition-type = 0x83

Why don't you also switch this one to partition-type-uuid?

I've been asked by Arnout to drop L since it's the default:
https://lists.buildroot.org/pipermail/buildroot/2022-February/636945.html

I see both Thomas and Arnout seem to go for single letters intead of extended specific partition-type-uuid. That's why I didn't comment on this point that only removes partition-type.

Best regards

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

Regards,
Yann E. MORIN.

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -0
  		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

#9 lore raw

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

In reply to Marcus Hoffmann
Quoted 7 lines · Marcus Hoffmann

Fixes the following error during image generation:
ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

Applied to master, thanks.

Regards,
Arnout

Quoted 14 lines
---
  board/orangepi/orangepi-rk3399/genimage.cfg | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
board/orangepi/orangepi-rk3399/genimage.cfg +1 -1
index c94e0bc7cc..a02166172f 100644
@@ -26,14 +26,13 @@ image sdcard.img {
  	}
 
  	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = F

board/orangepi/orangepi-rk3399/genimage.cfg image sdcard.img { · line 38

Quoted 10 lines
board/orangepi/orangepi-rk3399/genimage.cfg +0 -1
  		bootable = "true"
  		image = "boot.vfat"
  		offset = 16M
  	}
 
  	partition rootfs {
-		partition-type = 0x83
  		image = "rootfs.ext4"
  	}
  }

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