Skip to content

Commit

Permalink
WIP: FS on native_posix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkra committed Oct 26, 2023
1 parent 4a4bacb commit a3c9b7e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/boards/native_posix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ CONFIG_INPUT=y
CONFIG_INPUT_LONGPRESS=n
CONFIG_INPUT_SDL_TOUCH=y
CONFIG_FLASH_SIMULATOR=y
CONFIG_FUSE_FS_ACCESS=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_LV_Z_USE_FILESYSTEM=y
CONFIG_LV_IMG_CACHE_DEF_SIZE=10

CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=16384


CONFIG_I2C=n
CONFIG_PWM=n
Expand Down
18 changes: 17 additions & 1 deletion app/boards/native_posix.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,20 @@
};

};


/ {
fstab {
compatible = "zephyr,fstab";
lvgl_lfs: lvgl_lfs {
compatible = "zephyr,fstab,littlefs";
mount-point = "/lvgl_lfs";
partition = <&lvgl_lfs_partition>;
automount;
read-size = <1024>;
prog-size = <512>;
cache-size = <4096>;
lookahead-size = <4096>;
block-cycles = <512>;
};
};
};

0 comments on commit a3c9b7e

Please sign in to comment.