2020-12-17 09:14:57 +00:00
|
|
|
F2FS format utility
|
2012-10-26 12:56:34 +00:00
|
|
|
---------------------
|
|
|
|
|
2020-12-17 09:14:57 +00:00
|
|
|
To use the f2fs filesystem, you should format the storage partition
|
|
|
|
with this utility. Otherwise, you cannot mount f2fs.
|
2012-10-26 12:56:34 +00:00
|
|
|
|
2012-10-29 22:35:00 +00:00
|
|
|
Before compilation
|
|
|
|
------------------
|
|
|
|
|
2016-11-15 00:31:38 +00:00
|
|
|
You should install the following packages.
|
2012-10-29 22:35:00 +00:00
|
|
|
- libuuid-devel or uuid-dev
|
2013-01-23 17:22:13 +00:00
|
|
|
- autoconf
|
2013-12-16 03:32:37 +00:00
|
|
|
- libtool
|
2015-12-10 00:18:44 +00:00
|
|
|
- libselinux1-dev
|
2012-10-29 22:35:00 +00:00
|
|
|
|
2012-10-26 12:56:34 +00:00
|
|
|
Initial compilation
|
|
|
|
-------------------
|
|
|
|
|
2020-12-17 09:14:57 +00:00
|
|
|
Before initial compilation, autoconf/automake tools should be run.
|
2012-10-26 12:56:34 +00:00
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
./autogen.sh
|
2012-10-26 12:56:34 +00:00
|
|
|
|
|
|
|
How to compile
|
|
|
|
--------------
|
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
2012-10-26 12:56:34 +00:00
|
|
|
|
2013-10-17 06:15:54 +00:00
|
|
|
How to cross-compile (e.g., for ARM)
|
|
|
|
------------------------------------
|
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
1. Add the below line into mkfs/Makefile.am:
|
|
|
|
mkfs_f2fs_LDFLAGS = -all-static
|
2013-10-17 06:15:54 +00:00
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
2. Add the below line into fsck/Makefile.am:
|
|
|
|
fsck_f2fs_LDFLAGS = -all-static
|
2013-10-17 06:15:54 +00:00
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
3. then, do:
|
|
|
|
LDFLAGS=--static ./configure \
|
|
|
|
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
|
|
|
|
make
|
2013-10-17 06:15:54 +00:00
|
|
|
|
2012-10-26 12:56:34 +00:00
|
|
|
How to run by default
|
|
|
|
---------------------
|
|
|
|
|
2022-05-11 11:10:55 +00:00
|
|
|
mkfs.f2fs -l [LABEL] $DEV
|
2012-10-26 12:56:34 +00:00
|
|
|
|
2020-12-17 09:14:57 +00:00
|
|
|
For more mkfs options, see the man page.
|