yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] SkOrPn:
Going to try again this weekend to get AOSPAL SaberDroid working with M-kernel and hopefully all-f2fs. That is if they don't figure it out themselves by then. I think Sgt. meow will have it solved by then though.
[Nexus 7 General] ronedogg:
Mind if I add this to op?
[Nexus 7 General] ryanrudolf:
sure np. will try other roms on weekend.
[Nexus 7 General] ryanrudolf:
CM Nightly with All-F2FS (Unofficial Method)

1. here is link for CM Nightly already modified for ALL-F2FS http://d-h.st/9By

2. boot to the modified twrp, flash the formatpartitions.zip. reboot back to recovery http://xdaforums.com/show....php?t=2678140

3. flash the modified CM nightly zipfile

4. flash gapps.zip (i use slimroms minimal gapps)

5. Wipe > Format Data > yes

6. reboot

7. enjoy!

Credits -

Legolas for the modified TWRP with F2FS

Faux for faux025 kernel with F2FS support

CM for the CM Nightlies

SlimRoms for the minimal gapps

im now running this for 2 days and havent encountered any issue so far. frontline commando2 rocks!
[Nexus 7 General] testproggie:
It Worked!

SUCCESS! :good: Now, is there any easy way to modify CM Nightlies on my own through Windows? I don't want to obligate you to do these for anybody, especially me. Oddly enough I have access to a virtual machine with Ubuntu installed, but I barely know how to use it. If another Linux distro would be easier I could create another machine.

Anyway, thanks. The nexus is still loading all my apps so I don't have a feel for it yet, but I think things will be fine.

Robert
[Nexus 7 General] ryanrudolf:
the easiest i can think of -

download new nightly from cm. copy the entire system folder and place it on the modified cm zip

or

use Android kitchen to unpack repack bootimg and follow the steps i have provided.

nice to hear it is working for you too!
[Nexus 7 General] TarteMan:
i tried the first method and i got a bootlop

EDIT : i got bootlop because i just formated data in F2FS, when i flashed formatPartitions.zip, it worked.
[Nexus 7 General] ronedogg:
First method in op? Or first in that post by Ryan?

First in op is only confirmed working for updating slimkat and a few others.

If cm you are having the problem with. Check the md5 on your downloads.... Been happening a lot to me lately out of the blue.
[Nexus 7 General] TarteMan:
i edited my post, it work fine now :)
[Nexus 7 General] ryanrudolf:
first method only applicable if you already have modded twrp and have performed the formatpartitions.zip

---------- Post added at 08:18 PM ---------- Previous post was at 08:15 PM ----------

nice to know its working!
[Nexus 7 General] TarteMan:
Now the speed of my tablet is just awesome, thanks for your work :cowboy:
[Nexus 7 General] ryanrudolf:
nah i just put the pieces together to solve a puzzle. :)
[Nexus 7 General] bhu1:
Did anyone tried latest omniROM, 29/03 nightly? Replacing the /system folder in the all f2fs omniROM by legolas with the new nightly's /system, zipping and flashing that. Theoretically this should work if there aren't any new changes in the /system folder that mess things up.

Edit : Tried this method and it worked like a charm, easy-peezy lemon squeezy.
[Nexus 7 General] testproggie:
Worked Again!

Using winrar, I removed the "system" folder from your modified cm zip, added the system folder from the latest nightly 3-29, zipped it back up, put it on a flash drive, booted to recovery, installed the zip - and it worked great. It is faster, even the optimizing apps when it first boots up really flies.

Thanks for your help and work put into this.

Robert
[Nexus 7 General] TarteMan:
Here is a quadrant score with CM11 2014/03/29's nightly for those who want see :
[Nexus 7 General] 57op:
Hi there,

if you use linux, i can post a script which converts your normal cyanogenmod nightly to a f2fs one.

It just do the same things you would do: unpack boot.img, patch the ramdisk (fstab.grouper), patch updater-script, repack everything and gives you the flashable zip file. The zImage is cyanogenmod kernel with f2fs support and hardboot patch (i was doing some test with multirom).

