From 6578475a9669ea74b9e9e3df2b275309862cb27f Mon Sep 17 00:00:00 2001 From: Tony Dinh Date: Wed, 10 Sep 2025 14:56:03 -0700 Subject: [PATCH] doc: ext4fs: update documentation for Ext4 Write configuration Update documentation for how to configure Ext4 Write when using large partitions. Signed-off-by: Tony Dinh --- doc/README.ext4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/README.ext4 b/doc/README.ext4 index 8ecd21eee3b..ca9f19953d2 100644 --- a/doc/README.ext4 +++ b/doc/README.ext4 @@ -40,6 +40,17 @@ Also relevant are the generic filesystem commands, selected by: This does not automatically enable EXT4 support for you, you still need to do that yourself. +Lastly, the current u-boot implementation for Ext4 write requires a lot +of memory to run successfully. The following enable support for +large Ext4 partitions: + + CONFIG_EXT4_MAX_JOURNAL_ENTRIES + CONFIG_SYS_MALLOC_LEN + +The number of journal entries and dynamic memory allocation are proportional +to the partition capacity. For example, an ext4 4TB HDD partition could +require approximately 500 entries and more than 128 MB heap space. + Some sample commands to test ext4 support: 1. Check that the commands can be seen in the output of U-Boot help: -- 2.47.3