XilFFS Library can be integrated with a system using the following code snippet
in the Microprocessor Software Specification (MSS) file:
BEGIN LIBRARY
PARAMETER LIBRARY_NAME = xilffs
PARAMETER LIBRARY_VER = 4.4
PARAMETER fs_interface = 1
PARAMETER read_only = false
PARAMETER use_lfn = 0
PARAMETER enable_multi_partition = false
PARAMETER num_logical_vol = 2
PARAMETER use_mkfs = true
PARAMETER use_strfunc = 0
PARAMETER set_fs_rpath = 0
PARAMETER enable_exfat = false
PARAMETER word_access = true
PARAMETER use_chmod = false
END
The table below describes the libgen customization parameters.
Parameter | Default Value | Description |
---|---|---|
LIBRARY_NAME | xilffs | Specifies the library name. |
LIBRARY_VER | 4.4 | Specifies the library version. |
fs_interface |
|
File system interface. SD/eMMC and RAM based file system are supported. |
read_only | False | Enables the file system in Read Only mode, if true. Default is false. For Zynq UltraScale+ MPSoC devices, sets this option as true. |
use_lfn | 0 | Enables the Long File Name(LFN) support if non-zero. 0: Disabled (Default) 1: LFN with static working buffer 2 (on stack) or 3 (on heap): Dynamic working buffer |
enable_multi_partitio | False | Enables the multi partition support, if true. |
num_logical_vol | 2 | Number of volumes (logical drives, from 1 to 10) to be used. |
use_mkfs | True | Enables the mkfs support, if true. For Zynq UltraScale+ MPSoC devices, set this option as false. |
use_strfunc | 0 | Enables the string functions (valid values 0 to 2). Default is 0. |
set_fs_rpath | 0 | Configures relative path feature (valid values 0 to 2). Default is 0. |
ramfs_size | 3145728 | Ram FS size is applicable only when RAM based file system is selected. |
ramfs_start_addr | 0x10000000 | RAM FS start address is applicable only when RAM based file system is selected. |
enable_exfat | false | Enables support for exFAT file system. 0: Disable exFAT 1: Enable exFAT(Also Enables LFN) |
word_access | True | Enables word access for misaligned memory access platform. |
use_chmod | false | Enables use of CHMOD functionality for changing attributes (valid only with read_only set to false). |