It could be safe for any zip i would say, because it just replace the fstab.grouper in the ramdisk and patch updater-script (it doesn't replace it entirely, but it replaces the needed string with sed command).

This is true if the zip comes along with boot.img file.
[Nexus 7 General] ryanrudolf:
i have cygwin build, kindly post script i'll try with cygwin. if not work, off to a linux vm.

---------- Post added at 07:32 PM ---------- Previous post was at 07:31 PM ----------

try to fill up the device, on the original rom the nexus7 2012 lags when storage is almost full.
[Nexus 7 General] 57op:
Here you are, i've attached it download url: http://goo.gl/3FLl1p

How to use: ./f2fs-patch.sh path/to/zip_file.zip

Make sure that you can execute it ( chmod +x f2fs-patch.sh ).

The bin directory contains the zImage ( build with this source ), mkbootimg, unpackbootimg, mkbootfs and the proper fstab.grouper.

In the out directory you will find the patched zip file (with a f2fs suffix).

However, in order to make this work, you need the following programs: gzip, zip, unzip, cpio, sed, basename; so make sure you have these before executing the script.
[Nexus 7 General] ronedogg:
Wanna do a quick rundown and I'll add this to op? If u don't mind, Giving you credit of course.
[Nexus 7 General] 57op:
You can add it to op, of course.

Perhaps, it's better to change the url with this one: http://goo.gl/3FLl1p so that i can change the destination in case of updates.

By the way, most of the commands i listed as requirement should be available on every distro as core/base commands.

cpio, zip and unzip can be easily installed with your package manager (pacman -S cpio zip unzip | apt-get install cpio zip unzip and so on).

I can build them from source and include them along with the patcher, i'll do it later.

p.s. it is possible also make this work on windows
[Nexus 7 General] SkOrPn:
[MENTION=2711858]gorneman[/MENTION] posted a m-kernel all-f2fs build and tested it on slim and reported that it's working for him. He posted it in the m-kernel thread. If anyone is interested
[Nexus 7 General] TarteMan:
If i put the system file of another rom in the cm 24's nigtlhy, does it work?

The ROM is miui v6 for grouper.
[Nexus 7 General] ronedogg:
Is miui v6 out for nexus 7 2012? I don't think it is...

Edit: looks like someone ported it yesterday. I don't think it will work, its using the cm ramdisk still.

You can try it, and also try just editing the script. Might work as its same base as paranoid android. I'm still learning myself so forgive me if I'm wrong lol
[Nexus 7 General] ronedogg:
After reading the miui thread its full of issues anyways. I'd stay away from it anyways for now lol
[Nexus 7 General] SkOrPn:
Ok quick question. I am currently on SaberDroid with only data formated to f2fs using m-kernel. It's been running great. But I would like to try the new m-kernel with all-f2fs support using the same ROM. Can I just flash formatpartitions.zip and then dirty flash the ROM and kernel? Would that work?
[Nexus 7 General] 57op:
1) Does SaberDroid provide boot.img in the zip installer?

2) Does m-kernel provide boot.img in the zip installer?

If answer for question #2 is `yes` then you need to patch the ramdisk inside the boot.img (fstab.grouper); after that, flash formatpartitions.zip, flash saberdroid, then the m-kernel with the proper patch.

If #2 is `no` and #1 is `yes`, you need again to patch the ramdisk (and if you want change the zImage with the m-kernel one inside boot.img); after that, flash formatpartitions.zip, flash saberdroid (with patched boot.img) and then m-kernel.

( If both are `yes`, just consider that #2 is `yes`; i.e. ignore #1)

There are many other way to get the same result, for example flash everything and than install via fastboot a boot.img with proper ramdisk and zImage of m-kernel.

So, briefly, all you need is a proper fstab.grouper (it's in the ramdisk) which mounts the partition in the correct filesystem (and, of course a f2fs capable kernel, which you have).
[Nexus 7 General] SkOrPn:
I'm not sure, but the m-kernel I have was already built for all-f2fs by another user who had no problems using it on all-f2fs SlimKat. What I would like to do is just replace the kernel in SaberDroid with the m-kernel I have and then modify the updater script, or use one that is floating around.
[Nexus 7 General] 57op:
AllF2FS Slimkat already has the right fstab.grouper (it mounts everything possible to f2fs).

If you're using saberdroid with only f2fs data, probably the other partitions are mounted as ext4.

If you don't want system and cache in f2fs, but only data with m-kernel, i guess that it'll probably work fine.

Anyway you can always go back to the previous kernel ( do a backup ), just in case of any failure.
[Nexus 7 General] SkOrPn:
Yes, they both are ext4, that is the only way I could do it until now.

Yes, I have been running SaberDroid with /data as f2fs for a month now, or when ever legokernel first came out with f2fs. Then when Metallice introduced f2fs I switched over to my favorite kernel and stayed there. But now I want all-f2fs...

So, can I use my Android kitchen to do this? I thought the fstab.grouper was in the boot.img? and if so, then the one I need is already in my new all-f2fs kernel, right? Otherwise it wouldn't be working for others, right? Or, do I need to make sure before I start copy/pasting files?
[Nexus 7 General] 57op:
Yes, the fstab.grouper is in the boot.img (precisely in the ramdisk).

Basically, zImage + ramdisk + some other stuff = boot.img.

I didn't fully get the last two questions, anyway i downloaded m-kernel with f2fs support.

It does not contain the boot.img, just the zImage, so the ramdisk (the place where fstab.grouper is `stored`) won't change if you install the zip file.
[Nexus 7 General] SkOrPn:
Ok cool, good to know. Which one did you download? the user supplied all-f2fs m-kernel here http://xdaforums.com/showpost.php?p=51502386&postcount=3751

Or the one Metallice supplied as a68 f2fs Test1? this one is only /data f2fs
[Nexus 7 General] 57op:
The first one

Inviato dal mio Nexus 7 utilizzando Tapatalk
[Nexus 7 General] TarteMan:
WTF why sometime CPU go to 1,6gHz ?!

In performance menu, limit is 1300.
[Nexus 7 General] SkOrPn:
Did you set to "Set on Boot"? I use Trickster to set on boot, and CPU-Z to monitor speeds.
[Nexus 7 General] TarteMan:
Yes and result is same :mad:
[Nexus 7 General] SkOrPn:
What ROM and what kernel?
[Nexus 7 General] TarteMan:
CM11 latest nighly with the kernel that ryanrudolph include in his CM11 24's nightly zip.
[Nexus 7 General] TarteMan:
And here a screenshot with cpu-z
[Nexus 7 General] SkOrPn:
I wonder if Ryan is using Faux kernel in his CM11?

[MENTION=4949320]ryanrudolf[/MENTION] are you using faux kernel? If so, maybe he should try using FauxClock to set his cpu to what ever clock he wants? Just guessing here
[Nexus 7 General] TarteMan:
i set limit with trickstermod and it work now.

I think you should inform people for this, because the CM method is OP :thumbup:

EDIT : but im forced to block cpu freq witj trickstermod
[Nexus 7 General] SkOrPn:
What limit did you set? 1300? Try setting 1600 and take a screenshot if it holds it in cpu-z. Also try rebooting and seeing if it holds it at 1600. If it does, than ryan is using an overclocking kernel set at 1600 by default. I do not think the default CM kernel can overclock to 1600, but I may be wrong. FYI, default Tegra3 is 1500. Google is the one that uses 1300 by default on this device, not NVIDIA.
[Nexus 7 General] TarteMan:
Yes, i think Ryan use a overclockable kernel because it hold with 1600
[Nexus 7 General] SkOrPn:
Ok problem solved, just use trickster to keep your 1300. You can delete performance control if you want, its just an app like any other. I used Titanium to remove performance control from my device.
[Nexus 7 General] TarteMan:
Thanks man:)

Now it would be great if Ryan can upload a cm11 all f2fs with es version of faux kernel and not mainline/ultimate :)
[Nexus 7 General] SkOrPn:
Hmm, can't you download and install that yourself? Faux025 is already all-f2fs, so just install what ever one you want. I would think it would work for you now that CM11 is modified to use it.
[Nexus 7 General] TarteMan:
CM is not modded, just the CM kernel is modded, and i think i need linux for that :(

EDIT : and after set limit to 1300, 1600 is used too, even after rebooting and waiting 25 min.
[Nexus 7 General] ryanrudolf:
... its because it is using Faux, by default it is OC to 1.6GHz.... planning to change it to Mkernel due to lack of dithering.

haven't tried compiling android kernel, only have success compiling linux kernel but thats way way back hardy heron days.... future project compile own kernel...
[Nexus 7 General] CptKlink:
You need Android Image Kitchen not the normal Android Kitchen which you can find here http://xdaforums.com/showthread.php?t=2073775
[Nexus 7 General] SkOrPn:
Dithering is the only reason I do not stick to faux. I can't stand how it messes up my full page weather widgets... I'm using SaberDroid (a PA based ROM) plus m-kernel at 1.5ghz (default clock) and its running great. I am of course only data f2fs and not using CM11.

---------- Post added at 07:07 PM ---------- Previous post was at 07:05 PM ----------

Yeah, I have Android Image Kitchen v1.8 installed on my old 32bit laptop. That's what I meant, sorry... For what ever reason my old laptop seems to always have much less problems working with my Nexus 7, as compared to my much newer more modern desktop machine. So, now my Thinkpad is dedicated to my Nexus 7 lol
[Nexus 7 General] ryanrudolf:
i didnt realize there's android image kitchen.... im using the regular android kitchen for unpack repack etc etc

---------- Post added at 09:16 AM ---------- Previous post was at 09:12 AM ----------

hmmm mkernel has its own ramdisk, i want to use stock cm ramdisk, so will just use the zImage in mkernel..... will test later and give feedback
[Nexus 7 General] SkOrPn:
http://xdaforums.com/showthread.php?t=2073775

Not sure what the differences are, if only the Android Kitchen may have many more features. I have not used a android kitchen since my early Nexus S days.
[Nexus 7 General] ryanrudolf:
yahoo ive successfully modified cm nightly, removed CM apps and added very minimal google, just playstore and it works! heck even my keyboard is not google, its SwiftKey.... one zip to rule them all!
[Nexus 7 General] ryanrudolf:
looks like CM nightly 3/31 is buggy compared to the 3/24. xplore, docs to go they dont work...
[Nexus 7 General] Ex-Hunter:
Help!

I love Carbon ROM and I've been wondering how to use f2fs with it. I've tried the procedure mentioned in the OP, but I'm getting process.android.phone stopped message. I'm kinda new at this. Can anyone please tell me how to use f2fs with Carbon? Thanks.
[Nexus 7 General] ryanrudolf:
try CM method, also in OP
[Nexus 7 General] Ex-Hunter:
Thanks. Following your advice I've modified boot.img and updater-script but unfortunately I couldn't check if it works as my Tablet is with a friend now. I will verify if it works and report.

I've uploaded them for anyone who is interested.

EDIT: It doesn't work. Doesn't even load bootanimation. Being a noob I'm not sure if I've modified the boot.img properly. I've used Dee-tools to unpack.

I've attached the original carbon rom boot.img for anyone willing to help.
[Nexus 7 General] ryanrudolf:
have you used modified twrp the one with red back button?
[Nexus 7 General] Ex-Hunter:
Yes.
[Nexus 7 General] ryanrudolf:
yeah could be on the unpack repack, ive used cygwin and the android kitchen.
[Nexus 7 General] CptKlink:
Theres your problem right there. Dee-tools dosen't work properly with the Nexus 7. From my experience dosen't work at all when it comes to repacking the boot.img. Your need to use Android Image Kitchen Which you can find here

http://xdaforums.com/showthread.php?t=2073775

I find Android Image Kitchen easiest to use even over Dee-Tools and normal Android Kitchen.

EDIT: I can't even open the fstab file from your modified boot.img. So something has corrupt your boot.img guessing dee tools
[Nexus 7 General] Ex-Hunter:
I'll try using Android Kitchen. Thanks for the info.
[Nexus 7 General] yeoldeusrename:
FYI, MIUI v6 works with the slim ALL-F2FS boot.IMG and tweaked updater-script. Only been running it a day, but no problems so far.

Well, maps FCs, but I don't imagine that's due to ALL-F2FS.
[Nexus 7 General] ryanrudolf:
using ALL-F2FS CM M5 and MKernel, much better compared to faux in my opinion. no more freeze in asphalt
[Nexus 7 General] Monfro:
OMNI ROM allF2FS build 15/04/2014, with the new feature of Downloads control from status bar.

DOWNLOAD
[Nexus 7 General] USBhost:
Carbon ROM 4/17/2014 allF2FS

ART is working.

here
[Nexus 7 General] JTzR:
Firstly, I'd like to apologize for anything stupid I may say in advance.

I'm new to all of this, I've flashed custom roms and kernels in the past and all has gone perfectly smooth, but when it comes to this I'm absolutely useless...

I been looking at a few threads for a week now involving f2fs, I've tried doing everything I've seen, but no matter what, the out come is always the same.

I'm trying to convert Paranoid SaberDroid to all-f2fs with M-kernel fsf2 test 4, but everytime I've tried to flash it in the modified TWRP, it shows an error "E:Error executing updater binary in zip", it's happened every single time.... :crying:

I'm sure I've done something really stupidly wrong, if anybody could please help me I'd greatly appreciate it!

This is my first post here on XDA, so please, go easy on me... :)
[Nexus 7 General] USBhost:
This is what I used

notepad++

winrar

Just make sure you only change the updater script

If you need more help just tell me.
[Nexus 7 General] SkOrPn:
In Notepad++ edit the updater script and then put it back into the zip using WinRAR. Follow this post below, it has the proper lines to change with SaberDroid. Not sure what else you need to do.

http://xdaforums.com/showthread.php?p=51742252#post51742252

USBHost can help you from there :good:
[Nexus 7 General] JTzR:
Well if I'm being completely honest, I think I need a step by step of everything needed from start to finish, because somewhere, and I don't actually know where, I'm doing something wrong. :crying:

I'm sorry if that's too much to ask, and I'd understand if you'd prefer not to bother. :)
[Nexus 7 General] USBhost:
Can you upload your updater script so I can see what you did.
[Nexus 7 General] JTzR:
Okay, I'll report back in a bit, thanks!
[Nexus 7 General] USBhost:
Ok
[Nexus 7 General] SkOrPn:
After he edits the updater script, doesn't he also have to replace the stock SaberDroid kernel with an f2fs kernel?
[Nexus 7 General] USBhost:
I never did that

I just install the rom

Then All-F2FS kernel
[Nexus 7 General] JTzR:
Here's the updater script View attachment updater-script.zip

Couldn't figure out how to upload it as a file...
[Nexus 7 General] SkOrPn:
Yeah OK, I was wondering if that would work too. Thanks for the clarification.... :good:
[Nexus 7 General] USBhost:
I think I found your problem

Can you upload the original update script
[Nexus 7 General] JTzR:
Sorry, here's the old one! View attachment updater-script.zip
[Nexus 7 General] USBhost:
Ok try this
[Nexus 7 General] USBhost:
Tell me how it goes
[Nexus 7 General] JTzR:
Is that not identical to the one I'd done? What should I do after placing that on the rom zip?
[Nexus 7 General] USBhost:
Most likely but if you get the error then you did it right

Try flashing it

To see if you get the same error

---------- Post added at 07:09 AM ---------- Previous post was at 07:04 AM ----------

If that dose not work

Then I will try making it work on my nexus 7
[Nexus 7 General] JTzR:
Okie dokie, about to flash, I can only post every 5 minutes so sorry about any late replies.
[Nexus 7 General] USBhost:
O ok lol

I remember that.
[Nexus 7 General] JTzR:
Okay, it managed to flash in TWRP, but it's stuck a google logo, any ideas?
[Nexus 7 General] USBhost:
Cheer at lest we got that part done.

You did flash the all f2fs M-kernel test4?

---------- Post added at 07:34 AM ---------- Previous post was at 07:32 AM ----------

could be that the ROM dose not support the M-kernel
[Nexus 7 General] JTzR:
No...., I completely forgot. :silly::o
[Nexus 7 General] USBhost:
Ok lol that happens to everyone
[Nexus 7 General] JTzR:
Okay, I have the rom, working gapps, format zip and the kernel, I know the order to flash for all but the kernel.
[Nexus 7 General] USBhost:
I always flash the Kernel after the gapps
[Nexus 7 General] JTzR:
Okay, I'll be back in 5-10 minutes, walking the dog. :)
[Nexus 7 General] USBhost:
Well its like 1:20 am here so I will help you later
[Nexus 7 General] JTzR:
No problem, sorry to have kept you up.

Edit: I've got it finished, Paranoid SaberDroid, with M-Kernel f2fs test 4, took a few changes, but it's done, thanks [MENTION=5501864]USBhost[/MENTION] and [MENTION=500006]SkOrPn[/MENTION] !
[Nexus 7 General] SkOrPn:
Yeah I went to bed also last night, sorry about that. Lol

I was going to suggest that you flash the format zip, then reboot recovery then flash format zip again before continuing. Unless you had already done that part. Anyway it's breakfast time. Laters and congrats...
[Nexus 7 General] Powright:
nice ! i'll try it :cowboy: thanks a lot :good::good::good:
[Nexus 7 General] bamonkey:
I know you can just click a like *and i did* but just wanted to say thanks for everything you posted in this thread. i just came back to mess with my device after a month of downtime and saw all this new "F2FS" going around. learned what i needed and wanted to use it on the latest temasek for my n7. took abit of time but using your posted updater script as a template i was able to make the changes and viola im back on temasek with f2fs. thanks for making this easier to understand in a short amount of time :victory:
[Nexus 7 General] USBhost:
no problem

---------- Post added at 08:02 AM ---------- Previous post was at 08:01 AM ----------

Cheer you got it working!
[Nexus 7 General] USBhost:
All-F2FS carbom rom 4/20/2014 ART working
[Nexus 7 General] ironmaskusa:
I would love to see someone upload a cm11 m5 all

F2fs. I wish I could do it myself, but my PC is down and I'm only using my tablet until I can afford another box.

Thanks in advance to the awesome person who takes the time to help! ?
[Nexus 7 General] USBhost:
You got it

Now I need to find

---------- Post added at 03:17 AM ---------- Previous post was at 02:51 AM ----------

here you go did not test it so I don't know if it will work

You need to install a all-f2fs kernel

https://drive.google.com/file/d/0B1cOHQ70J9vldEVnaTc2OVE0RDg/edit?usp=sharing
[Nexus 7 General] ironmaskusa:
You rock! Thanks I'm about to try this out with the mkernel all f2fs and will let you know how it goes!

Works great! Thanks again!
[Nexus 7 General] dynamode:
Superb performance with CM 11 M5 F2FS this is what I'm waiting for thanks to [MENTION=5501864]USBhost[/MENTION] for converting it to F2FS

Benchmarks Below
[Nexus 7 General] bamonkey:
Temasek v67 F2FS

Couldnt upload earlier since i did everything at work. Feel free to follow USBhost's instructions to flash as well, meaning you will need a F2FS kernel and all that.
[Nexus 7 General] JTzR:
https://drive.google.com/file/d/0Bye4pJ3MoUNgbXQ3a2ZENVE5YkE/edit?usp=sharing

Converted PAC-man Rom 2014-04-21 nightly to All-F2FS, works, using it now! :victory:

Using M-Kernel f2fs test 4

Flash order: Flash recovery, FormatPartitions, Reboot recovery, Rom, GApps, Kernel, Format Data. (May have to Format partitions and data multiple times)
[Nexus 7 General] grusta:
Thanks to the people in this thread and their messages, I was able to use PA Sabermod with all-f2fs. The biggest problem for me was inserting the updater-script inside the archive.

The archive manager I use on Linux doesn't support well the feature, so I used the command line.

Delete the updater-script inside the archive.

Open a terminal inside the folder where you decompressed the path to the updater-script and execute :

" zip -r /path/to/archive ./META-INF/google/blabla/updater-script"

You must respect the exact path to the updater-script.

That's it.