yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] jolinnard:
Are you sure that your partitions are mounted as f2fs? Because you need to have the right fstab, I make a lot of tests... Can you post your /fstab.mako file? Maybe CM mounts partitions in other way that I don't know...
[Nexus 4 Original Android Development] diogo.sena:
Sure, take a look!
[Nexus 4 Original Android Development] lsls01:
Thanks a lot for all you did, and I'm running Slim-mako-4.4.2.build.4.2-WEEKLY-3743.zip too, using HellsDoctor-R29-F2FS-ALL. But I don't know the reason why It can't be on PA4.2 beta4, it will stick at bootanimation
[Nexus 4 Original Android Development] jolinnard:
I think barome made a zip called HellsDoctor_R29_F2FS.zip or something like that. If this is the zip you are using, inside you should see the exact fstab.mako that you posted. I meant, if you format /system in f2fs your system boot and mount it as f2fs automagically?
[Nexus 4 Original Android Development] diogo.sena:
No, using that cm zip from that link you post... ill try more tests when i have time and report back

edit: sorry, i was wrong, fstab must have been preserved between flashes somehow.. but i found something interesting, there's an auto parameter!

https://wiki.archlinux.org/index.php/fstab

<type> - the file system type of the partition or storage device to be mounted. Many different file systems are supported: ext2, ext3, ext4, btrfs, reiserfs, xfs, jfs, smbfs, iso9660, vfat, ntfs, swap and auto. The auto type lets the mount command guess what type of file system is used. This is useful for optical media (CD/DVD).

Enviado de meu Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] jolinnard:
Yeah, auto could be a solution, but we need to specify different options in every case... so we can't set fs type to auto.

For now, the most easy way is to rename my selectable zips ;)

BTW, anybody wants to try a SABERMOD franco kernel selectable? Courtesy of [MENTION=4888112]xcstacy[/MENTION].
[Nexus 4 Original Android Development] username8611:
I flashed everything in the OP step by step, booted up and into android. When I flash this after renaming it franco.Kernel-nightly-r204-SaberMod-4.9Test-data-cache-system.zip, it hangs on boot, at the boot animation. Am I doing something wrong?

edit: I cant get any of the kernels in this thread to work!? I'm not new to this, what am I overlooking? Everytime no matter what or how I flash it, I'm stuck hanging on the boot screen. I'm using the slimkat from OP.

FIXED: apparently banks gapps minimal works with the default kernel, but not any others. i cant explain why, but it works with no gapps... onto find one that works.
[Nexus 4 Original Android Development] username8611:
I'm about to give up. Can anyone tell me what gapps they are using or what could be my issue? Using the the official slimkat gapps minimal, same thing. kernels only work with no gapps.
[Nexus 4 Original Android Development] diogo.sena:
I use cm11, with banks minimal gapps, no problems, but only data and cache in f2fs

Enviado de meu Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] halfbytecode:
I've had success with using AOSP and CM based ROMs with full F2FS (system, data and cache).

Banks standard gapps package is working for me.
[Nexus 4 Original Android Development] shalom06:
How's the performance?
[Nexus 4 Original Android Development] halfbytecode:
It's noticeably better than ext4, but I see the system stuttering on scrolling more than when I was on ext4 with the same setup. The overall speed gains are kind of overshadowed by the "exposed" weaknesses of the system.

I/O read-writes are very good though, as compared to ext4.
[Nexus 4 Original Android Development] mikaole:
Thx

just installed slim with full f2fs and all is fine. Seems to be snappier than original even I am used to Velocity and new PSX fat lady speed madness.

Can compare a little more when 1st psxF2FS rom is ready tonight.

THX anyway.
[Nexus 4 Original Android Development] ph37rd:
Care to elaborate on the "exposed weaknesses"
[Nexus 4 Original Android Development] halfbytecode:
Like I said in the previous post, the scrolling is smoother but when there is a lag/ stutter it is more prominent than it was on ext4.
[Nexus 4 Original Android Development] mimsiroll:
So is there an official revert zip for data, cache and system?
[Nexus 4 Original Android Development] shubu000:
i think you just flash the original TWRP or any other recovery and flash all the partitions again

by the way anyone using purity for all-f2fs?
[Nexus 4 Original Android Development] mikaole:
If you have all f2fs how can you make a rom to support it, or do you only need to have the right kernel?
[Nexus 4 Original Android Development] PatrickMac:
You need a compatible kernel and an edited updaterscript for your ROM
[Nexus 4 Original Android Development] mikaole:
Ok will take a look in the slim script then and try to change it on the rom I would like to have.
[Nexus 4 Original Android Development] NABENDU1:
Re: F2FS Batch Script to Convert ROMS

