Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Script][Tool][Windows][4.4]Convert Any Rom to Full F2FS

OP NABENDU1

26th April 2014, 07:17 AM   |  #1  
OP Senior Member
Flag MUMBAI
Thanks Meter: 635
 
251 posts
Join Date:Joined: May 2012
More
This is a Windows Batch Script/Tool to make any 4.4 based ROM to full F2FS compatibility !! This tool can convert any existing ROM from ext4 to Full F2FS Compatibility in a few clicks !! All tools necessary for conversion included in the batch file itself !!

Basic Info

What is F2FS?

F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk at Samsung for the Linux operating system kernel. 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.

What is All-F2FS?

We used F2FS only for /data. It was simply because we have only to flash a compatible Kernel and Format /data partition. With All-F2FS we use F2FS for all partitions and we need a compatible ROM



DISCLAIMER

Code:
*I am Not responsible for any bricked devices,SD cards or thermonuclear attacks.
*Please do some research about what you are doing before you use the tool.
*YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
Current Device Compatibility

Code:
1. Nexus 4 ( Mako )
2. Nexus 7 2012 Edition ( Grouper)
Prerequisites

Code:
1. A Mako/Grouper
2. Any 4.4 based ROM with busybox installed
3. Proper F2FS Compatible Recovery and Partition Zip from
http://forum.xda-developers.com/show....php?t=2678140
4. Any Windows version and my batch script
Features
Code:
1. One Click F2FS Conversion Process 
2. All tools included in the Zip file itself
3. Changes only the relevant parts of your updater-script keeping the rest unmodified
4. Compatible boot.img included in the ROM itself 
5. Single script for both Nexus 4/ Nexus 7 ( 2012)
6. Error conditions at many places so a noob cant go wrong

***Special note for Stock ROM users***

Code:
The script requires busybox and since stock roms dont have busybox the repacked ROM wont boot up.
In such a case the best option is try out any other AOSP based ROM
Instructions
Code:
1. Unpack the Zip file you downloaded from Link Below
2. Run F2FS Convertor.bat
3. Select your device
4.Place the Zip in the Extract /Input directory when prompted
5. The script will Unpack your ROM
6. Select option 11 for boot.img supplied with the script or option 12 for cm boot.img and 13 for any other F2FS compatible boot.img
7. Repack your ROM 
8. Check NEW F2FS ROM directory for the Repacked ROM
9. Flash and Enjoy
10.Cleanup the working directory cleanup.bat
Download Links

1) English
2) German (Thanks to @mikaole)

Changelog
Code:
 V1 : Initial Release
Credits

Code:
@legolas93   For bringing F2FS to Nexus and also for providing the boot.img for the script
 @mikaole     For the German Translations and extensive testing
 @jolinnard    For the amazing F2FS kernels he is providing
 @osm0sis    For his amazing Android Image Kitchen.The cleanup.bat script is taken from his tool.
 @fishears     For helping out on the kernel side.
 @USBhost   For being the lone tester for the N7 ( 2012 )
 @CallMeAldy For the CM trick and his compilation thread 
And all other beta testers !! Sorry if I forgot anyone from the list !!
Screenshots in the Next Post

Hit the Thanks button if you Like My Work
Last edited by Mikey; 26th April 2014 at 02:49 PM.
The Following 48 Users Say Thank You to NABENDU1 For This Useful Post: [ View ]
26th April 2014, 07:19 AM   |  #2  
OP Senior Member
Flag MUMBAI
Thanks Meter: 635
 
251 posts
Join Date:Joined: May 2012
More
Reserved
The Following 6 Users Say Thank You to NABENDU1 For This Useful Post: [ View ]
26th April 2014, 09:35 AM   |  #3  
SkOrPn's Avatar
Senior Member
Flag Albuquerque, NM
Thanks Meter: 614
 
2,080 posts
Join Date:Joined: Jun 2007
Donate to Me
More
Lol where were you weeks ago when we needed you most? Thanks for this work, but I wish I had something to flash just to try it. Right now SlimKat is working wonderfully as is.

Thanks for doing this for the community. [emoji106]

Sent from my Nexus 7 using Tapatalk
26th April 2014, 09:36 AM   |  #4  
USBhost's Avatar
Recognized Contributor
Flag u:r:usbhost:s0
Thanks Meter: 1,452
 
2,918 posts
Join Date:Joined: Oct 2013
More
Quote:
Originally Posted by SkOrPn

Lol where were you weeks ago when we needed you most? Thanks for this work, but I wish I had something to flash just to try it. Right now SlimKat is working wonderfully as is.

Thanks for doing this for the community. [emoji106]

Sent from my Nexus 7 using Tapatalk

All the best things, take time to come
Last edited by USBhost; 26th April 2014 at 10:01 AM.
The Following User Says Thank You to USBhost For This Useful Post: [ View ]
26th April 2014, 11:08 AM   |  #5  
OP Senior Member
Flag MUMBAI
Thanks Meter: 635
 
251 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by SkOrPn

Lol where were you weeks ago when we needed you most? Thanks for this work, but I wish I had something to flash just to try it. Right now SlimKat is working wonderfully as is.

Thanks for doing this for the community. [emoji106]

Sent from my Nexus 7 using Tapatalk

Its just 3 weeks ago things started to build up for f2fs for mako !! I created this script primararily for my Mako dont own a grouper !! Took me two weeks to polish the script !! Basically wanted to make kernels compatible too but after trying hard had to give it up !!
Last edited by NABENDU1; 26th April 2014 at 11:19 AM.
The Following 2 Users Say Thank You to NABENDU1 For This Useful Post: [ View ]
26th April 2014, 12:29 PM   |  #6  
edisso10018's Avatar
Senior Member
Flag Bonn
Thanks Meter: 167
 
612 posts
Join Date:Joined: Sep 2010
Do I get this right: I can use this script to convert the latest CM 11 nightly to F2FS compatibility? And what if the kernel changes in the nightly? Has the included kernel the fixes for the recently changed ram disk?
Last edited by edisso10018; 26th April 2014 at 12:40 PM.
26th April 2014, 05:12 PM   |  #7  
SkOrPn's Avatar
Senior Member
Flag Albuquerque, NM
Thanks Meter: 614
 
2,080 posts
Join Date:Joined: Jun 2007
Donate to Me
More
Quote:
Originally Posted by NABENDU1

Its just 3 weeks ago things started to build up for f2fs for mako !! I created this script primararily for my Mako dont own a grouper !! Took me two weeks to polish the script !! Basically wanted to make kernels compatible too but after trying hard had to give it up !!

I was just poking fun at ya, nothing rude was intended. I am very happy to see something like this take place. Now we have something to do the next time our favorite ROM gets released.

We just need about 100 more devices to get supported and this may take off with the manufacturers themselves. Then I will consider all smart devices up to that point one large 10 year long beta test. Lmao

Sent from my Nexus 7 using Tapatalk
26th April 2014, 05:26 PM   |  #8  
master.peterm's Avatar
Senior Member
Thanks Meter: 74
 
407 posts
Join Date:Joined: May 2009
So this won't work on the Galaxy Note II ...... wish it would lol
26th April 2014, 06:25 PM   |  #9  
OP Senior Member
Flag MUMBAI
Thanks Meter: 635
 
251 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by master.peterm

So this won't work on the Galaxy Note II ...... wish it would lol

If you can link me to its thread which can make it fully f2fs compatible I'll be more than glad to help !!
Quote:
Originally Posted by SkOrPn

I was just poking fun at ya, nothing rude was intended. I am very happy to see something like this take place. Now we have something to do the next time our favorite ROM gets released.

We just need about 100 more devices to get supported and this may take off with the manufacturers themselves. Then I will consider all smart devices up to that point one large 10 year long beta test. Lmao

Sent from my Nexus 7 using Tapatalk

I had no hard feelings or stuff on you or anybody !! Just that wanted to inform you about why my script was released so late !! And ya that's exactly my intention to make flashing Roms easy !! I mean changing manually isnt always gr8 especially when you flash on a daily basis like I do
Quote:
Originally Posted by edisso10018

Do I get this right: I can use this script to convert the latest CM 11 nightly to F2FS compatibility? And what if the kernel changes in the nightly? Has the included kernel the fixes for the recently changed ram disk?

No idea I don't own a grouper so I don't test it at all !! @USBhost gave this boot.img to me and I included it in my script !! I think he could explain this better
Last edited by NABENDU1; 26th April 2014 at 06:30 PM.
26th April 2014, 07:00 PM   |  #10  
icarianecho's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 39
 
183 posts
Join Date:Joined: Dec 2010
More
Hey, I've been trying to troubleshoot for about 30 minutes but I simply cannot get the script to repack the ROM.

Here are the issues I'm running into:

1) When I am instructed to place the original ROM zip in EXTRACT/INPUT there is no INPUT subfolder.

That was easy enough though. I simply made one, placed the zip in, and everything seemed to move forward fine.

However:

2) During repacking, the script runs into a few errors. Rather than describing them here, I will post pictures of them below.





The end result:

I can't find a repacked ROM in any of the folders or subfolders.

Any ideas about where I went wrong?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes