[RECOVERY][KERNELs] Recovery and Kernel for F2FS 31/03/14

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
Recovery and Kernels for F2FS

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.

Instructions:

I tested this procedure with SlimKat so my advice is to start with a working SlimKat rom or another rom that is reported to work good.
We have to Format our memory with F2FS. We need a "special" TWRP and a compatible kernel.

Compatible Kernel:

(All credits to authors. I have only made them compatible with F2FS)

  • Download compatible Kernel
  • Download "special" TWRP openrecovery-twrp-2.7.0.0-mako-F2FS.img
  • Copy Kernel on Phone
  • Flash Kernel with your current Recovery
  • Flash "special" TWRP with Fastboot
  • Reboot in Recovery
  • Go to Wipe Menu and press Format Data (The Big BUTTON!) (You will LOSE all your Data! Music, Movies etc!!)
  • Reboot

(Recovery has a RED back button to remember you that you are using the F2FS recovery!)

Enjoy :)

Phone is snappy and smooth with F2FS.




To go back:
- Flash a "normal" recovery
- Flash your previous kernel
- Format Data

(Required commit)
 
Last edited:

abir099

Senior Member
Feb 23, 2012
92
47
0
Chittagong
Recovery and Kernels for F2FS

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.

Instructions:

I tested this procedure with SlimKat so my advice is to start with a working SlimKat rom or another rom that is reported to work good.
We have to Format our memory with F2FS. We need a "special" TWRP and a compatible kernel.

Compatible Kernel:

(All credits to authors. I have only made them compatible with F2FS)

  • Download compatible Kernel
  • Download "special" TWRP openrecovery-twrp-2.7.0.0-mako-F2FS.img
  • Copy Kernel on Phone
  • Flash Kernel with your current Recovery
  • Flash "special" TWRP with Fastboot
  • Reboot in Recovery
  • Go to Wipe Menu and press Format Data (The Big BUTTON!) (You will LOSE all your Data! Music, Movies etc!!)
  • Reboot

(Recovery has a RED back button to remember you that you are using the F2FS recovery!)

Enjoy :)

Apart from Benchmarks phone is snappy and smooth.




To go back:
- Flash a "normal" recovery
- Flash your previous kernel
- Format Data

(Required commit)
whtz the benefit of this, plz
 

deltatux

Senior Member
Apr 17, 2011
893
253
0
Toronto
whtz the benefit of this, plz
It's built specifically for flash storage, including FS level TRIM which executes the command during every commit and doesn't need to rely on Android's native TRIM which only TRIMs during screen off. It's much faster based on current implementations and etc. The only downside is that F2FS isn't considered "stable" yet. This is why there's not a lot of devices on the market has F2FS out of the box. The only one I know is the Moto X and G.

deltatux
 

jmtjr278

Senior Member
Mar 8, 2012
1,005
549
143
Doesn't seem to have done anything. I followed the op. Running ak newest kernel. Got the right twrp with red back button. Went to wipe went to format typed yes. Operation completes very quickly. Reboot and everything seems to be the same ie all items are still on SD card.

How do I tell if this worked?

Sent from my Nexus 4 using Tapatalk 2
 

xtrymind

Senior Member
Sep 17, 2011
361
295
0
Bandung
xtrymind.github.io
Doesn't seem to have done anything. I followed the op. Running ak newest kernel. Got the right twrp with red back button. Went to wipe went to format typed yes. Operation completes very quickly. Reboot and everything seems to be the same ie all items are still on SD card.

How do I tell if this worked?

Sent from my Nexus 4 using Tapatalk 2
it worked when there's no data left on your internal, maybe try to wipe data again, and post recovery.log
 

Shooting Star Max

Senior Member
Feb 17, 2013
406
182
63
Santiago
Doesn't seem to have done anything. I followed the op. Running ak newest kernel. Got the right twrp with red back button. Went to wipe went to format typed yes. Operation completes very quickly. Reboot and everything seems to be the same ie all items are still on SD card.

How do I tell if this worked?

Sent from my Nexus 4 using Tapatalk 2
This happens to me too. Some installed apps FC after doing this, though.
It is like TWRP does nothing to the phone. Factory resets or classical wiping don't do anything, either.
 
Last edited:

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
@legolas93 are you going to release an ALL-F2FS version like you did for the nexus 7 2012?
I don't think that All-F2FS make us gain a big benefit and we will lose support of all ROMs...etc..
I think it's better to stay with only /data as F2FS in this case, so we can use all ROMs with a very small pain. :D


Doesn't seem to have done anything. I followed the op. Running ak newest kernel. Got the right twrp with red back button. Went to wipe went to format typed yes. Operation completes very quickly. Reboot and everything seems to be the same ie all items are still on SD card.

How do I tell if this worked?

Sent from my Nexus 4 using Tapatalk 2
Try to follow the procedure flashing one of the two kernel on first post. When you are ok try to flash ak over it! :)
Use DiskInfo to see if all went good!


@legolas93 Did you ported F2FS from which version of Linux?
It's mainly a dennes54 kernel-work. We are around Linux 3.10+ level..
 

3n3rg1c

Senior Member
Jun 28, 2012
437
375
0
Delhi
Awesome mate I liked f2fs; better storage performance and handling. But only thing holding me back is fewer kernels supporting this filesystem. Can you make matr1x kernel supporting this f2fs?
 
  • Like
Reactions: NABENDU1

Blackherted

Senior Member
Dec 6, 2012
512
96
0
Thanks. My device is not yet rooted, gonna root it soon. So my question is, after finishing rooting and flashing slimkat like I planned to, can I use the f2fs like instructed or do I need to do anything else?
 

halfbytecode

Senior Member
Apr 11, 2012
358
93
48
Don't work.... always on ext4 and data not formated... My kernel support f2fs.
Do you mean it does not work with HellsDoctor?

Sent from my AOSP on Mako using Tapatalk

---------- Post added at 06:26 PM ---------- Previous post was at 06:23 PM ----------

@legolas93 Is there a modified CWM recovery image with F2FS support added for this device?

Sent from my AOSP on Mako using Tapatalk
 
Last edited:

barome

Senior Member
Sep 5, 2010
1,414
3,126
153
Do you mean it does not work with HellsDoctor?

Sent from my AOSP on Mako using Tapatalk

---------- Post added at 06:26 PM ---------- Previous post was at 06:23 PM ----------

Is there a modified CWM recovery image with F2FS support added for this device?

Sent from my AOSP on Mako using Tapatalk
Hells Doctor is comptaible F2FS but this recovery doesn't format data at all... And always ext4 of course
 

PatrickMac

Senior Member
May 12, 2012
665
218
73
Don't work.... always on ext4 and data not formated... My kernel support f2fs.
It worked for me. My data was formated. I tried it with the kernels provided in the OP. Your kernel stuck at the bootanimation. So I guess your implementation is different from legolas kernel mods.
 

barome

Senior Member
Sep 5, 2010
1,414
3,126
153
It worked for me. My data was formated. I tried it with the kernels provided in the OP. Your kernel stuck at the bootanimation. So I guess your implementation is different from legolas kernel mods.
Hmmm... Maybe... I committed same change as @ak so xGenesis must not work too.