From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] fs/ubifs: increase logical eraseblock size
Date: Mon, 10 Jul 2023 19:26:56 +0200 [thread overview]
Message-ID: <20230710192656.54dd5f23@windsurf> (raw)
In-Reply-To: <20230708163644.710352-1-bernd@kuhls.net>
On Sat, 8 Jul 2023 18:36:44 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> This value is unchanged since 2008 and too small for current images.
>
> Fixes:
> http://autobuild.buildroot.net/results/f72/f72918d63510b170e5da01bfa9c247cf9dcf507f/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> There is no particular reason for the new value, it was just the first
> value I found working for this defconfig while increasing it in steps
> of 0x10000.
>
> fs/ubifs/Config.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ubifs/Config.in b/fs/ubifs/Config.in
> index e79ab9a17e..bad26bf99f 100644
> --- a/fs/ubifs/Config.in
> +++ b/fs/ubifs/Config.in
> @@ -7,7 +7,7 @@ if BR2_TARGET_ROOTFS_UBIFS
>
> config BR2_TARGET_ROOTFS_UBIFS_LEBSIZE
> hex "logical eraseblock size"
> - default 0x1f800
> + default 0x3f800
This doesn't make sense, and in fact doesn't really solve the issue at
http://autobuild.buildroot.net/results/f72/f72918d63510b170e5da01bfa9c247cf9dcf507f/build-end.log.
The issue at
http://autobuild.buildroot.net/results/f72/f72918d63510b170e5da01bfa9c247cf9dcf507f/build-end.log
is that the *number* of LEBs in insufficient, i.e the size of the image
is too small to contain the root filesystem contents.
What your patch is doing is changing the size of the LEB, but the size
of the LEB is intimately related to the NAND flash geometry. You can't
just change it randomly. So yes, by extending the LEB size, you're less
likely to encounter the "max_leb_cnt too low" error because with a
larger LEB size, you have more space for a given number of LEBs, but
you're not fixing the real issue, which is bound to happen again with a
larger root filesystem.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-07-10 17:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-08 16:36 [Buildroot] [PATCH 1/1] fs/ubifs: increase logical eraseblock size Bernd Kuhls
2023-07-10 17:26 ` Thomas Petazzoni via buildroot [this message]
[not found] <20230708163644.710352-1-bernd__8474.55057535029$1688834229$gmane$org@kuhls.net>
2023-07-09 12:39 ` Bernd Kuhls
2023-07-10 17:28 ` Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230710192656.54dd5f23@windsurf \
--to=buildroot@buildroot.org \
--cc=bernd@kuhls.net \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox