Page 1 of 1

Adding new partition to spi-nand image

Posted: 2025-04-30 11:00
by 14Og
Hi! I want to create a system image for spi-nand with ubifs where my rootfs partition will be read-only. However, i need a little amount of rw space inside my filesystem. Is it possible to create a dedicated physical partition on a nand flash for that purpose? I can certainly remount nand partitions in /etc/fstab, but i'm not sure that new partition creation is that straightforward. I wonder, is adding new partition to .BoardConfig.mk file enough?

Re: Adding new partition to spi-nand image

Posted: 2025-05-06 4:05
by Crocodile
Hello, you can refer to the board level support file for the FASTBOOT suffix under project/cfg/BoardConfig_IPC, the RK_PARTITION_CMD_IN_ENV and RK_PARTITION_FS_TYPE_CFG configuration, set the rootfs partition to read-only erofs format, and set userdata to read-write ubifs format