U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: stemmy: Enable ext filesystem writes
@ 2026-11-27 10:09 Linus Walleij
  2026-11-27 17:54 ` Stephan Gerhold
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2026-11-27 10:09 UTC (permalink / raw)
  To: u-boot, Tom Rini, Stefan Hansson, Stephan Gerhold; +Cc: Linus Walleij

Stemmy can read the ext2 boot partition cretaed by e.g. Nura
build, but has no ext filesystem write support enabled.
This is needed for EFI variable storage.

The EFI variable store fails to create or update ubootefi.var:

  ** File not found ubootefi.var **
  No EFI variables loaded
  ** Unable to write file ubootefi.var **
  Failed to persist EFI variables

Enable EXT4_WRITE that will write EXT2 and EXT4 alike.

Signed-off-by: Linus Walleij <linusw@kernel.org>
---
 configs/stemmy_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/stemmy_defconfig b/configs/stemmy_defconfig
index 982eeab391c0..f5519c7ab05e 100644
--- a/configs/stemmy_defconfig
+++ b/configs/stemmy_defconfig
@@ -42,3 +42,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x685d
 CONFIG_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_VIDEO_MCDE_SIMPLE=y
+CONFIG_EXT4_WRITE=y

---
base-commit: c1958b5f6cce03956d309ce422b5d9f819955d4a
change-id: 20261126-ux500-ext4-write-4a654d54b861

Best regards,
--  
Linus Walleij <linusw@kernel.org>


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

* Re: [PATCH] configs: stemmy: Enable ext filesystem writes
  2026-11-27 10:09 [PATCH] configs: stemmy: Enable ext filesystem writes Linus Walleij
@ 2026-11-27 17:54 ` Stephan Gerhold
  2026-11-28 22:33   ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Stephan Gerhold @ 2026-11-27 17:54 UTC (permalink / raw)
  To: Linus Walleij; +Cc: u-boot, Tom Rini, Stefan Hansson

On Fri, Nov 27, 2026 at 11:09:46AM +0100, Linus Walleij wrote:
> Stemmy can read the ext2 boot partition cretaed by e.g. Nura
> build, but has no ext filesystem write support enabled.
> This is needed for EFI variable storage.
> 
> The EFI variable store fails to create or update ubootefi.var:
> 
>   ** File not found ubootefi.var **
>   No EFI variables loaded
>   ** Unable to write file ubootefi.var **
>   Failed to persist EFI variables
> 
> Enable EXT4_WRITE that will write EXT2 and EXT4 alike.
> 
> Signed-off-by: Linus Walleij <linusw@kernel.org>

I don't think a EXT2 partition is compliant with the EFI specification,
so we should probably change the Nura device ports to create FAT boot
partitions, there is an option for this in the deviceinfo file:
deviceinfo_boot_filesystem="fat32"

I don't think this change hurts though so fwiw:

Acked-by: Stephan Gerhold <stephan.gerhold@linaro.org>

Thanks,
Stephan

> ---
>  configs/stemmy_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/stemmy_defconfig b/configs/stemmy_defconfig
> index 982eeab391c0..f5519c7ab05e 100644
> --- a/configs/stemmy_defconfig
> +++ b/configs/stemmy_defconfig
> @@ -42,3 +42,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x685d
>  CONFIG_VIDEO=y
>  CONFIG_SYS_WHITE_ON_BLACK=y
>  CONFIG_VIDEO_MCDE_SIMPLE=y
> +CONFIG_EXT4_WRITE=y
> 
> ---
> base-commit: c1958b5f6cce03956d309ce422b5d9f819955d4a
> change-id: 20261126-ux500-ext4-write-4a654d54b861
> 
> Best regards,
> --  
> Linus Walleij <linusw@kernel.org>
> 

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

* Re: [PATCH] configs: stemmy: Enable ext filesystem writes
  2026-11-27 17:54 ` Stephan Gerhold
@ 2026-11-28 22:33   ` Linus Walleij
  2026-12-01 23:22     ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2026-11-28 22:33 UTC (permalink / raw)
  To: Stephan Gerhold; +Cc: u-boot, Tom Rini, Stefan Hansson

On Fri, Nov 27, 2026 at 6:54 PM Stephan Gerhold
<stephan.gerhold@linaro.org> wrote:

> I don't think a EXT2 partition is compliant with the EFI specification,
> so we should probably change the Nura device ports to create FAT boot
> partitions, there is an option for this in the deviceinfo file:
> deviceinfo_boot_filesystem="fat32"

I just assumed Nura's build system knows what it
is doing :D

Yeah... I should send a v2 enabling FAT instead.

We only need to read ext2 I think.

> I don't think this change hurts though so fwiw:
>
> Acked-by: Stephan Gerhold <stephan.gerhold@linaro.org>

Can I keep this for adding FAT instead?

Yours,
Linus Walleij

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

* Re: [PATCH] configs: stemmy: Enable ext filesystem writes
  2026-11-28 22:33   ` Linus Walleij
@ 2026-12-01 23:22     ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2026-12-01 23:22 UTC (permalink / raw)
  To: Stephan Gerhold; +Cc: u-boot, Tom Rini, Stefan Hansson

On Sat, Nov 28, 2026 at 11:33 PM Linus Walleij <linusw@kernel.org> wrote:
> On Fri, Nov 27, 2026 at 6:54 PM Stephan Gerhold
> <stephan.gerhold@linaro.org> wrote:
>
> > I don't think a EXT2 partition is compliant with the EFI specification,
> > so we should probably change the Nura device ports to create FAT boot
> > partitions, there is an option for this in the deviceinfo file:
> > deviceinfo_boot_filesystem="fat32"
>
> I just assumed Nura's build system knows what it
> is doing :D
>
> Yeah... I should send a v2 enabling FAT instead.
>
> We only need to read ext2 I think.
>
> > I don't think this change hurts though so fwiw:
> >
> > Acked-by: Stephan Gerhold <stephan.gerhold@linaro.org>
>
> Can I keep this for adding FAT instead?

It turns out FAT32 writes are already enabled. I changed my
EFI enablement patch for Nura to use FAT32 as root filesystem
as is custom instead.

Yours,
Linus Walleij

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

end of thread, other threads:[~2026-12-01 23:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 10:09 [PATCH] configs: stemmy: Enable ext filesystem writes Linus Walleij
2026-11-27 17:54 ` Stephan Gerhold
2026-11-28 22:33   ` Linus Walleij
2026-12-01 23:22     ` Linus Walleij

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