yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Original Development] SkOrPn:
Try downloading it again and this time checking the MD5. Stupid question, but is everything else up to date? Bootloader and modified TWRP?

By the way, TWRP 2.7 has released. Waiting for a modified F2FS version of it.
[Nexus 7 Original Development] ronedogg:
According to the instructions it says to flash the kernel first. Then in fastboot flash modified recovery. I cannot get past flashing the kernel lol did I misunderstand the instructions? Wouldn't be the first time lol

Md5 is correct. Updated to 4.23 bootloader the same day. Didn't even know I was still on 4.18.

And yes I'm on 2.7.0 twrp
[Nexus 7 Original Development] CptKlink:
I will say if you want to use the f2fs part of this kernel you can't use the 2.7.0 of twrp you have to use the modified version supplied in the OP.

EDIT: My bad didn't notice twrp has released a version 2.7.0 with all f2fs support.
[Nexus 7 Original Development] SkOrPn:
I think you still have to use the modified 2.6.3.1 version in order for the data partition to be formatted in F2FS partition type. TWRP has had support for F2FS for some time but I believe it's not enabled without modifications. Hence the reason why the OP calls it special TWRP lol...
[Nexus 7 Original Development] PrizmaticSmoke:
This has been running great for me for 3 days now, using Purity ROM, even updated the rom on 3/09 a day after switching to F2FS with no issues (flashed update, flashed kernel, rebooted, good to go).

Thanks for your work!
[Nexus 7 Original Development] CptKlink:
I don't think so that's why legolas posted his new modified 2.7.0 twrp for all f2fs the first special twrp only formated the data partition. The new special 2.7.0 tarp formats all the partitions to f2fs.
[Nexus 7 Original Development] SkOrPn:
Yeah I'm well aware, already downloaded his new TWRP. Just have not found the time to try this, lol...
[Nexus 7 Original Development] CptKlink:
I kinda thought you knew. And I didn't mean anything offensive or rude by what I said and I'm sorry if it sounded that way.
[Nexus 7 Original Development] SkOrPn:
Hey bud no worries mate. I'm just happy to see him whip up a modified twrp 2.7 so fast. I'm going to wait a day or two so I can read reports on the successes or otherwise of going this far with f2fs. Remember, its still a file system in beta testing form. If it works flawlessly I have a feeling we are nearing the maximum performance we will ever get out of the 2012 N7. Heck, it may just be enough to keep me from springing for another newer model for some time. lol

cheers
[Nexus 7 Original Development] !crazy:
Sorry if I ask obvious, b/c I'm not sure I understood the OP right. Does this kernel supports CPU OC?
[Nexus 7 Original Development] XperianPro:
[MENTION=2743057]legolas93[/MENTION] would you mind pointing out things you did to include F2FS support in kernel.

Tnx.
[Nexus 7 Original Development] TarteMan:
Does it work with stock rom ?:fingers-crossed:
[Nexus 7 Original Development] tarroyo:
Any performance increase running this on a nexus 4 or 5?
[Nexus 7 Original Development] :
Which build did you use? I get a com.android.phone fc after a clean install of the latest nightly (2004-03-12)...
[Nexus 7 Original Development] Alucard291:
Are there any real numbers to back any of this up? Or is it the usual post flash placebo that one always gets after full clean?

Because remember N7 2012 was always relatively speedy for the 1st week or so after a full format etc :)
[Nexus 7 Original Development] SkOrPn:
Just what people have been talking about in the Linux community. It's not even finished yet, and it's currently tested as the fastest file system to date on NAND based devices.

www.phoronix.com/scan.php?page=article&item=linux_314_ssdfs&num=2

However, with that said no one really knows why Samsung is spending so much time and money on it. Glad they are though.
[Nexus 7 Original Development] Alucard291:
Fair enough and fair play to Samsung for a change.
[Nexus 7 Original Development] SkOrPn:
I would only try it if you really need the extra speed it brings, however it is kinda a pain to adopt at this point. You can't even try other ROMs or kernels yet. I would pass on this if you are a flash-a-holic. But if you are OK with Slim, and want to settle down for a while I think this is fantastic. Or try the other setup with just data formated and then you can run OmniROM or AOSPAL, PA, CM11 or probably any ROM for that matter.

