From e348ea70ff44adc4aaa7ec4126103592f6503c82 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 31 Oct 2017 10:40:06 -0600 Subject: [PATCH] sim/userfs: Add a configuration for testing the UserFS using apps/examples/userfs. --- configs/sim/README.txt | 14 +++++++++ configs/sim/userfs/defconfig | 56 ++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 configs/sim/userfs/defconfig diff --git a/configs/sim/README.txt b/configs/sim/README.txt index 2d6ed00f91..0e8dfca1ff 100644 --- a/configs/sim/README.txt +++ b/configs/sim/README.txt @@ -1038,6 +1038,20 @@ unionfs You can see the files in the two file systems before they were unified at apps/examples/unionfs/atestdir and btestdir. +userfs + + This is another NSH configuration that includes the built-in application of apps/examples/userfs to support test of the UserFS on the simulation platform. + + To use the test: + + nsh> userfs # Mounts the UserFS test file system at + # /mnt/ufstest + nsh> mount # Testing is then performed by exercising the + # file system from the command line + nsh> ls -l /mnt/ufstest + nsh> cat /mnt/ufstest/File1 + etc. + ustream This is the same as the nsh configuration except that it includes diff --git a/configs/sim/userfs/defconfig b/configs/sim/userfs/defconfig new file mode 100644 index 0000000000..fe11ac5a7f --- /dev/null +++ b/configs/sim/userfs/defconfig @@ -0,0 +1,56 @@ +# CONFIG_NET_ETHERNET is not set +# CONFIG_NET_IPv4 is not set +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +# CONFIG_NSH_DISABLE_DATE is not set +CONFIG_ARCH_BOARD_SIM=y +CONFIG_ARCH_BOARD="sim" +CONFIG_ARCH_SIM=y +CONFIG_ARCH="sim" +CONFIG_BINFMT_EXEPATH=y +CONFIG_BOARD_LOOPSPERMSEC=0 +CONFIG_BOARDCTL_POWEROFF=y +CONFIG_BOOT_RUNFROMEXTSRAM=y +CONFIG_BUILTIN=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DEV_LOOP=y +CONFIG_DEV_ZERO=y +CONFIG_DISABLE_POLL=y +CONFIG_EXAMPLES_NSH=y +CONFIG_EXAMPLES_USERFS_STACKSIZE=16384 +CONFIG_EXAMPLES_USERFS=y +CONFIG_FAT_LCNAMES=y +CONFIG_FAT_LFN=y +CONFIG_FS_FAT=y +CONFIG_FS_PROCFS=y +CONFIG_FS_ROMFS=y +CONFIG_FS_USERFS=y +CONFIG_FSUTILS_PASSWD_READONLY=y +CONFIG_FSUTILS_PASSWD=y +CONFIG_IDLETHREAD_STACKSIZE=4096 +CONFIG_LIBC_EXECFUNCS=y +CONFIG_MAX_TASKS=64 +CONFIG_NET_LOCAL=y +CONFIG_NET=y +CONFIG_NFILE_DESCRIPTORS=32 +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_ARCHROMFS=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FATDEVNO=2 +CONFIG_NSH_FILE_APPS=y +CONFIG_NSH_READLINE=y +CONFIG_NSH_ROMFSDEVNO=1 +CONFIG_NSH_ROMFSETC=y +CONFIG_PATH_INITIAL="/bin" +CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=2048 +CONFIG_PTHREAD_STACK_DEFAULT=8192 +CONFIG_READLINE_TABCOMPLETION=y +CONFIG_SCHED_HAVE_PARENT=y +CONFIG_SCHED_ONEXIT=y +CONFIG_SCHED_WAITPID=y +CONFIG_SDCLONE_DISABLE=y +CONFIG_SIM_WALLTIME=y +CONFIG_START_MONTH=6 +CONFIG_START_YEAR=2008 +CONFIG_TIME_EXTENDED=y +CONFIG_USER_ENTRYPOINT="nsh_main" +CONFIG_USERMAIN_STACKSIZE=4096