zephyr/boards: Setup rpi_pico to use Zephyr FS instead of MPY FS.

Use new Zephyr FS, and be a demonstration of that configuration.

This is still on-disk compatible with existing filesystems on the internal
flash.

Signed-off-by: Vdragon <mail@massdriver.space>
This commit is contained in:
Vdragon
2025-10-01 18:17:34 +02:00
committed by Damien George
parent 559eb7cdb3
commit a40aba3455
2 changed files with 24 additions and 0 deletions

View File

@@ -18,3 +18,13 @@ CONFIG_SPI=y
# MicroPython config.
CONFIG_MICROPY_HEAP_SIZE=196608
# File System Configuration
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_FILE_SYSTEM_MKFS=y
CONFIG_MICROPY_VFS_FAT=n
CONFIG_MICROPY_VFS_LFS1=n
CONFIG_MICROPY_VFS_LFS2=n
# Default heap for littlefs is too small
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192

View File

@@ -9,6 +9,20 @@
/* Use USB CDC ACM as the console. */
zephyr,console = &cdc_acm_uart0;
};
fstab {
compatible = "zephyr,fstab";
lfs: lfs {
compatible = "zephyr,fstab,littlefs";
mount-point = "/flash";
partition = <&storage_partition>;
read-size=<16>;
prog-size=<256>;
cache-size=<1024>;
lookahead-size=<32>;
block-cycles=<4>;
};
};
};
/* Delete defined partitions and make a layout matching the rp2 port RPI_PICO configuration. */