I use my device for track recording on the back trails of these mountains around me and prefer my cpu to be over clocked to at least 1.5. I have nearly 7gb of very detailed heavy map data with zoom levels of 20, so I need the extra power or the device slows down and the recording isn't as accurate. M-kernel has worked best in the past for this but I admit I have not tried this rom/kernel combination yet. I will do that this coming Monday.
[Nexus 7 Original Development] Alucard291:
Yeah similar enough. I subbed to the thread for now but I'm not sure I can be bothered to do it just yet :)

Maybe over the weekend...
[Nexus 7 Original Development] SkOrPn:
Wait until the weekend, you might have more choices by devs, and feedback by users by then.
[Nexus 7 Original Development] TarteMan:
Just Awesome...

after installing SlimKat 3.6 and enable ART, i got this :
[Nexus 7 Original Development] coolius:
Thanks Legolas! My Nexus 7 with rooted stock ROM is running like a dream! :D
[Nexus 7 Original Development] TarteMan:
so it work with stock rom ? :eek:
[Nexus 7 Original Development] SkOrPn:
[MENTION=2743057]legolas93[/MENTION],

I wonder... Is it possible to make legokernel ALL-F2FS compliant so that we can force our ROMs of choice to work with ALL-F2FS?
[Nexus 7 Original Development] signumized:
I have one question to those who have F2FS formatted the /data partition.

I have the 32 GB version and I have a non accessible "System data" of about 1707 MB.

I couldn't find anywhere where could that data be used.

Could you please post a screenshot taken with DiskUsage https://play.google.com/store/apps/details?id=com.google.android.diskusage on /data partition ?

Thanks.
[Nexus 7 Original Development] TarteMan:
CM 11's latest nightly dont work ( com.android.phone crash ):(
[Nexus 7 Original Development] stokstaart:
Xposed?

Before i start flashing this little beauty, could anybody tell me if Xposed framework is supported?
[Nexus 7 Original Development] Ramer:
I just asked that question on Slimkat. It's known not to work with Art, but I can't get it to install with this either so unless I hear otherwise, I don't think it is.
[Nexus 7 Original Development] signumized:
If you check the previous screenshot you will see that xposed works - cool tool and gravity box.
[Nexus 7 Original Development] stokstaart:
Good to hear Xposed is supported, but there's no way i could get that from the mentioned screenshot (the data in the statusbar could be any program...)

Now let's see about the battery performance!!
[Nexus 7 Original Development] Ramer:
I wonder why framework failed to install, I think it said something about not finding some folders. It still is incompatible with Art, correct?
[Nexus 7 Original Development] SkOrPn:
Yeah, the dev said he is not going to take ART serious until it is finalized and the default runtime (not in exact words, but this is what it boils down to). So until then if Xposed is important to you, then you need to use Dalvik runtime.
[Nexus 7 Original Development] signumized:
So does anyone have problems with the reported free space, being less than expected?
[Nexus 7 Original Development] bhu1:
How much is it actually is? And how much did u expect?
[Nexus 7 Original Development] signumized:
Please check the previous screenshot posted by me. There is some 1800 MB unidentified data that takes up space and I cannot figure it out where is it from.
[Nexus 7 Original Development] bhu1:
Have u considered the fact that the extra covered space might be cause of the new faster f2fs storage type?
[Nexus 7 Original Development] SkOrPn:
It might be the nandroid backup space. Read the info at this forum below which talks about this "System data" space in detail..

http://xdaforums.com/nexus-4/help/huge-inaccessible-data-chunk-internal-t2083107
[Nexus 7 Original Development] bhu1:
Wouldn't he remember if he made that huge a nandroid backup?
[Nexus 7 Original Development] SkOrPn:
He may have multiple backups though which go into the same directory, which is inaccessible by the user or by the Android system. Only one app can touch it and that is the recovery itself. Other users have deleted some of there backups and witnessed the System data instantly change size.
[Nexus 7 Original Development] bhu1:
Hmm....k

BTW, u seem to be the only user who a little bit who is online and answering stuff.....I am in a bit of a problem right now, I did the whole procedure and flashed slim kat f2fs version and it was just stuck on the logo for too long so I right now have flashed to omni r f2fs which is also currently stuck on its logo.

Can u tell me how long does it get stuck there?

BTW, one weird thing I noticed is that in recovery it keeps saying everywhere 'Unable to mount /cache', is that normal in this f2fs case? I also tried to go into mount option and mounting cache manually and that didnt take as the option would just glow but wouldn't actually get ticked.

Any suggestions how to get out of this mess and end up with a working f2fs ROM (preferably omni), I have all required files and zips in a pen drive which I am able to mount in recovery easily. Thanks in advance if u help me.
[Nexus 7 Original Development] signumized:
This is why I asked for someone to post a screenshot, maybe there is a common issue with this new file system. I will try a backup + full format + restore to check if this still happens.

I have fully checked the /data directory and there's nothing else big other than /data/media directory.
[Nexus 7 Original Development] SkOrPn:
Well what did you deviate from in the OP instructions? Did you flash a 3rd party kernel as well? If you want OmniROM I would go to the new "F2FS OmniROM" thread and start from scratch. By the way, you need the All-F2FS TWRP and you need to format partitions to f2fs using the FormatPartitions.zip

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

I am just drawing at straws like you. Was hoping to find something that would help you figure this out, but I'm no dev that's for sure. :good:
[Nexus 7 Original Development] bhu1:
Everything to the point. Gonna retry one more time.
[Nexus 7 Original Development] hazwheel:
Well, I tried it, but couldn't get into recovery after flashing the modified twrp :( flashing stock twrp wouldn't let me back in either, had to dig out wugfresh toolkit and completely reinstall stock to get recovery working again. Oh well, I will try again later

Pushed from me to thee

---------- Post added at 09:22 PM ---------- Previous post was at 09:22 PM ----------

Pushed from me to thee
[Nexus 7 Original Development] Androguide.fr:
Great work :good:

Is there somewhere online where I could see the TWRP patches needed to get F2FS support to work ?

I have implemented F2FS in my kernel for the Xperia Z1, on which recoveries happen to come bundled with the boot.img so an F2FS-enabled twrp would be a nice addition.
[Nexus 7 Original Development] SkOrPn:
Lol, I had to try this twice as well. Not sure why though.

---------- Post added at 03:39 PM ---------- Previous post was at 03:37 PM ----------

Have you tried the original F2FS for /data thread yet? Not sure that is what you are looking for, but it may be a start.

http://xdaforums.com/showthread.php?t=2634271
[Nexus 7 Original Development] PatrickMac:
[MENTION=2743057]legolas93[/MENTION] So this kernel does not work with your slimkat all-F2FS rom+recovery, right? Are you going to release an respective version? And does this kernel feature OC?
[Nexus 7 Original Development] SkOrPn:
I think he has already released it by incorporating it into his SlimKat. No? :confused:
[Nexus 7 Original Development] PatrickMac:
Could be the case. That means it does not have OC at the moment, does it?

Edit: seems like the OP has changed, he says that he deleted the OC feature from his kernel
[Nexus 7 Original Development] SkOrPn:
Probably not... At least I could not find it, unless there is an app that will do it. That's why I am waiting for M-Kernel a68 Test2, lol... ;)
[Nexus 7 Original Development] 91ludesit:
Works fine with the factory image from google. However I notice little to no improvement in performance.

I believe most of the lag and responsiveness problems with this device are related to the 1gb of ram and android's poor memory managment architecture.
[Nexus 7 Original Development] brizey:
legolas has said that TWRP backups of the ext4 data partition might not restore properly. I would like to explore this a bit. My N7 is shared with my son via a restricted profile (waiting for N8 to replace our dead KF). TWRP clearly marks the images it creates with "ext4" in the file name, so I am guessing it does restore the filesystem.

Is there a good way to simply simply tar up all the files in /data and maintain the permissions? Then move it to a PC, do the format, then extract the files back to /data? That way I keep the separate /data/media directories for the two users.

OR...is there a way to use titanium or helium to keep the data for the apps separate for each user? Everything I have read makes it sound absurdly complicated and a manual one by one process.

Edit: I am now trying to user tar from an adb shell while booted into recovery to make an archive on the sd card of the entire /data partition. Looks like it is working, but I am using my s4. The trick will be the size of the archive. It's going to copy EVERYTHING, including media files. Don't have a lot of those. Even with good compression the tar file is going to be big. I will take my nandroids out, etc. May have to change owners back to the correct user, too once I am done. Going to have to wait until the weekend. Time to work.
[Nexus 7 Original Development] brizey:
I bet you flashed a new ROM and forgot to reflash the F2FS kernel. (Learned the hard way, lol).
[Nexus 7 Original Development] tshot:
Running fine on Paranoid Android except, I had a bug where I had to enter a password for decrypt storage. I restored my backup then flashed again. Worked.

EDIT: Apperently, It wasn't applied the second flash. That's strange. By any chance, does this kernel require F2FS?
[Nexus 7 Original Development] SkOrPn:
Yes, this kernel will only work with /data formatted to f2fs using the modified TWRP.
[Nexus 7 Original Development] tshot:
Aww OK, so that's why. Thanks. Thank God I remembered to make a backup.

When I get enough time...I might try both of your projects.
[Nexus 7 Original Development] chiefnoah:
I restored my TWRP /data backup and it worked just fine. The only tricky part is getting that backup off your tablet before wiping it, then putting it back on so you can restore it (which really isn't all that difficult). Though just because it worked for me doesn't mean it would work for you.

And I must say, the performance using this kernel is AMAZING :D
[Nexus 7 Original Development] hotrodwinston:
Are these changes open source? Could this be easily ported to other devices? The galaxy nexus could use this mod very badly just based on my experience with all-f2fs omni on my n7
[Nexus 7 Original Development] SkOrPn:
Not sure they are open source in the way of providing code changes, but anyone can use the file system on any Linux OS they wish. Just need a dev willing to work on it or know what your doing yourself.
[Nexus 7 Original Development] fozzie:
Working fine here on my N7 2012 with stock 4.4.2 KitKat.

Went just as the OP instructions said.

I did however forget that a TWRP backup should the internal SD! Not to worry; there was nothing important on it & it needed a clean up ;)

Probably a dumb question, but can I revert back to the latest TWRP i.e. is the modified one only needed for the formatting of /data to F2FS?
[Nexus 7 Original Development] ehmjay:
anyone having problems installing credential storage certificate? mine just hangs and never installs the .p12 certificate =( im using latest purity rom and before flashing the kernel the certificate installed fine..
[Nexus 7 Original Development] SkOrPn:
Yes it's only needed for formating, but you should stay on a F2FS recovery if your partitions are F2FS, and normal TWRP if they are ext4. It just makes sense that way.

If when you go back to ext4 just flash the normal recovery then.
[Nexus 7 Original Development] tomekwl3:
Hi

I've got a small problem - after flashing TWRP and rebooting my tablet i got some problems with my rom (CM11) - com.android.phone process has stopped, which make unable to use my device. I tried to copy some zips into internal memory but to simply reflash rom and kernel, tur suddenly i got anonther problem - each file is seen by my computer as a "local disc", but when i reconnect tablet with my PC there's a short time while they're seen normally. Recovery doesn't see this files. Has anyone any idea?
[Nexus 7 Original Development] frijolito18:
I had this problem before. It´s like with franco´s kernel, you must delete TelephonyProvider.apk from system/app before installing the new kernel (and in this case, before the new recovery also). Everything should work just fine.
[Nexus 7 Original Development] chiefnoah:
I just disabled the phone app through titanium backup and it worked fine afterwards. Though I noticed another problem where I would for some reason not have write access to my internal (virtual) SD card. Wiping/reinstalling everything didn't fix it so I'm back to stock kernel :/
[Nexus 7 Original Development] tomekwl3:
OK, i've managed to install purity rom via sideload. Now everything seems work well :)
[Nexus 7 Original Development] perezmarka:
Andventures with F2FS

Short version: I have F2FS installed with OmniRom.

Long Version:

I had a heck of a time installing this. I read through the whole thread before I attempted and still ended up with the encrypted login. So I went back to stock and started over again. And again. And again.

What caused me problems:

I'm a noob at this. I've been messing with roms for a couple of months so there was a lot I didn't know. After reading over the thread a few times I was able to make it work. I followed Legolas93's instructions on installing multioroms but kept ending up with encrpytion. The other problem was once the tablet was wiped, it cleared out any zips I had on the SD. I ended up using adb to push the files to the sd card while I was in recovery. Later I used one of my OTG cables and a usb to store the files I needed. When it was time to copy zips to tablet, I mounted the OTG USB in TWRP and and copied the files to the sdcard. Ultimately, I did a modified version of Legolas93's instructions:

Copy Kernel to your tablet

Flash Kernel with your current Recovery

Flash TWRP with F2FS Support

Reboot in Recovery

Format Data in Wipe menu (Wipe->Format Data. Not Advanced Wipe or Swipe to Factory Reset)

Reboot in Recovery

Copy ROM zip (And other zips you may need- Root, Gapps, ect) and Kernel to Tablet SD again using an OTG cable and USB or by using ADB and pushing files back to tablet.

Reboot in Recovery

Flash ROM zip (And any others you may need-Root zips, Gapps, ect)

Reboot in Recovery

Flash Kernel Again

Reboot to system

There was alot of trial and error here before I got it but it did work for me.

To push the files back on to the tablet after wiping, I followed modified instructions from XDA's Flashing Guide - Android. This assumes you know a little about ADB.

Boot up your phone to recovery. And move your rom file to the adb directory, and start a command line ( cmd )

adb shell I did not do this. It would not work on my pc.

mount data I did not do this. It would not work on my pc.

Ctrl+C I did not do this. It would not work on my pc.

adb push D:\custom_rom.zip /data/ I did not push mine to /data/ but to /sdcard/

Wait until the push finished, and restart your device to recovery again with "adb reboot-bootloader" and proceed to flash zips.

I installed DiskInfo from the play store to see how it all came out. Some people said that Data should be in F2FS but cache and system could be in ext4. The website http://www.xda-developers.com/tag/google-nexus-7/ that got me started on F2FS had a pic with System formatted with F2FS. I've tried three times but my System and my Cache both format to ext4 while Data formats to F2FS. What am I missing? How do I get System and Cache to format to F2FS? Or does it not matter? Anyone have any answers?:laugh: Thanks
[Nexus 7 Original Development] qu3becker:
You need another TWRP modded to be able to format System and cache to F2FS. http://xdaforums.com/showthread.php?t=2678140

You also need a rom and kernel with All-F2FS too. Here's an Omni rom modded by Legolas: http://xdaforums.com/showthread.php?t=2679478 and if you want a custom kernel, so far AFAIK, only Faux has one working on all-F2FS/data-F2FS/ext4.

You'd want to follow Legolas' instruction in the modded recovery thread.
[Nexus 7 Original Development] Tenroc:
deleted
[Nexus 7 Original Development] adomol:
Did you flash the FormatPartions.zip?
[Nexus 7 Original Development] SkOrPn:
+1, as adomol said...

TWRP will not format system and cache to f2fs, only supports it. For that you need the formatpartitions.zip in the OP. This legokernel does not support all-f2fs, you need a kernel that does, such as faux 25, and a rom such as all-f2fs OmniROM.

EDIT: by the way, OmniROM with All-F2FS already has a built in kernel that supports all partitions to f2fs. You do not need faux. Faux is nice though...
[Nexus 7 Original Development] Finner42:
Just got this up and running with AOSPAL, all seems to be running smoothly for now!

Just wanted to add, that while I followed the instructions as best I could, I still ended up with the password screen - yes, I did format data, not wipe data.

I suspect if you just go straight to installing this modded TWRP, format data, wipe cache, reboot recovery, then sideload ROM, F2FS kernel, Gapps, this should work...?

And, one other question for clarification - this TWRP is for F2FS, where I can use any ROM plus this kernel, but if I want All-F2FS, I need to use the other modded TWRP, with an All-F2FS ROM (which includes an appropriate kernel)? Is there any benefit moving to All-F2FS (even faster? more stable?), especially given the limited choice in All-F2FS ROMs currently? If not, this seems like a really nice balance between getting some uber-speed out of our aging tablets, and the flexibility of being able to use our preferred ROM.
[Nexus 7 Original Development] qu3becker:
Yeh, I did have to flash rom and gapps (or just gapps I think but you can't be too sure) after formating data.

I'm purely speculating since I'm no dev but I think that some gapps(and roms?) put files in the data partition and formatting data makes Android think that the data partition is encrypted because it can't read it.

There's a small boost from going All-F2FS that I noticed. It used to hang more when /data was the only F2FS formatted partition with the same rom (SlimKat). It's not worth it if you don't want to change rom but for now only SlimKat and omni rom have a All-F2FS modded by Legolas.
[Nexus 7 Original Development] jamiethemorris:
I can't believe how big of a difference this made. My n7 feels like new again. I had all but stopped using it because it was so slow.
[Nexus 7 Original Development] perezmarka:
Wow! I didn't know!

Thanks for all the info folks! The original article that sent me to this thread had an image with an All-F2FS setup. Since I had never heard of F2FS till to the article I just assumed the link they gave would accomplish what they claimed. I went to the All-F2FS link given here and followed those instructions and the verdict?

The F2FS and All-F2FS rock!

My Quadrant Benchmark score was just over 3100 at stock. After following the instructions on this thread (and yes for those who don't know, this threads F2FS formats only the Data partition) my score was 5207 . Then I did the the All-F2FS. My Quadrant score is now 5426! And there is a noticeable jump in speed. I am very pleased with the work Legolas has done! Thanks alot!