Hey I have created a batch script to Convert Any 4.4 AOSP/CM(Dunno Need Testers for CM) to Full F2FS Rom including kernel with a few clicks !! If anyone is interested they can pm me !!
[Nexus 4 Original Android Development] mikaole:
Well have you already make a velocity f2fs

Cause I would like to test it.

Or a fat lady one.
[Nexus 4 Original Android Development] PatrickMac:
fat lady = psx rusted? If yes, I tried a build yesterday.
[Nexus 4 Original Android Development] mikaole:
No, fat lady is the new psx from Martin.

But I will try the rusted, too.
[Nexus 4 Original Android Development] mikaole:
thx for the help guys.

I am now officially on Velocity f2fs :)

Damn no recovery for my flo.
[Nexus 4 Original Android Development] tarroyo:
If I want to flash a new rom what steps would I do?
[Nexus 4 Original Android Development] ph37rd:
Using the OP SlimKat ROM with Jolie's version of Hellscore. Running at 81MHz and Intellidemand. Weekends, phenomenal battery life, almost two days on full charge. At work, still reasonably good, but lousy signal strength does the expected on the battery. Can make 16 hours with 85% drain.

Even at the reduced speeds and undervolting of Hellscore, everything remains very fluid.

Thank you for the work to everyone involved.
[Nexus 4 Original Android Development] mikaole:
tarroyo

Just take your favorite rom and open the zip.

Replace the bootimage and the updater script with the one inside. The slim f2fs rom.

That's it. Just let the rom boot and after that you can flash any other f2fs kernel, if you don't like slims.

I am using hellsdoctor f2fs with. Jays. Psx. Rusted build from today and it's running extremely nice.
[Nexus 4 Original Android Development] shubu000:
this might sound like a lame question, but how did you change the boot image and updater script?

do you extract the whole zip and then rezip it?

or do you edit the zip inside the application like 7zip

i've tried either way and i've been getting errors

thanks
[Nexus 4 Original Android Development] tarroyo:
Thank you for the reply, Thats not exactly what I meant I should have been more clear.

I meant what wiping methods do I do before flashing another rom? I was previously using CWM and I had to do the following steps before flashing another rom

1. Wipe factory data/reset

2. Wipe cache

3. Go into mounts and storage

4. Format /system

5. Format /data

6. Format /cache

7. Wipe dalvik
[Nexus 4 Original Android Development] mikaole:
If you are on an f2fs rom you go into recovery and do a factory reset.

When I change the rom I also wipe cache and dalvik under advanced wipe.
[Nexus 4 Original Android Development] mikaole:
I just open the zip with winrar. Then I delete the bootimage inside the zip. Than I drag and drop the slim boot animation inside.

Then I go to the folder with the updater script and do just the same.
[Nexus 4 Original Android Development] buru898:
Same process, the only thing that changed is your filesystem. Although you have one or 2 steps too many, that's right.
[Nexus 4 Original Android Development] tarroyo:
Great! Makes everything easier, After doing all the steps in the OP the only partition that changed to f2fs is data, Did I do something wrong? I thought this changed cache and system as well????
[Nexus 4 Original Android Development] mikaole:
If you have flashed the format partitions.zip all partitions should be f2fs. I followed the op and everything is fine here

When you are back in system just dl a terminal app and write mount and hit enter. There you can see if everything is on f2fs.
[Nexus 4 Original Android Development] tarroyo:
Dloaded DiskInfo and it shows data as f2fs cache and system remain ext4 the same is shown in terminal. I followed the OP almost exactly, Only difference being I flashed OmniRom rather then SlimKat
[Nexus 4 Original Android Development] mikaole:
And you flashed the format partitions.zip in f2fs twrp?

That's weird. Here all is f2fs and all is running extremely fine. Latest velocity beta is just pure speed.
[Nexus 4 Original Android Development] opssemnik:
the "ROM needs to be compatbile" to ALL F2FS its just a modified fstab?

(aside from kernel ofc)

---------- Post added at 07:47 PM ---------- Previous post was at 07:14 PM ----------

then use fastboot to revert

(fastboot format userdata, fastboot format cache, fastboot format system)

EDIT: got working with rastakat!.

1st - download ROM and Gapps of your choice

2nd - open your rom zip, go to META-INF/com/google/android/updater-script, change

format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

to

