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:
Andrzej Puzdrowski 2020-01-09 13:45:57 +01:00 committed by Carles Cufí
commit 7331a9ea26
7 changed files with 20 additions and 12 deletions

View file

@ -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})

View file

@ -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
--

View file

@ -1,3 +1 @@
CONFIG_FUSE_FS_ACCESS=y
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"

View file

@ -1,3 +1 @@
CONFIG_FUSE_FS_ACCESS=y
CONFIG_FS_NFFS_FLASH_DEV_NAME="flash_ctrl"

View file

@ -1,2 +0,0 @@
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_FS_NFFS_FLASH_DEV_NAME="NRF_FLASH_DRV_NAME"

View file

@ -0,0 +1 @@
CONFIG_MPU_ALLOW_FLASH_WRITE=y

View file

@ -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