merged.

Bruce

In message: [yocto-kernel-cache][yocto-6.1][PATCH] flash_fs: disable 4K sector 
when ubifs is enabled
on 08/10/2023 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang <quanyang.w...@windriver.com>
> 
> When CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is enabled, mounting ubifs will
> trigger the following error log:
> 
> UBIFS error (ubi0:0 pid 588): init_constants_early: too small LEBs (3968 
> bytes), min. is 15360 bytes
> 
> This is because that c->leb_size is required to be larger than 15*1024.
> And c->leb_size is calculated by the formula:
>     c->leb_size = ubi->mtd->erasesize - ubi->leb_start - data_pad
> So if erasesize is set to be 4K, ubifs will fail to work. Let's disable
> this kernel option explicitly while UBIFS is enabled.
> 
> Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com>
> ---
> Hi Bruce,
> Would you please help merge this patch to the branch:
>       yocto-6.1
> Thanks,
> Quanyang
> ---
>  cfg/fs/flash_fs.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cfg/fs/flash_fs.cfg b/cfg/fs/flash_fs.cfg
> index f9aef96ebb..291f40135f 100644
> --- a/cfg/fs/flash_fs.cfg
> +++ b/cfg/fs/flash_fs.cfg
> @@ -19,3 +19,4 @@ CONFIG_YAFFS_AUTO_YAFFS2=y
>  
>  CONFIG_MTD_UBI=y
>  CONFIG_UBIFS_FS=y
> +CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=n
> -- 
> 2.36.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13153): 
https://lists.yoctoproject.org/g/linux-yocto/message/13153
Mute This Topic: https://lists.yoctoproject.org/mt/101829936/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to