run_program("/sbin/mkfs.f2fs", "/dev/block/platform/msm_sdcc.1/by-name/system");

run_program("/sbin/busybox", "mount", "/system");

3rd: change boot.img inside room zip to the one as the modified rom(needs to install boot.img first, you cant ignore this and install a compatible f2fs kernel since fstab.mako needs to be modifed in ramdisk)

4th: do steps as OP states, but instead of installing slimkat, install rom of your choice(if you already using it, you do not need to install format partitions, just install rom and gapps)

5th: if you want, now you can install custom kernel that supports f2fs

EDIT2: anyone can tell me whats the app on OP?, i hate using terminal to check fs

EDIT3: video showing it https://www.youtube.com/watch?v=Z9o_DWHkx-s&feature=youtu.be
[Nexus 4 Original Android Development] tarroyo:
Disk Info can be found in the play store.
[Nexus 4 Original Android Development] SpasilliumNexus:
Maybe I'm missing something here, but is F2FS supposed to take a lot more space in order to use?

I've done a complete wipe of my phone and get these results with both EXT4 and F2FS on the same stock rooted ROM of mines.

Attached screenshots are from a fresh wipe and install.

EDIT: I've decided to check my free space on both stock EXT4 and F2FS versions of TWRP, with everything formatted (making sure I rebooted back into recovery after every format), and for some reason it's showing space being used with F2FS TWRP right after I flash the format zip, reboot, and do manual format of everything.

I also noticed that I do not get the "No OS Installed!" message before a reboot in recovery. Command Prompt pics attached.
[Nexus 4 Original Android Development] mikaole:
The rom itself takes much more space. Normally after deleting all system apps I don't need i have about 480 mb free in system, now only 300.
[Nexus 4 Original Android Development] fishears:
Well I decided to have a go at this procedure after drinking a bottle of red wine last night (is there a better time?).

It all went very smoothly. Thanks for the comprehensive guide and flashables.

It does seem snappier with F2FS. Anyway, I'm now sober again and am going to revert back to EXT4 until this gets adopted more widely. I like it but I just don't want to have to do stuff each time my ROM gets an update...

It's threads like this that will get F2FS adopted as standard. KEEP IT UP!

EDIT: The journey back to EXT4 was just as easy. I did it a little different to the OP. I flashed normal TWRP, formatted /data, installed the restore partitions zip. Then I used adb to push back my TWRP backup that I took before trying F2FS and restored it. After that I just pushed my /sdcard contents back and it's like nothing ever happened.
[Nexus 4 Original Android Development] NABENDU1:
"I like it but I just don't want to have to do stuff each time my ROM gets an update..."

Well dont worry all will change sooner than later !! Its like at a click of a button you can get your favourite ROM to FULLF2FS Compatibality !! I have created a batch script which will do the same stuff and the same is still being tested !! A big shout out to [MENTION=4439521]mikaole[/MENTION] & [MENTION=4639267]PatrickMac[/MENTION] for the extensive testing on the Script he has done as well as to the other testers !! Ill probably be able to give a public release in a weeks time after ironing it out a bit,removing the non working part of the script , uncluttering the script and probably adding support for N7 2012 also if possible !!

And ya if you want to help me sort some things you are always welcome.
[Nexus 4 Original Android Development] fishears:
Sounds great. If you need any help I'm reasonably useful with Linux, Edify scripting, bash, I used to produce my own roms & kernels for the S1 - just don't ask me about Windows ;)
[Nexus 4 Original Android Development] mikaole:
There is even a thread on the German Android Hilfe forum and on purespeedx were you can ask the thread opener (me) :) for a specific rom and he will do it for you :)

And if someone like to test in my folder is always the latest beta of Velocity and rustyjays latest psx. https://drive.google.com/folderview?id=0B__yyNLq1EIRR2lVbmNIT3RBeU0&usp=sharing

New hellsdoctor is running great btw.
[Nexus 4 Original Android Development] maverickronny:
After doing this, will this detect as mtp in windows? Also I am using a nodded stock ROM with hellscore, how do I use this in stock?
[Nexus 4 Original Android Development] NABENDU1:
Yes mtp will work fine !! And for that youll need to change the updater scirpt and the boot.img in fstab.mako !! Head to the page which Mikaole suggested on purespeedx forums ie

http://www.purespeedx.net/index.php/Thread/269-F2FS-Discussions/

Read the thread youll find my auto scripts somewhere there but read the entire thread cause its beta and some things are not working as intended!! Have fun with f2fs
[Nexus 4 Original Android Development] mikaole:
Added plsx to my folder.
[Nexus 4 Original Android Development] maverickronny:
Great! Thanks for the reply nabendu, however my doubt is, how do I do it with stock ROM, since flashing stock doesn't involve flashing a zip, so how, and how do I find updater script in the IMG files
[Nexus 4 Original Android Development] mikaole:
You can just search for a flashable stock zip. That's all. Let me see if I can make it, but may I ask why stock?

https://mega.co.nz/#!HNl1kYQS!D_nfMXgCnwB4qmOPJ7oaDngZB-h_WGMhTAp4dWHU_wc

Here you go flashable stock.

I will do an f2fs stock, so only not stock will be the kernel.

Will be in my folder in about 20 minutes.

btw seems to me that f2fs is much more improving roms on dalvik than on ART.

I will test the stockrom later today to see how it feels :)
[Nexus 4 Original Android Development] NABENDU1:
mikaole Ill try a bit more to convert the boot.imgs to F2FS compatiblity !!

Ok [MENTION=4544860]osm0sis[/MENTION] has released a new version of Android Image Kitchen and from what I can understand this tool can and for sure can unpack and repack 4.4 boot.imgs atleast of Nexus Devices !! Hope this time it works for the better !! Im also trying a test today with his Mobile Edition !! I tried one tool by the Named bootimgpact but the same couldnt unpack the boot.img throwing erros !!

Also can anyone help me out if it is only the fstab.mako which needs changes and nothing else on the Kernel Side !! Since the kernels I modified using the previous version of Previous Versions of AIK have always falied to boot !!

[MENTION=4439521]mikaole[/MENTION] Haha you better be prepared !! before giving my mako to servicing I went stock and it felt like wow is this the Phone I use as my dd !!And today Im getting my N4 back so happy :victory::laugh:!!!
[Nexus 4 Original Android Development] mikaole:
if I can spare some time today I will help, just say what you need.

btw repacking stock needs a lot more time. Is only on 30% right now, so could take a bit more than 20 minutes.

Will test it and give an info as soon as it tested to be good.

Stock is uploading, but not tested right now.

Stock is not working always failed.

Seems the stock updater script needs more attention than just the two lines.
[Nexus 4 Original Android Development] NABENDU1:
Can you post the updater script [MENTION=4439521]mikaole[/MENTION] !!
[Nexus 4 Original Android Development] mikaole:
Which one the original or the one from f2fs.
[Nexus 4 Original Android Development] NABENDU1:
Original Stock 4.4.2 !! And ahh my phone I receive on Monday due to Good Friday service centre was closed !! Happy easter to all you guys !!
[Nexus 4 Original Android Development] mikaole:
In a second already deleted the rom. Already dl again.

Had to make a zip, cause couldnt ul the file on its own.
[Nexus 4 Original Android Development] mikaole:
I have a 100mbit down and 30 up flat, so dl something is just needing seconds unless it is a full Blu-ray :)

---------- Post added at 04:56 PM ---------- Previous post was at 04:49 PM ----------

Will try again later. Maybe a bad download or something crazy while repacking.

You really have to try latest fat lady from beta section on f2fs. This is just crazy.

Running it with AKs lateat.
[Nexus 4 Original Android Development] NABENDU1:
No it doesnt contain busybox !! I missed that !! Doesnt have busybox so wont install f2fs !!

This STOCK ROM is good to be converted to Full F2FS

http://xdaforums.com/nexus-4/development/rom-nexus-4-4-4-2-stock-deodexed-rooted-t2010887
[Nexus 4 Original Android Development] mikaole:
Just tell me if and how to change that and I'll do it.

which one will be better odexed or deodexed.

Running through :)
[Nexus 4 Original Android Development] NABENDU1:
Just letme check the thread out !! It seems that ppl with deodexed are having problems due to the updated Play Service and Stock apps

Opt Odexed seems safer bet at the moment
[Nexus 4 Original Android Development] fishears:
A kernel needs to have the F2FS file system source code added and also enabled in defconfig so just replacing the fstab is not enough :(

See this commit where Faux adds dennes544's F2FS commit to his kernel.
[Nexus 4 Original Android Development] NABENDU1:
Thanks a lot [MENTION=3325155]fishears[/MENTION] !! Yaa thatz why this stuff always failed booting up !! Okay since this is so clear now Ill just remove that part of the script and only keep the option for flashing slimkatf2fsboot.img or any other compatible full ff2fs boot.img !

And maybe add some love for N7 2012 before release !!
[Nexus 4 Original Android Development] osm0sis:
mako works fine, you must not have been using a normal boot.img. f2fs support is not just the fstab from what I understand, the kernel needs to support it in the source.

Good luck! :)

