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 (#13150): https://lists.yoctoproject.org/g/linux-yocto/message/13150 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/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-