README.rst
1.. zephyr:code-sample:: fatfs-fstab
2 :name: Fatfs filesystem fstab
3 :relevant-api: file_system_api
4
5 Define fatfs filesystems in the devicetree.
6
7Overview
8***********
9
10This sample shows how to define a fatfs fstab entry in the devicetree.
11This scenario uses a fatfs on a RAM disk. The sample is run on the
12``native_sim`` board.
13
14Building and running
15********************
16
17To run this sample, build it for the ``native_sim`` board
18and afterwards run the generated executable file within the build folder.
19
20The RAM disk sample for the ``native_sim`` board can be built as follows:
21
22.. zephyr-app-commands::
23 :zephyr-app: samples/subsys/fs/fatfs_fstab
24 :host-os: unix
25 :board: native_sim
26 :gen-args: -DDTC_OVERLAY_FILE=fatfs_fstab.overlay
27 :goals: build
28 :compact:
29
30Sample Output
31=============
32
33When the sample runs successfully you should see following message on the screen:
34.. code-block:: console
35
36 I: Filesystem access successful
37