[AT&T, Rogers HTC One X, Telstra One XL] jrior001:
F2FS FOR EVITA ANY AOSP ROM

F2FS for EVITA

AOSP only!

Current CM or most any of our AOSP ROMs around here that use a current CM based kernel.

THIS IS EXPERIMENTAL AND HAS POTENTIAL FOR DATA LOSS IF DONE IMPROPERLY. IF YOU ARE NOT COMFORTABLE WITH THAT PLEASE DO NOT ATTEMPT. I CANNOT BE AVAILABLE FOR 24/7 SUPPORT ON THIS.

These mods will provide the ability to format /data and /cache in F2FS format instead of EXT4. Use extreme caution. The will erase your entire /data partition just like a clean flash. I cannot and will not be held responsible for your failure to keep backups handy. F2FS is still considered experimental by Samsung and should be by you the user as well.

What is F2FS?

F2FS wiki

Why F2FS?

F2FS put to the test vs EXT4

How to switch?

PLEASE READ INSTRUCTIONS CAREFULLY. IF NOT FOLLOWED YOU WILL LIKELY BOOTLOOP!!

F2FS capable TWRP Recovery 2.7.1.0 KK version

F2FS capable TWRP Recovery 2.8.5.0 KK versionThis is the same as the current official TWRP built with the added F2FS support commits. When wiping a partition you will have the option to reformat in F2FS now as well.

Kernel+fstab conversion zip Flash this after converting partitions to F2FS to install a CM kernel with F2FS support built in. This zip uses an anykernel installer so it should be comparable with most current ROMS. The zip will extract your current boot.img, unpack and replace your current fstab with a new fstab to indicate you current partition types, replace kernel with F2FS capable kernel , then repack and replace the boot.img

Fstab conversion zip For use only when you are already running a F2FS kernel and only need to update fstab after switching to/from F2FS/EXT4. This installer will only unpack, edit the fstab, and repack the boot.img. This will not replace the kernel, you must already be using an F2FS kernel or be returning to EXT4 only to make use of this zip.

DOWNLOADS NOW HOSTED @ CODEFI.RE

http://downloads.codefi.re/jrior001/Evita-f2fs

Procedure for fresh conversion including new Rom flashing:

1. Backup everthing you want to keep with titanium backup or whatever backup you choose.

2. Fastboot flash the new recovery img.

3. Run a twrp backup in case things get ugly!

4. Flash new ROM now if desired.

5. Still in recovery...Goto wipe -> hit Advanced wipe. Select data and hit change partition type. Convert to F2FS. Repeat for cache.

6. Flash the Kernel+fstab conversion zip.

7. Reboot and profit. Any partition app on market can confirm new format changes.

Procedure for nightly ROM updates after F2FS conversion:

1. Flaah nightly

2. Flash kernel+fstab conversion zip.

Procedure if you want to convert back and forth after initial conversion for testing purposes:

1. Change formats of data/cache as desired (only ext4 and f2fs supported).

2. Flash fstab conversion zip to update format types before attempting boot.

CHANGELOG
V1.0 - Initial release

V1.1 - added inline_data flag to F2FS mounts

V1.2 - updated to latest kernel/fstab as of 8/9

V2.0 - updated for cm-12.0

Source:

Kernel: https://github.com/jrior001/android_kernel_htc_msm8960/tree/cm-11.0-f2fs

Recovery tree: https://github.com/jrior001/twrp-htc-evita/tree/cm-12.0

Fstab scripts: https://github.com/jrior001/f2fs_fstab_convert_script

Devs, feel free to use or modify any of this for your own work just give thanks to where it came from. It was not all my original work, I must give thanks to Metallice and a few other devs in the grouper forum whose scripts I adapted for my own work.

XDA:DevDB Information

F2FS EVITA, Kernel for the AT&T HTC One X

Contributors

jrior001

Source Code: https://github.com/jrior001/f2fs_fstab_convert_script

Kernel Special Features: f2fs support

Version Information

Status: Beta

Current Beta Version: 1.0

Beta Release Date: 2014-07-08

Created 2014-07-09

Last Updated 2015-02-26