Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 1 | F2FS format utilility |
| 2 | --------------------- |
| 3 | |
| 4 | To use f2fs filesystem, you should format the storage partition |
| 5 | with this utilility. Otherwise, you cannot mount f2fs. |
| 6 | |
Jaegeuk Kim | 99b7439 | 2012-10-30 07:35:00 +0900 | [diff] [blame] | 7 | Before compilation |
| 8 | ------------------ |
| 9 | |
Jaegeuk Kim | bb91228 | 2016-11-14 16:31:38 -0800 | [diff] [blame] | 10 | You should install the following packages. |
Jaegeuk Kim | 99b7439 | 2012-10-30 07:35:00 +0900 | [diff] [blame] | 11 | - libuuid-devel or uuid-dev |
Jaegeuk Kim | 28af021 | 2013-01-24 02:22:13 +0900 | [diff] [blame] | 12 | - pkg-config |
| 13 | - autoconf |
Jaegeuk Kim | 11d187c | 2013-12-16 12:32:37 +0900 | [diff] [blame] | 14 | - libtool |
Jaegeuk Kim | 603f8f9 | 2015-12-09 16:18:44 -0800 | [diff] [blame] | 15 | - libselinux1-dev |
Jaegeuk Kim | 99b7439 | 2012-10-30 07:35:00 +0900 | [diff] [blame] | 16 | |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 17 | Initial compilation |
| 18 | ------------------- |
| 19 | |
| 20 | Before compilation initially, autoconf/automake tools should be run. |
| 21 | |
Jaegeuk Kim | bb91228 | 2016-11-14 16:31:38 -0800 | [diff] [blame] | 22 | # ./autogen.sh |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 23 | |
| 24 | How to compile |
| 25 | -------------- |
| 26 | |
| 27 | # ./configure |
| 28 | # make |
Jaegeuk Kim | bb91228 | 2016-11-14 16:31:38 -0800 | [diff] [blame] | 29 | # make install |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 30 | |
Jaegeuk Kim | 050e871 | 2013-10-17 15:15:54 +0900 | [diff] [blame] | 31 | How to cross-compile (e.g., for ARM) |
| 32 | ------------------------------------ |
| 33 | |
| 34 | 1. Add the below line into mkfs/Makefile.am: |
| 35 | mkfs_f2fs_LDFLAGS = -all-static |
| 36 | |
| 37 | 2. Add the below line into fsck/Makefile.am: |
| 38 | fsck_f2fs_LDFLAGS = -all-static |
| 39 | |
| 40 | 3. then, do: |
| 41 | # LDFLAGS=--static ./configure \ |
| 42 | --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi |
| 43 | # make |
| 44 | |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 45 | How to run by default |
| 46 | --------------------- |
| 47 | |
Jaegeuk Kim | bb91228 | 2016-11-14 16:31:38 -0800 | [diff] [blame] | 48 | $ mkfs.f2fs -l [LABEL] $DEV |
Jaegeuk Kim | 036d45e | 2012-10-26 21:56:34 +0900 | [diff] [blame] | 49 | |
| 50 | For more mkfs options, see man page. |