[Nexus 5 Android Development] DragonHunt3r:
Hey guys what's up :D

I just wanted to post this to make it easier for people moving to the F2FS scene.

The rom is officially from this thread http://xdaforums.com/google-nexus-5/development/rom-resurrection-remix-4-4-2-kitkat-v5-t2706610

But then with the All-F2FS included with a custom kernel.

First of all this will wipe your Cache, System and Data partition.

If you're feeling not really safe formatting all these partitions to a different format because it might bricks orsomething just get a USB stick and your good to go

The thing with F2FS is that it requires the ROM to be compatible but also the Kernel.

If the kernel is not supporting it but the ROM is then Cache will not be mounted! or your kitten will be eaten :rolleyes:

First download all the requires files from here: https://mega.co.nz/#!JJZgAJpa!cWSnKkKJtldaIianGisyuV7OQ9vp4Lpje4PFQUTvX8Y

The .rar contains the following:

boot.img <- custom boot.img if not flashed it will not boot!

FormatPartitions-mako <- thanks to http://xdaforums.com/google-nexus-5/orig-development/recovery-twrp-2-7-0-0-f2fs-support-t2746030

linaro.Kernel-nightly-r51-linaro <- custom kernel provided by http://xdaforums.com/google-nexus-5/development/kernel-linaro-kernel-r32-3-4-76-4-4-2-t2527130

openrecovery-twrp-2.7.0.0-hammerhead-All-F2FS-2.img <- TWRP with F2FS support

pa_gapps <- just the google apps, made no modifications to it

Resurrection_Remix_KK_v5.1.3-20140526-hammerhead <- the ROM, repacked with F2FS

fastboot-windows <- Provided by ChainFire

Ok so when you have that downloaded let's begin shall we :victory:

1. Backup your SD Card data to your pc as this will get wiped!

2. Copy all the files you downloaded to your internal sd card.

3. Go into the bootloader (hold volume lower + power)

4. On your pc Open CMD and go to the Fastboot directory

5. Now type "fastboot-windows flash recovery openrecovery-twrp-2.7.0.0-hammerhead-All-F2FS-2.img", file not found ? drag/drop the TWRP recovery

6. Wait for it to show DONE, now reboot into recovery

7. Flash the FormatPartitions.zip, from this point it will format your Cache and System to F2FS

8. Reboot again but in recovery, do NOT do a simple reboot/shutdown or reboot into system as this will keep bootlooping untill you've reformated or flashed stock rom

Flashing part, do NOT wipe cache/dalvik etc!

9. Flash Resurrection_Remix_KK_v5.1.3-20140526-hammerhead.zip

10. Flash pa_gapps-stock-4.4.2-20140517-signed.zip

11. FLash linaro.Kernel-nightly-r51-linaro.zip

12. Go back to the main menu and hit the wipe button, now do a Data Partition Wipe (button at the right) and type in "yes" and hit enter, it will now Format your Data partition to F2FS

13. Now reboot into Bootloader, hitting excidently reboot to system ? turn the phone off and reboot into bootloader

14. Now let's flash the boot.img to fix the bootloops, or you must be a lover of the startup animation :victory:

15. Go back to your CMD and type in "fastboot-windows flash boot boot.img", file not found ? drag/drop the boot.img

16. Well at this point you're able to reboot and say hello to F2FS with linaro :victory:

17. When booted simply follow the installs steps or just keep pressing continue...

18. Go into settings -> developer options, scrolldown and switch from DALVIK to ART, will even speed it up more :victory:

If you're afraid you can't go back to EXT4 (official), no worries you can go back to EXT4 by flashing the stock rom/firmware

http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701?

The boot.img provided above is only for CM/CAF roms and shall not be used on different rom's like AOSP !

I hope you liked this tutorial, have fun :good: