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.5
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.5 | 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+ MPSoCs, 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, 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). |