Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,915 Members 43,042 Now Online
XDA Developers Android and Mobile Development Forum

Nexus 5 F2FS Tools

Tip us?
 
dechronic
Old
(Last edited by dechronic; 22nd July 2014 at 11:30 PM.) Reason: Updated software
#1  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Default Nexus 5 F2FS Tools

EDIT 22 July 2014: Made changes to the Android Kitchen to retain the USB stick mount.
16 July 2014 If you have used any previous version of F2FS ROM CONVERTER prior to the date, please update to the latest version in the links below to correct major errors, to put more fault checks in place and provide better instructions for non Nexus 5 devices to use. Version number is in the Window Title from v0.3.


First off I have to say that I did not create any of these tools but rather I brought them together and I modified them to make it straight forward and easier to format the partitions as F2FS, make a ROM F2FS-ALL and modify a kernel for F2FS-ALL or just F2FS-DATA.

I would suggest you click on each link and click Thanks for each of them.
Thanks and links to the original authors and software.


Thanks: kdh2834
Tool: F2FS and F2FS-ALL kernels modified by kdh2834 with help on how to do it. (Actually it was because of him I can now get my N5 running with a full F2FS-ALL ROM and kernel)
Link: http://forum.xda-developers.com/show...95&postcount=1

Thanks: osm0sis
Tool: Android Image Kitchen (for unpacking and repacking a kernel)
Link: http://forum.xda-developers.com/show...74&postcount=1
Download my version: http://d-h.st/E74

Thanks: TeamWin
Tool: TWRP recovery for formatting the partitions as F2FS (use the latest version)
Note: It can also show the format of a partition in Wipe -> Advanced Wipe
Link: http://techerrata.com/browse/twrp2/hammerhead
Download follow above link

Thanks: Phil3759 and to rootSU for the Nexus builds
Tool: Philz touch recovery for formatting the partitions as F2FS (use the latest version)
Link: http://forum.xda-developers.com/show...48&postcount=1
Download: follow above link

Thanks: legolas93's FormatPartitions.zip
Note: These flashable zips need one of the above recoveries to work
Tool: Flashable zips to format the partitions automatically
Link: http://forum.xda-developers.com/show....php?t=2678140
Download my version to format all partitions to F2FS: http://d-h.st/RCz
Download my version to format the data partition to F2FS: http://d-h.st/2AI

Thanks: NABENDU1 for F2FS ROM CONVERTER
Note: Mine has been heavily modified for Nexus 5 phones but can be used by any device
Link: http://forum.xda-developers.com/show...72&postcount=1
Tool: F2FS ROM Converter v0.5 to make a flashable ROM with F2FS support.
Download my version: http://d-h.st/Uiq
EDIT: Latest version (v0.5) replaced the AOSP F2FS-ALL kernel (boot-f2fs-all.img) as it was not fully F2FS-ALL compatible. Previous version still had /cache partition as EXT4
EDIT: Latest version (v0.4) has support for Slimkat and similar ROMs that need to mount the /data partition.


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
The Following 15 Users Say Thank You to dechronic For This Useful Post: [ Click to Expand ]
 
dechronic
Old
(Last edited by dechronic; 6th July 2014 at 05:36 PM.)
#2  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Instructions

Note: The following steps can be done in any order EXCEPT that step 1. must be done before step 2.

1. Install one of the recoveries.
Note1: If you are on a stock recovery and your phone is locked you will need to backup everything first!
Note2: There is a flashable zip to lock and unlock the boot loader without formatting (only after initial unlock) and Philz Touch Recovery has a password lock as well if you are concerned about security.

WARNING: Before doing the below step, backup your ROM AND your DATA on your sdcard as it will be formatted!
Suggestion: Do an adb pull.
2. Format the partitions using the flashable zips.

3. Use the Android Image Kitchen I provided to modify a kernel with F2FS support. Drag and drop the boot.img on 1_mod_f2fs_kernel.bat file and just follow the instructions.
The kernel can then be installed by sideloading the zip file (see step 4.) or using fastboot from the bootloader (e.g. fastboot flash boot boot.img)

4. Use the F2FS Converter I provided to convert a ROM to mount the /system with a F2FS partition
The ROMs flashable zip will have to be sideloaded (In Philz Touch go to Install Zip -> Install zip from sideload, / In TWRP click Advanced -> ADB Sideload)
Note1: Only needs to be used with a F2FS-ALL kernel.
Note2: There is an option to use your preferred F2FS-ALL kernel as opposed to the default ones.


EDIT: Added which batch script to drop the image file onto in step 3.


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
The Following 9 Users Say Thank You to dechronic For This Useful Post: [ Click to Expand ]
 
Волк
Old
#3  
Волк's Avatar
Senior Member
Thanks Meter 535
Posts: 1,067
Join Date: Jan 2012
Location: San Francisco

 
DONATE TO ME
Thanks, makes it easy for lazy people like me. Will use it later and let you know how it went.

Sent from my Nexus 5 using XDA Premium 4 mobile app
Remember guys: Волк = Volk (Google it for a translation)

Devices: G2x (sold), Nexus 7 32GB Wifi (bricked), Nexus 5


G2x AIO wipe tool 20 November, made with AROMA and includes AROMA File manager!

G2x AIO

New 29 Sept
AIO wipe tool O2x version

6 October
AIO wipe tool G2/DZ version

[Nexus 5 version available via pm, though haven't seen a need for it with this phone]
 
dechronic
Old
#4  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Quote:
Originally Posted by Волк View Post
Thanks, makes it easy for lazy people like me. Will use it later and let you know how it went.

Sent from my Nexus 5 using XDA Premium 4 mobile app
If I missed anything let me know although I tested it to make sure it worked for myself.

Please remember to do a sdcard backup on to your computer. The backups from the the custom recoveries does not back up the sdcard.


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
 
aircooledbusses
Old
#5  
aircooledbusses's Avatar
Senior Member
Thanks Meter 121
Posts: 388
Join Date: Aug 2012
Any devs working on a similar method for sgh-I747?

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
sgh i747 Pwn's latest kernel
GT-I9070 Vanir
Nexus 7 Carbon ROM Glitched
ADR6300 Touch of Blue
Nexus S handed down to my son
sgh i500 Parandroid -handed down

us my referral code for COPY please 5gig bonus for you and me!
https://copy.com?r=iBySZk
 
dechronic
Old
(Last edited by dechronic; 6th July 2014 at 06:17 PM.)
#6  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Quote:
Originally Posted by aircooledbusses View Post
Any devs working on a similar method for sgh-I747?

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
I found a TWRP recovery that should support f2fs for your i747 here:
http://techerrata.com/browse/twrp2/d2att

Download the latest version.
Or you can use Philz Touch Recovery but it seems like you will need to build it yourself (if you know how)

Backup everything and move the backups to a computer.

And run one of the format tools according to which partitions will have F2FS (only /data f2fs-data OR /system /data & /cache f2fs-all)

I found one kernel that supports F2FS, there are probably others.
http://forum.xda-developers.com/show....php?t=2390147

To answer your question: I am not sure. I am just sharing what I did to make my life easier with others.

These tools will not work for your i747 as they are but I will look into what I can modify to make it work for yours and you can tell me if it works.

If you are getting problems I will see what I can do to help if I have the time.

I will post something when I can.


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
The Following 2 Users Say Thank You to dechronic For This Useful Post: [ Click to Expand ]
 
dechronic
Old
(Last edited by dechronic; 9th July 2014 at 07:34 AM.)
#7  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Default F2FS-ALL Kernels

You can check http://forum.xda-developers.com/goog...rnels-t2746951 for some kernels.

The CM kernel was modified by me for F2FS-ALL
You can get it here:
http://d-h.st/1rS

I have modified the ElementalX kernel (ElementalX-N5-1.02-cm.zip) to F2FS-ALL.
Original kernel is here:
http://forum.xda-developers.com/show...18&postcount=1

Note1: You need to install the CM kernel above first as the Elemental X uses the ramdisk of the current working kernel, which in this case has the fstab.hammerhead with the f2fs information.

Note2: I had to modify the mount command as well in the updater-script from this:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

to this:
run_program("/sbin/busybox", "mount", "/system");

You can get the working ElementalX 1.02cm F2FS-ALL version here:
http://d-h.st/oEt

Chaos Kernel v13.0 July 08 (nightly) F2FS-ALL - http://d-h.st/h3H


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
The Following 4 Users Say Thank You to dechronic For This Useful Post: [ Click to Expand ]
 
GizmoTheGreen
Old
#8  
Senior Member
Thanks Meter 25
Posts: 179
Join Date: Jun 2010
nice! this collection of tools might have me finally trying f2fs on my Nexus5...

however, I've set my sights on this kernel http://forum.xda-developers.com/goog...ernel-t2697951
there seems to be no interest to include f2fs support by default, could I perhaps ask for you to add it and compile?

I'm currently on stock 4.4.4 and faux kernel. but from what I read faux causes issues on f2fs-all, right? and other kernels I've looked at don't seem attractive enough to me... is there pure 4.4.4 stock with f2fs-all added? ^^ I found only 4.4.2 stock kernel.

Also... if I backup my /data can I restore it later onto f2fs partition? so I don't have to start from scratch and install/update apps?
no biggie, just wondering on this one.

thanks alot!
 
dechronic
Old
#9  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Quote:
Originally Posted by GizmoTheGreen View Post
nice! this collection of tools might have me finally trying f2fs on my Nexus5...

however, I've set my sights on this kernel http://forum.xda-developers.com/goog...ernel-t2697951
there seems to be no interest to include f2fs support by default, could I perhaps ask for you to add it and compile?

I'm currently on stock 4.4.4 and faux kernel. but from what I read faux causes issues on f2fs-all, right? and other kernels I've looked at don't seem attractive enough to me... is there pure 4.4.4 stock with f2fs-all added? ^^ I found only 4.4.2 stock kernel.

Also... if I backup my /data can I restore it later onto f2fs partition? so I don't have to start from scratch and install/update apps?
no biggie, just wondering on this one.

thanks alot!
I will look at that kernel later.
If you backup it up using an adb pull, that's what I did not sure about the custom recovery backups as they usually name the backups according to the format, at least for Philz Touch Recovery.

In regards to the stock 4.4.4 with f2fs-all, I just had up a post about that.

Here it is: http://forum.xda-developers.com/show....php?t=2791580


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2
 
dechronic
Old
#10  
dechronic's Avatar
Senior Member - OP
Thanks Meter 141
Posts: 128
Join Date: Dec 2013
Quote:
Originally Posted by GizmoTheGreen View Post
nice! this collection of tools might have me finally trying f2fs on my Nexus5...

however, I've set my sights on this kernel http://forum.xda-developers.com/goog...ernel-t2697951
there seems to be no interest to include f2fs support by default, could I perhaps ask for you to add it and compile?

I'm currently on stock 4.4.4 and faux kernel. but from what I read faux causes issues on f2fs-all, right? and other kernels I've looked at don't seem attractive enough to me... is there pure 4.4.4 stock with f2fs-all added? ^^ I found only 4.4.2 stock kernel.

Also... if I backup my /data can I restore it later onto f2fs partition? so I don't have to start from scratch and install/update apps?
no biggie, just wondering on this one.

thanks alot!
Sorry about the kernel but I only change the ramdisk to set which partitions are to boot with F2FS. So if it doesn't already support F2FS I don't know how to add it. I am relatively new to linux and android. I will like to setup a build environment and learn how to build the kernels and ROMs myself but I have been procrastinating as I need to free up some space on a drive.

Some kernels have the support but are not set up to boot the partitions. I am skimming the forums looking for different kernels to try.

At the moment I am using a CM (CAF based) kernel although there are a lot more ASOP kernels. I will try going to stock to try out some of them.


Beanstalk 4.4.4010 F2FS-ALL
+
Philz Touch Recovery 6.50.2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes