Skip to contentSkip to conversation

configs/pcengines_apu2_defconfig: linux needs host libelf

PATCH Applied Giulio Benetti 4 participants 9 messages Feb 2, 2022 – Feb 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/pcengines_apu2_defconfig: linux needs host libelf

---
 configs/pcengines_apu2_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/pcengines_apu2_defconfig +1 -0
index 0792c93c19..a85808554c 100644
@@ -8,6 +8,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pcengines/apu2/linux.config"
+BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
 
 # Default hostname and TTY
 BR2_TARGET_GENERIC_HOSTNAME="apu2"
Signature · 6 lines
2.25.1

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

PATCH 1/1 configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

Default 60M for rootfs are not enough and generate a build failure, so let's expand rootfs size to 120M.

---
 configs/roc_pc_rk3399_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/roc_pc_rk3399_defconfig +1 -1
index dfbc5e4f47..ae7cf19a80 100644
@@ -45,7 +45,7 @@ BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc"
 BR2_TARGET_GENERIC_ISSUE="Welcome to ROC-RK3399-PC!"
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=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] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

Quoted 2 lines · Giulio Benetti

Default 60M for rootfs are not enough and generate a build failure, so let's expand rootfs size to 120M.

Did you find out _why_ 64M wasn't enough for just the kernel and busybox? Is
it because of all the stupid modules in the default arm64 defconfig? But most other arm64 defconfigs don't seem to need this...

Quoted 11 lines
---
  configs/roc_pc_rk3399_defconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configs/roc_pc_rk3399_defconfig +0 -0
index dfbc5e4f47..ae7cf19a80 100644

configs/roc_pc_rk3399_defconfig BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc" · line 51

Quoted 8 lines
configs/roc_pc_rk3399_defconfig +1 -1
@@ -45,7 +45,7 @@ BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc"
  BR2_TARGET_GENERIC_ISSUE="Welcome to ROC-RK3399-PC!"
  BR2_TARGET_ROOTFS_EXT2=y
  BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
  BR2_PACKAGE_HOST_DOSFSTOOLS=y
  BR2_PACKAGE_HOST_GENIMAGE=y
  BR2_PACKAGE_HOST_MTOOLS=y

Unrelated by this patch, but the image doesn't have a FAT partition so
dosfstols and mtools aren't needed.

Regards,
Arnout

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

#3 lore raw

Re: [Buildroot] [PATCH] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

Hi Arnout,

Quoted 9 lines · Arnout Vandecappelle
Quoted 2 lines · Giulio Benetti

Default 60M for rootfs are not enough and generate a build failure, so let's expand rootfs size to 120M.

Did you find out _why_ 64M wasn't enough for just the kernel and busybox? Is
it because of all the stupid modules in the default arm64 defconfig? But most other arm64 defconfigs don't seem to need this...

It is because of modules(30M) and linux "Image", it's not compressed, so it's 25M. So only for Linux+modules => 55M, plus the few other stuff(Busybox+libc etc.)1M

Also, nothing changed since the beginning, so I don't know how could this happened:

# git log --oneline configs/roc_pc_rk3399_defconfig
f51cbc33d9 configs/roc_pc_rk3399: fix U-Boot dependencies
80ae1aedcb configs/roc_rk3399_pc: new defconfig
# git log --oneline roc-rk3399-pc/
80ae1aedcb configs/roc_rk3399_pc: new defconfig

U-Boot dependencies are host dependencies, so it doesn't impact.

# git log --oneline fs/ext2:
5ece6be60b fs/ext2: fir (again) namespace for variables
db7d786140 fs/ext2: fix namespace for variables
5631c38024 fs/ext2: pass a default string to filesystem label
...
here board has been added

So it doesn't seem a ext2 problem too.
I can't understand how it could be building in the beginning.

We have 2 solutions:
- expand rootfs
- use a compressed linux Image.gz(25M => 9M), but need target testing

Honestly I don't think systems with SoCs like RK3399 have problems with 56M more, so I would go with expanding rootfs to 120M and if maintainer in Cc wants to shrink Linux and target testing it is welcome to send a patch.

What do you think?

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 23 lines
Quoted 11 lines
---
   configs/roc_pc_rk3399_defconfig | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
configs/roc_pc_rk3399_defconfig +0 -0
index dfbc5e4f47..ae7cf19a80 100644

configs/roc_pc_rk3399_defconfig BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc" · line 51

Quoted 8 lines
configs/roc_pc_rk3399_defconfig +1 -1
@@ -45,7 +45,7 @@ BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc"
   BR2_TARGET_GENERIC_ISSUE="Welcome to ROC-RK3399-PC!"
   BR2_TARGET_ROOTFS_EXT2=y
   BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
   BR2_PACKAGE_HOST_DOSFSTOOLS=y
   BR2_PACKAGE_HOST_GENIMAGE=y
   BR2_PACKAGE_HOST_MTOOLS=y

Unrelated by this patch, but the image doesn't have a FAT partition so
dosfstols and mtools aren't needed.

Quoted 3 lines

Regards,
Arnout

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

#4 lore raw

Re: [Buildroot] [PATCH] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

Quoted 6 lines · Giulio Benetti

Hi Arnout,

Quoted 3 lines · Arnout Vandecappelle

On 02/02/2022 18:10, Giulio Benetti wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Default 60M for rootfs are not enough and generate a build failure, so let's expand rootfs size to 120M.

   Did you find out _why_ 64M wasn't enough for just the kernel and busybox? Is it because of all the stupid modules in the default arm64 defconfig? But most other arm64 defconfigs don't seem to need this...

It is because of modules(30M) and linux "Image", it's not compressed, so it's 25M. So only for Linux+modules => 55M, plus the few other stuff(Busybox+libc etc.)1M

Yeah those giant aarch64 default configs are mightily annoying...

I'm thinking, perhaps we should just bite the bullet and move the default ext2
size to 120M...

Peter, Yann, what do you think?

Regards,
Arnout

Quoted 24 lines

Also, nothing changed since the beginning, so I don't know how could this happened:

# git log --oneline configs/roc_pc_rk3399_defconfig
f51cbc33d9 configs/roc_pc_rk3399: fix U-Boot dependencies
80ae1aedcb configs/roc_rk3399_pc: new defconfig
# git log --oneline roc-rk3399-pc/
80ae1aedcb configs/roc_rk3399_pc: new defconfig

U-Boot dependencies are host dependencies, so it doesn't impact.

# git log --oneline fs/ext2:
5ece6be60b fs/ext2: fir (again) namespace for variables
db7d786140 fs/ext2: fix namespace for variables
5631c38024 fs/ext2: pass a default string to filesystem label
...
here board has been added

So it doesn't seem a ext2 problem too.
I can't understand how it could be building in the beginning.

We have 2 solutions:
- expand rootfs
- use a compressed linux Image.gz(25M => 9M), but need target testing

Quoted 5 lines

Honestly I don't think systems with SoCs like RK3399 have problems with 56M more, so I would go with expanding rootfs to 120M and if maintainer in Cc wants to shrink Linux and target testing it is welcome to send a patch.

What do you think?

Best regards

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

#5 lore raw

Re: [Buildroot] [PATCH] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

Arnout, All,

On 2022-02-14 21:13 +0100, Arnout Vandecappelle spake thusly:

Quoted 1 line · Giulio Benetti

[--SNIP--]

Quoted 7 lines
Quoted 3 lines

It is because of modules(30M) and linux "Image", it's not compressed, so it's 25M. So only for Linux+modules => 55M, plus the few other stuff(Busybox+libc etc.)1M

Yeah those giant aarch64 default configs are mightily annoying... I'm thinking, perhaps we should just bite the bullet and move the default
ext2 size to 120M...
Peter, Yann, what do you think?

ACK.

Regards,
Yann E. MORIN.

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
#6 lore raw

Re: [Buildroot] [PATCH] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

In reply to Arnout Vandecappelle
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

It is because of modules(30M) and linux "Image", it's not compressed, so it's 25M. So only for Linux+modules => 55M, plus the few other stuff(Busybox+libc etc.)1M

Quoted 6 lines

Yeah those giant aarch64 default configs are mightily annoying...

I'm thinking, perhaps we should just bite the bullet and move the
default ext2 size to 120M...

Peter, Yann, what do you think?

Fine by me.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

Re: [Buildroot] [PATCH] configs/roc_pc_rk3399_defconfig: expand rootfs size to 120M

In reply to Giulio Benetti
Quoted 13 lines · Giulio Benetti

Default 60M for rootfs are not enough and generate a build failure, so let's expand rootfs size to 120M.

---
  configs/roc_pc_rk3399_defconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configs/roc_pc_rk3399_defconfig +0 -0
index dfbc5e4f47..ae7cf19a80 100644

configs/roc_pc_rk3399_defconfig BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc" · line 48

Quoted 5 lines
configs/roc_pc_rk3399_defconfig +1 -1
@@ -45,7 +45,7 @@ BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc"
  BR2_TARGET_GENERIC_ISSUE="Welcome to ROC-RK3399-PC!"
  BR2_TARGET_ROOTFS_EXT2=y
  BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_TARGET_ROOTFS_EXT2_SIZE="64M"
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"

Even though I proposed to move the default to 120M, that's for next anyway,
and this defconfig should be fixed on master, so applied to master, thanks.

Regards,
Arnout

configs/roc_pc_rk3399_defconfig BR2_TARGET_GENERIC_HOSTNAME="roc-rk3399-pc" · line 51

Quoted 3 lines
configs/roc_pc_rk3399_defconfig +0 -0
  BR2_PACKAGE_HOST_DOSFSTOOLS=y
  BR2_PACKAGE_HOST_GENIMAGE=y
  BR2_PACKAGE_HOST_MTOOLS=y

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

#8 lore raw
In reply to Giulio Benetti
Quoted 1 line · Giulio Benetti

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  configs/pcengines_apu2_defconfig | 1 +
  1 file changed, 1 insertion(+)
configs/pcengines_apu2_defconfig +0 -0
index 0792c93c19..a85808554c 100644

configs/pcengines_apu2_defconfig BR2_LINUX_KERNEL_CUSTOM_VERSION=y · line 14

Quoted 7 lines
configs/pcengines_apu2_defconfig +1 -0
@@ -8,6 +8,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
  BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16"
  BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
  BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pcengines/apu2/linux.config"
+BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
 
  # Default hostname and TTY
  BR2_TARGET_GENERIC_HOSTNAME="apu2"

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