UFFS compilation under GNU/Linux¶
Software requirements¶
- CMake >= 2.6: http://www.cmake.org/cmake/resources/software.html
- git: http://git-scm.com/
- GNU/Linux kernel >= 2.6.30: http://kernel.org/
- mtd-utils: http://git.infradead.org/mtd-utils.git
- libubiio: http://git.uffs.org/?p=libubiio.git;a=summary
- libacl1-dev (Access control list static libraries and headers)
- liblzo2-dev (data compression library (development files))
- uuid-dev (universally unique id library - headers and static libraries)
- libfuse-dev (Filesystem in USErspace (development files))
- fuse-utils (Filesystem in USErspace (utilities))
Compilation and Installation¶
GNU/Linux¶
Compile your GNU/Linux kernel with at least the following options:
CONFIG_MTD=m CONFIG_MTD_CONCAT=m CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CHAR=m CONFIG_HAVE_MTD_OTP=y CONFIG_MTD_BLKDEVS=m CONFIG_MTD_BLOCK=m CONFIG_MTD_BLOCK_RO=m CONFIG_MTD_OOPS=m CONFIG_MTD_GEN_PROBE=m CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y CONFIG_MTD_ABSENT=m CONFIG_MTD_BLOCK2MTD=m CONFIG_MTD_NAND=m CONFIG_MTD_NAND_MUSEUM_IDS=y CONFIG_MTD_NAND_IDS=m CONFIG_MTD_NAND_NANDSIM=m CONFIG_MTD_NAND_PLATFORM=m CONFIG_MTD_UBI=m CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_RESERVE=1 CONFIG_MTD_UBI_GLUEBI=y CONFIG_MTD_UBI_DEBUG=y CONFIG_UBIFS_FS=m CONFIG_UBIFS_FS_XATTR=y CONFIG_UBIFS_FS_ADVANCED_COMPR=y CONFIG_UBIFS_FS_LZO=y CONFIG_UBIFS_FS_ZLIB=y CONFIG_UBIFS_FS_DEBUG=y CONFIG_UBIFS_FS_DEBUG_MSG_LVL=3
mtd-utils¶
$ git clone git://git.infradead.org/mtd-utils.git$ cd mtd-utils$ mkdir build$ make$ sudo make install DESTDIR=/usr/ BINDIR=bin/ SBINDIR=sbin/ BUILDDIR=./build/
libubiio¶
$ git clone git://git.uffs.org/libubiio.git$ cd libubiio$ mkdir build$ cd build$ cmake ..$ make$ sudo make install
uffs¶
$ git clone git://git.uffs.org/uffs.git$ cd uffs$ mkdir build$ cd build
To generate the Makefile:$ cmake -DCMAKE_BUILD_TYPE=Release ..
or, if you want to compile in Debug mode:$ cmake -DCMAKE_BUILD_TYPE=Debug ..$ make
or, if you want to compile in verbose mode:$ make VERBOSE=1$ make install
Packaging¶
$ cpack
It will generate deb, tar.bz2, tar.gz package