Edit: I see that was a tool name, not an image name after rereading. Carry on. :p
[Nexus 4 Original Android Development] mikaole:
I think it doesn't matter. Not so much work to flash a kernel after first boot with slims kernel.

Btw stock is finished. Just backing up my latest in twrp and after that I'll try to flash stock.

It's installing fine now, but not booting with slim kernel inside. Will leave that for today.

Just tried the deodexed version and no luck, too.
[Nexus 4 Original Android Development] misterk267:
Hmm. I can't get it to boot. Since I formatted everything, I have no way to install anything that can boot. Anybody have any ideas how i can get a different rom or the restore zip onto the phone so i can flash it?

Edit: Nevermind, I forgot about adb sideload lol.
[Nexus 4 Original Android Development] senthilrameshjv:
Guys, I am facing issues in connecting my mobile to computer. Most of the times it doesnt connect. I had to plug in hard to connect it. If I want to try this, do i need PC must? Cos, anyways after formatting in TWRP I'll not have any file in mobile to flash, isn't it?
[Nexus 4 Original Android Development] fr3quency:
You first flash, then format. So you HAVE something to flash.thing is... You might screw up and might need to push the zips through adb in recovery.
[Nexus 4 Original Android Development] deedeeceleb:
I can't manage to boot franco kernel (sabermod with f2fs support) on my n4...

it always gets stuck at google logo :-/
[Nexus 4 Original Android Development] senthilrameshjv:
Yes thats what I am saying. After format I need computer right but mine is not connecting properly . if I format completely and can't flash via adb then I'm screwed.
[Nexus 4 Original Android Development] mikaole:
Try this

xdaforums.com/showthread.php?t=1599332

Normally even if everything else is failing this app is always finding my device.
[Nexus 4 Original Android Development] ph37rd:
See the post above your post.

Sent from the undead HTC One V
[Nexus 4 Original Android Development] jolinnard:
I have been away last week... I missed something? I was using f2fs on all partitions with Slimkat (weekly) and my JolieHasYou (Matrix sources and selectable). I can confirm that f2fs it's as good as ext4, or even a bit better. It's stable for me as a daily use.

The only thing that is not working (or I can't find a solution) is to remount /system as RW: Titanium Backup can't or myself using adb shell... Anybody knows a way to do it?

If somebody has any issue we can discuss it, as always. I will try to help (I don't want answer old posts :P)
[Nexus 4 Original Android Development] mikaole:
What do you mean with remount. I am using root explorer to delete the system apps I don't use and can. Rw. Ro the system as much as I like.

Btw chad from velocity would be so kind to make us another bootimage so I could use his kernel beside the slim one. Do you know how to make that, or if not, what changes you have to make to just do a kernel. We can't get his kernel to run and I was not able to find a full github for this.
[Nexus 4 Original Android Development] jolinnard:
1. I meant this:

root@android:/ # busybox mount | grep /system
/dev/block/platform/msm_sdcc.1/by-name/system on /system type f2fs (ro,seclabel,nosuid,nodev,noatime,nodiratime,background_gc=off,discard,user_xattr,inline_xattr,acl,errors=recover,active_logs=6)
root@android:/ # busybox mount /system -o remount,rw
root@android:/ # busybox mount | grep /system
/dev/block/platform/msm_sdcc.1/by-name/system on /system type f2fs (ro,seclabel,nosuid,nodev,noatime,nodiratime,background_gc=off,discard,user_xattr,inline_xattr,acl,errors=recover,active_logs=6)

As you can see, /system remains in RO. If Root Explorer is capable to remount in RW I need to figure out how...

2. It's hard to know which kernel is "Velocity". Do you have links? Kernel code should be public...
[Nexus 4 Original Android Development] mikaole:
Do you know any full github commit for making kernel fullf2fs compatible.

I found something on franco, but that seems not to be all.
[Nexus 4 Original Android Development] jolinnard:
For code you can pick this, but you need to enable these options in config too:

CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
# CONFIG_F2FS_CHECK_FS is not set
[Nexus 4 Original Android Development] NABENDU1:
Set SE Linux mode to permissive and try if you can get it to work !!

Maximum velocity kernel

https://github.com/Velocity-Project/mako_kernel
[Nexus 4 Original Android Development] senthilrameshjv:
Thanks guys. Let me try this. *final hope*