DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] v7a: kernel: enable CONFIG_OF_PARTITION
@ 2025-04-14 12:03 Ahmad Fatoum
  2025-04-22  9:25 ` Robert Schwebel
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-04-14 12:03 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

CONFIG_OF_PARTITION controls a new binding since v6.13-rc1 that ignores
GPT and MBR partition tables if a fixed-partitions node is specified in
an SD/eMMC.

This collided with barebox, which allows peaceful co-existence of
fixed-partitions with on-disk partitions as long they don't overlap
or are fully identical.

barebox v2025.03.0 now fixes up barebox SD/eMMC partitions with a
barebox,fixed-partitions compatible to avoid conflicts.
Give this some extra testing by enabling CONFIG_OF_PARTITION here in
platform-v7a, but keeping it disabled in platform-v8a.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v7a/kernelconfig | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig
index 9265e3b1c0ed..8e5888dfdeb1 100644
--- a/configs/platform-v7a/kernelconfig
+++ b/configs/platform-v7a/kernelconfig
@@ -823,9 +823,27 @@ CONFIG_BLOCK=y
 #
 # Partition Types
 #
-# CONFIG_PARTITION_ADVANCED is not set
+CONFIG_PARTITION_ADVANCED=y
+# CONFIG_ACORN_PARTITION is not set
+# CONFIG_AIX_PARTITION is not set
+# CONFIG_OSF_PARTITION is not set
+# CONFIG_AMIGA_PARTITION is not set
+# CONFIG_ATARI_PARTITION is not set
+# CONFIG_MAC_PARTITION is not set
 CONFIG_MSDOS_PARTITION=y
+# CONFIG_BSD_DISKLABEL is not set
+# CONFIG_MINIX_SUBPARTITION is not set
+# CONFIG_SOLARIS_X86_PARTITION is not set
+# CONFIG_UNIXWARE_DISKLABEL is not set
+# CONFIG_LDM_PARTITION is not set
+# CONFIG_SGI_PARTITION is not set
+# CONFIG_ULTRIX_PARTITION is not set
+# CONFIG_SUN_PARTITION is not set
+# CONFIG_KARMA_PARTITION is not set
 CONFIG_EFI_PARTITION=y
+# CONFIG_SYSV68_PARTITION is not set
+# CONFIG_CMDLINE_PARTITION is not set
+CONFIG_OF_PARTITION=y
 # end of Partition Types
 
 CONFIG_BLK_MQ_VIRTIO=y
-- 
2.39.5




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [DistroKit] [PATCH] v7a: kernel: enable CONFIG_OF_PARTITION
  2025-04-14 12:03 [DistroKit] [PATCH] v7a: kernel: enable CONFIG_OF_PARTITION Ahmad Fatoum
@ 2025-04-22  9:25 ` Robert Schwebel
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Schwebel @ 2025-04-22  9:25 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

Applied to next.

On Mon, Apr 14, 2025 at 02:03:27PM +0200, Ahmad Fatoum wrote:
> CONFIG_OF_PARTITION controls a new binding since v6.13-rc1 that ignores
> GPT and MBR partition tables if a fixed-partitions node is specified in
> an SD/eMMC.
> 
> This collided with barebox, which allows peaceful co-existence of
> fixed-partitions with on-disk partitions as long they don't overlap
> or are fully identical.
> 
> barebox v2025.03.0 now fixes up barebox SD/eMMC partitions with a
> barebox,fixed-partitions compatible to avoid conflicts.
> Give this some extra testing by enabling CONFIG_OF_PARTITION here in
> platform-v7a, but keeping it disabled in platform-v8a.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  configs/platform-v7a/kernelconfig | 20 +++++++++++++++++++-
>  1 file changed, 19 insertions(+), 1 deletion(-)
> 
> diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig
> index 9265e3b1c0ed..8e5888dfdeb1 100644
> --- a/configs/platform-v7a/kernelconfig
> +++ b/configs/platform-v7a/kernelconfig
> @@ -823,9 +823,27 @@ CONFIG_BLOCK=y
>  #
>  # Partition Types
>  #
> -# CONFIG_PARTITION_ADVANCED is not set
> +CONFIG_PARTITION_ADVANCED=y
> +# CONFIG_ACORN_PARTITION is not set
> +# CONFIG_AIX_PARTITION is not set
> +# CONFIG_OSF_PARTITION is not set
> +# CONFIG_AMIGA_PARTITION is not set
> +# CONFIG_ATARI_PARTITION is not set
> +# CONFIG_MAC_PARTITION is not set
>  CONFIG_MSDOS_PARTITION=y
> +# CONFIG_BSD_DISKLABEL is not set
> +# CONFIG_MINIX_SUBPARTITION is not set
> +# CONFIG_SOLARIS_X86_PARTITION is not set
> +# CONFIG_UNIXWARE_DISKLABEL is not set
> +# CONFIG_LDM_PARTITION is not set
> +# CONFIG_SGI_PARTITION is not set
> +# CONFIG_ULTRIX_PARTITION is not set
> +# CONFIG_SUN_PARTITION is not set
> +# CONFIG_KARMA_PARTITION is not set
>  CONFIG_EFI_PARTITION=y
> +# CONFIG_SYSV68_PARTITION is not set
> +# CONFIG_CMDLINE_PARTITION is not set
> +CONFIG_OF_PARTITION=y
>  # end of Partition Types
>  
>  CONFIG_BLK_MQ_VIRTIO=y
> -- 
> 2.39.5
> 
> 
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-22  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-14 12:03 [DistroKit] [PATCH] v7a: kernel: enable CONFIG_OF_PARTITION Ahmad Fatoum
2025-04-22  9:25 ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox