fs: Updates file system sample app to use flash storage diskio
Demonstrates the use of flash storage media for file system. This uses the on-board SPI flash on Arduino 101 board. Jira: ZEP-447 Change-Id: Ia571cff743f338d57922df68172e94c3f18a802d Signed-off-by: Kuo-Lang Tseng <kuo-lang.tseng@intel.com>
This commit is contained in:
parent
57c760ad94
commit
101acb4842
4 changed files with 12 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
KERNEL_TYPE = nano
|
||||
BOARD ?= qemu_x86
|
||||
BOARD ?= arduino_101
|
||||
CONF_FILE = prj.conf
|
||||
|
||||
include ${ZEPHYR_BASE}/Makefile.inc
|
||||
|
|
|
@ -7,11 +7,9 @@ Demonstrates basic file and dir operations using the Zephyr file system.
|
|||
|
||||
Building and Running Project:
|
||||
|
||||
While this demo uses RAM to emulate storage, it can be tested using QEMU.
|
||||
The demo will run on Arduino 101 and will use the on-board SPI flash.
|
||||
|
||||
Following command will build it for running on QEMU:
|
||||
|
||||
make qemu
|
||||
make BOARD=arduino_101
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
CONFIG_FILE_SYSTEM=y
|
||||
CONFIG_FILE_SYSTEM_FAT=y
|
||||
CONFIG_FS_FAT_RAM_DISK=y
|
||||
CONFIG_FS_FAT_FLASH_DISK=y
|
||||
CONFIG_FS_FAT_FLASH_DISK_W25QXXDV=y
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI_CS_GPIO=y
|
||||
CONFIG_SPI_0_CS_GPIO_PIN=24
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
tags = fs
|
||||
build_only = true
|
||||
arch_whitelist = x86
|
||||
platform_whitelist = qemu_x86
|
||||
platform_whitelist = arduino_101
|
||||
kernel = nano
|
||||
|
||||
[test-micro]
|
||||
tags = fs
|
||||
build_only = true
|
||||
arch_whitelist = x86
|
||||
platform_whitelist = qemu_x86
|
||||
platform_whitelist = arduino_101
|
||||
kernel = micro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue