[Transformer TF300T Android Development] ebildude123:
F2FS Kernel and Recovery​

ONLY FOLLOW THESE INSTRUCTIONS IF YOU WISH TO TRY F2FS (FLASH FRIENDLY FILE SYSTEM)!

USE THE DOWNLOAD FROM THE FIRST POST FOR NORMAL KERNEL DOWNLOAD!

What is F2FS?

F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk (Hangul: 김재극}) at Samsung for the Linux operating system kernel.[2]

The motive for F2FS was to build a file system that from the start takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers.

Samsung chose a log-structured file system approach, which it adapted to newer forms of storage. F2FS also remedies some known issues[3] of the older log structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. Because a NAND-based storage device shows different characteristics according to its internal geometry or flash memory management scheme (such as the Flash Translation Layer or FTL), Samsung also added various parameters not only for configuring on-disk layout, but also for selecting allocation and cleaning algorithms.

http://en.wikipedia.org/wiki/F2FS

import this.is.your.standard.disclaimer;
public class youHaveBeenWarned
{
public static void main() {
System.out.println("[B][COLOR="Red"]I am not responsible if you damage or brick your device, encounter data loss or corruption, etc.[/COLOR][/B]");
System.out.println("[B][COLOR="red"]At your own risk![/COLOR][/B]");
}
}

Compatible ROMs

CyanogenMod 11, OmniROM 4.4, CROMBi-kk, Probably SlimKAT (untested)

Downloads

TWRP 2.7 for F2FS only: http://www.androidfilehost.com/?fid=23329332407580523

GEASS v7-f2fs for F2FS only: http://www.androidfilehost.com/?fid=23329332407582438

Steps: Read every single word and follow carefully!

1. Backup all your apps, data, music, videos, etc. to your PC or some other external location. They will be lost!

2. Download TWRP 2.7 for F2FS found above in this post. Reboot to your recovery, and flash it. Now boot into android (must).

3. Once in android, download GEASS for f2fs found above in this same post. Reboot to your recovery, and flash it. Now boot into android (must).

4. You will see something along the lines of Encryption Unsuccessful. This is normal.

5. Power off your device (hold power button and select power off).

6. Hold both power and volume down to power your device back on. You should see 3 icons, the first being RCK.

7. Hit volume up once you've confirmed RCK is selected (it should be by default.)

8. You should now be in recovery, and it should say "2.7.0.0-Geass".

9. Hit "Wipe" > "Format Data". When prompted, type "yes" and hit the enter key.

10. It should say it is formatting with mkfs.f2fs.

11. When that is complete, reboot into android.

12. Go through the ROM setup. If you want to double check you're on f2fs, open up terminal emulator and type "mount | grep f2fs" (no quotes) and make sure the /data partition is there (/dev/block/mmcblk0p8). (optional)

13. REMEMBER!: Whenever you are flashing or upgrading a ROM, either remove the boot.blob from the zip before flashing, or flash the F2FS kernel afterwards. For CROMBi-KK, pick "Do Not Flash a Kernel" option when it asks for you to choose a kernel, but still reflash the kernel to get the modules it installs.

Want to use a different kernel and still use F2FS?

These instructions will still apply!

Other confirmed working kernels ( besides GEASS ;) ): _that v9 f2fs

Thanks To

Alex Page (F2FS kernel patch for tegra3)

[MENTION=905572]scanno[/MENTION] (For this commit I needed for twrp -> https://github.com/omnirom/android_...mmit/3ce32690475d0dca09ae459f1ea75534b599bab2)
​

Please hit the thanks button if this helped. :)