samples/subsys/shell/fs: remove nffs configuration
NFFS configuration was removed. Added working configuration for nRF boards. Documentation aligned to fact that littlefs is supported. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
e104741b7c
commit
7331a9ea26
7 changed files with 20 additions and 12 deletions
|
@ -2,8 +2,22 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
|
||||
if((BOARD STREQUAL nrf52840_pca10056) OR
|
||||
(BOARD STREQUAL nrf52_pca10040) OR
|
||||
(BOARD STREQUAL nrf9160_pca10090) OR
|
||||
(BOARD STREQUAL reel_board)
|
||||
)
|
||||
if(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
||||
set(CONF_FILE "prj.conf mpu.conf boards/${BOARD}.conf")
|
||||
else()
|
||||
set(CONF_FILE "prj.conf mpu.conf")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(fs_shell)
|
||||
|
||||
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
||||
|
|
|
@ -6,12 +6,12 @@ File system shell example
|
|||
Overview
|
||||
********
|
||||
|
||||
This example provides shell access to a NFFS file system partition in flash.
|
||||
This example provides shell access to a LittleFS file system partition in flash.
|
||||
|
||||
Requirements
|
||||
************
|
||||
|
||||
A board with NFFS file system support and UART console
|
||||
A board with LittleFS file system support and UART console
|
||||
|
||||
Building
|
||||
********
|
||||
|
@ -62,11 +62,11 @@ Running
|
|||
Once the board has booted, you will be presented with a shell prompt.
|
||||
All file system related commands are available as sub-commands of fs.
|
||||
|
||||
Begin by mounting the NFSS file system.
|
||||
Begin by mounting the LittleFS file system.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
fs mount nffs /nffs
|
||||
fs mount littlefs /lfs
|
||||
|
||||
Files System Shell Commands
|
||||
===========================
|
||||
|
@ -78,7 +78,7 @@ Mount a file system partition to a given mount point
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
fs mount (nffs|fat) <path>
|
||||
fs mount (littlefs|fat) <path>
|
||||
|
||||
Ls
|
||||
--
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
CONFIG_FUSE_FS_ACCESS=y
|
||||
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"
|
||||
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
CONFIG_FUSE_FS_ACCESS=y
|
||||
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
||||
CONFIG_FS_NFFS_FLASH_DEV_NAME="NRF_FLASH_DRV_NAME"
|
1
samples/subsys/shell/fs/mpu.conf
Normal file
1
samples/subsys/shell/fs/mpu.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
|
@ -11,7 +11,6 @@ CONFIG_SHELL_LOG_LEVEL_INF=y
|
|||
CONFIG_FILE_SYSTEM=y
|
||||
CONFIG_FILE_SYSTEM_SHELL=y
|
||||
|
||||
CONFIG_FILE_SYSTEM_NFFS=y
|
||||
|
||||
CONFIG_FILE_SYSTEM_LITTLEFS=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue