yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] xenyz:
When I found out the restored backup wouldn't work, and going back to ext4 to find out nothing worked, I had to stop and set things up again so I could use my phone.

TWRP at least doesn't store the data partition as a disk image like the other partitions, so supposedly you could restore it from the ext4 backup to the new f2fs formatted partition and not skip a beat.

I'll try again in a few days once I set everything back up and do a proper nandroid backup. I'm still pretty cheezed at that onandroid script.... :mad:
[Nexus 4 Original Android Development] shubu000:
That sucks, nothing worse than that moment when you see error in recovery and you didn't prepare for it
[Nexus 4 Original Android Development] jolinnard:
I've successfully booted my mako with f2fs in /data and /cache partitions. Testing it right now.

I'm more confortable with HellsDoctor kernel than MiRaGe (which doesn't has Faux Sound control) or Slimkernel, so I built HellsDoctor with F2FS patch posted in OP.

If anybody wants to try, here is the zip.

Remember, you need to have /cache formatted to f2fs. It can be done booting in modified TWRP, "adb shell" and type:

mkfs.f2fs /dev/block/mmcblk0p22

Please, be carefully with this kind of commands if you are not used in terminal. /dev/block/mmcblk0p22 it's cache partition, but you can verify with "ls -l /dev/block/platform/msm_sdcc.1/by-name/cache"

After that, you can flash the zip.

Sources:

- fstab.mako included in zip:

# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait,check
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait,check,encryptable=/dev/block/platform/msm_sdcc.1/by-name/metadata
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc wait
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,uid=1000,gid=1000,dmask=227,fmask=337 wait
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/modem /radio emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl1 /sbl1 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl2 /sbl2 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl3 /sbl3 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults

- config enabled in HellsDoctor source:

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] houbaba:
Hi Jolinnard,

Did you have any authorisation from Barome for this modification ?

Thank for your answer.

Houbaba
[Nexus 4 Original Android Development] barome:
If you compile from source, you don't add nothing. R29 test (available since 12hrs) is compatible and working well with F2FS...
[Nexus 4 Original Android Development] jolinnard:
Thanks. I was uploading the source code to my github.

[MENTION=2923435]barome[/MENTION] are you planning to make a zip with f2fs in fstab? In that case I could remove my zip [emoji6]
[Nexus 4 Original Android Development] barome:
No, I don't :) you can update it with R29 when my topic is online :) You're right /cache works good too in F2FS !
[Nexus 4 Original Android Development] PatrickMac:
I guess this also is an aosp kernel and not compatible with CM based Roms right?
[Nexus 4 Original Android Development] hazard66:
:rolleyes:
[Nexus 4 Original Android Development] jolinnard:
You are right. AOSP only. But as v29 has f2fs built-in you only need to replace zImage from CM kernel into my zip, and it should work ;) Remember to format /cache first.
[Nexus 4 Original Android Development] shubu000:
just wondering if i format my cache to f2fs,

do i need to do the manual partition of cache everytime that i flash a new rom?

thanks
[Nexus 4 Original Android Development] barome:
You can find F2FS version now ! I added it :)
[Nexus 4 Original Android Development] fr3quency:
And how do we revert to ext4? I flashed the original TWRP to revert to ext4 but it says unable to mount /cache

Edit: I think I found it. Is it:

"adb shell"

"make_ext4fs /dev/block/mmcblk0p22" ?
[Nexus 4 Original Android Development] jolinnard:
Yes, could be. When you have cache formatted in f2fs, TWRP doesn't change it. So you need to manually execute mkfs.ext2 or make_ext4fs I don't remember exactly the command right now. I could look it up later...
[Nexus 4 Original Android Development] diogo.sena:
this modded twrp can work with data in ext4 and cache in f2fs?

i want to test only cache in f2fs for now
[Nexus 4 Original Android Development] jolinnard:
Yes, but you can only switch from one to another from console. It would be a great improvement to implement a choice menu before wipe. But I don't know how to mod TWRP code... Anybody?
[Nexus 4 Original Android Development] nexuspur:
ok i will try it with purity and report if it works fine ;D.
[Nexus 4 Original Android Development] PatrickMac:
Nice! works flawlessly with cache and data formatted in F2FS. seems to get roughly +800 points in antutu compared to ext4 so far.
[Nexus 4 Original Android Development] fr3quency:
I believe someone should upload a video (HD if possible :P ) in which they will start from scratch(ext4-->f2fs). It's more useful...
[Nexus 4 Original Android Development] hazard66:
yeah im sure im doing something wrong but

ive installed the f2fs twrp

then i wipe all data

then install mirage/slimkat/hellscore f2fs kernel

then my phone boots to the logo and sit there

tried several variations of doing this and also managed to get the 'enter password to decrypt data'

but no f2fs working
[Nexus 4 Original Android Development] diogo.sena:
flash kernel before recovery.. its clearly stated in OP

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
[Nexus 4 Original Android Development] jolinnard:
Try this:

- Boot in TWRP (F2FS)

- Wipe data

- Reboot to recovery again

- Touch in "Install" button, you should see only a TWRP directory (it means that your /data partition is successfully wiped in F2FS)

- Push your favorite ROM, GAPPS and Slimkat kernel or MiRaGe and flash them in this order.

- Boot normally. It should work.

If you see 'enter password to decrypt data' means that kernel can't mount /data and it believes that it's encrypted.
[Nexus 4 Original Android Development] DontPushButtons:
Also, when you're wiping data, you're formatting the device right? Not just wiping data as normal before a ROM flash?
[Nexus 4 Original Android Development] fabiotasa2:
Enviado desde mi Nexus 4 mediante Tapatalk
[Nexus 4 Original Android Development] PatrickMac:
[MENTION=4429558]fabiotasa2[/MENTION] that's interesting...how did you get your system partition formatted to f2fs?
[Nexus 4 Original Android Development] hazard66:
yeah i got it working now :)

works fine with mirage kernel but hangs on boot screen with the hellsdoctor r29-f2fs, using omnirom
[Nexus 4 Original Android Development] xtrymind:
here franco kernel with f2fs on /data

Follow the directions in the OP.

r204
[Nexus 4 Original Android Development] camp70:
Wow, how do you do that? :confused:
[Nexus 4 Original Android Development] yethz:
trying it out now.. i'll post feedbacks in a few days of usage and charging cyles..

Thanks.. (crossed-fingers)
[Nexus 4 Original Android Development] barome:
Maybe Elitemovil made an all F2FS ROM, but for personnal reason, I ll don't try (don't like dev doesn't respect GPL)
[Nexus 4 Original Android Development] PatrickMac:
Wouldn't you need a special recovery for that? At least that's what you needed for the nexus 7
[Nexus 4 Original Android Development] barome:
I didn't understand
[Nexus 4 Original Android Development] PatrickMac:
For the nexus 7 we had two recovery versions, one that formats /data in f2fs and one that formats everything (/data, /system and /cache) in f2fs. So that's why I thought you would need another recovery for formatting the system partition in f2fs
[Nexus 4 Original Android Development] xenyz:
I think twrp lets you have an adb shell, so you can do it via command line.
[Nexus 4 Original Android Development] PatrickMac:
Yeah, actually I tried that, too. But it failed to install a ROM for me. Seems like I failed to properly edit the updater script...
[Nexus 4 Original Android Development] txuki2005:
Its possible to ad this feature todo CWM recovery? Thanks in advanced
[Nexus 4 Original Android Development] legolas93:
Here :)
[Nexus 4 Original Android Development] jolinnard:
Hi!

I removed my HellsDoctor kernel, because [MENTION=2923435]barome[/MENTION] pushed it's own build (downloads here as always)

For the people who prefers Hellsgod, I've built a modded version with f2fs (AOSP and CM). Downloads are here.

Remember, my zips include a fstab that mount /cache and /data in f2fs.
[Nexus 4 Original Android Development] shubu000:
Hey jolinnard is it possible to have a flashable zip for changing a kernel to be compatible with cache being f2fs?
[Nexus 4 Original Android Development] hazard66:
thanks u guys for being helpful with the answers

at some point in all this kernel flashing my wifi stopped working

now ive gone through mirage/slimkat/france f2fs kernels and it wont come back

continuing to mess with it..

hellsdoctor 29 f2fs hangs on startup, but ak and sabermod franco which have f2fs support prompt for passwords

if anyone wanted to know :)
[Nexus 4 Original Android Development] jolinnard:
Kernel needs the correct fstab, if not, partitions are mounted in ext4. This is the reason why we patch zip files.

On the other hand, I'm stunned with a problem that I can't fix. This morning I decide to convert /system into f2fs. I modded scripts in Rastakat ROM to stop format /system, only uncompress the files. All seems to be good, but at the first boot I noticed that something was wrong. After a reboot, /data can't be written, even in root terminal. But the most strange issue is in recovery all seems good. So, I decided to wipe all again, formatted /data, /cache and /system from commandline, but again /data can't be written by Android.

At the end, I get back to ext4, because I need to navigate to Madrid. But every time I get back to f2fs Android isn't capable to write. And I tried all the possible variations.

Anybody knows what could happen?
[Nexus 4 Original Android Development] shubu000:
The sabermod one has a different wifi driver. I had the same problem and I just flashed my rom again and then flash another kernel.

Alternatively, if you can get your hands on the zip with the standard wifi drivers in it. You can flash that too.

Actually if you have root explorer just look at the sabermod kernel and see what file it changed, and go to the same directory in the zip file of your rom. Extract that file and overwrite what is on your system. That should fix it too
[Nexus 4 Original Android Development] hazard66:
would be cool if the sabermod kernel actually worked with f2fs

but yeah i reflashed my rom and back and running now

working great with the franco 204 f2fs kernel!!
[Nexus 4 Original Android Development] xenyz:
I can't get my OS X 10.7 machine to compile linaro; can someone with it working grab latest MiRaGe and add faux123 f2fs patch please?

Links:

https://github.com/mrg666/android_kernel_mako

https://github.com/faux123/mako/commit/693873aa7e6001fe07cdc6263fdeabba08f709df
[Nexus 4 Original Android Development] vn00914361:
Hells Doctor now supports this system. You can totally add this kernel to your list you :)
[Nexus 4 Original Android Development] hazard66:
cant boot with hellsdoctor tho even with f2fs

so far only franco in this thread with f2fs, mirage and slimkat from OP work

must be fstab or some other thing?
[Nexus 4 Original Android Development] yethz:
Hi there,

can you provide where to grab the Franco Kernel with F2FS support?

thanks.
[Nexus 4 Original Android Development] xtrymind:
Search a few page back :)
[Nexus 4 Original Android Development] yethz:
Thanks :good: didn't catch [MENTION=4261467]xtrymind[/MENTION]'s post :cyclops: Thanks...

Damn SlimKat 4.4.2 Build 4.2 and Franco #204 with F2FS is sooo smooth and responsive..

Gonna keep an eye its batteries power behaviour..

Thanks a lot guys.
[Nexus 4 Original Android Development] jolinnard:
New selectable zip

I post this here too, maybe someone is not reading the full f2fs post.
[Nexus 4 Original Android Development] shubu000:
hey jolinnard,

my turn to ask this, but are there performance differences with system as f2fs compared to ext4? from what i read seems like the jump is less compared to other partitions

thanks

edited:also can you shed light on whereabouts i can place the script if i'm to use another kernel that is not hellsdoctor? for argument sake let's say semaphore, how can i go about adapting your work without compiling the kernel myself? i got no personal PC right now
[Nexus 4 Original Android Development] mimsiroll:
followed the op's first post and working good, i'm using purity latest build with f2fs mirage kernel. I did this though, I thought I did it wrong because I flashed the twrp first before the kernel but all went good.

fastboot flash f2fs twrp>

saw the red back button>

flashed f2fs mirage kernel>

format data>

. all good.

...be testing this out for a day and see if there's any problem..
[Nexus 4 Original Android Development] hazard66:
can someone make a flashable zip for us less adventurous people to convert our /cache to f2fs?
[Nexus 4 Original Android Development] PatrickMac:
You can find a .zip that converts your /system and /cache to F2FS in the All-F2FS thread. You could just delete the /system part if you want to convert your /cache only
[Nexus 4 Original Android Development] hrishi420:
How???? Ok I only want cache and data part to change in f2fs so i unzip it and open the updater-script in text editor and change the "ui print " and "run_programme" part of system into data(Simply change the name "system" into "data" ). Am i doing it right?? Also anything else (I mean their is also update-binary but not opening in text editor)
[Nexus 4 Original Android Development] jolinnard:
Hey, [MENTION=3706640]shubu000[/MENTION],

I haven't done any benchmark yet, but my feelings are good. Maybe you can make it some by yourself. With my HellsDoctor selectable zip should be easy to switch from one to another one. The only point should be to format partitions. Maybe I can adapt a flasheable zip that you can rename it with partitions to format without editing it (like selectable kernel I did)...

I think it's not possible to make it without a PC. I have a kernel called "Jolie kernel" which is Semaphore but with Faux Sound enabled, also I make a version called Jolie Belle that has some other mods, maybe I include f2fs in the future releases...
[Nexus 4 Original Android Development] naveediftikhar:
Ok this is getting confusing for me..iam not a tech-y at all so can anybody tell me if there is a way to switch to f2fs without losing all my data...thx!
[Nexus 4 Original Android Development] xtrymind:
yes there are one,

1. copy your data on internal storage to pc,

2. format data using f2fs,

3. copy your data from pc to phone again :p
[Nexus 4 Original Android Development] naveediftikhar:
Lolz..i mean apart from that..u guys are a smarter bunch than me..:p
[Nexus 4 Original Android Development] jolinnard:
It's impossible to convert without erase all partition. But make a backup and restore after it's not complicated... no?
[Nexus 4 Original Android Development] buru898:
There is only "that".
[Nexus 4 Original Android Development] shubu000:
Yeah that will be good, I think semaphore is the most simple but with double tap to wake.

Trinity is probably even better but no double tap to wake
[Nexus 4 Original Android Development] roddem:
how to get back to default partition? because i followed the steps in the OP and normal recovery cannot mount sd card
[Nexus 4 Original Android Development] xtrymind:
Using normal twrp, just format /data again, it will change to ext4 again, but data will be wipe again
[Nexus 4 Original Android Development] mimsiroll:
Deleted
[Nexus 4 Original Android Development] jolinnard:
I built it yesterday ;)

XDA thread
[Nexus 4 Original Android Development] Subrad5446@aol.com:
MultiROM

Does anyone know if it's possible to have multirom with f2fs? I successfully formatted and switched over, but multirom is not implemented. The button is there but it doesn't do anything. So I tried flashing multirom twrp over f2fs, but it can't mount /data. Anyone have any ideas? Or do we just have to wait?
[Nexus 4 Original Android Development] xtrymind:
You have to wait, multirom havent implemented f2fs yet,

If you want to know, look at nexus 5 f2fs thread, dennesh develop twrp multirom, but hasnt successfull yet ;)
[Nexus 4 Original Android Development] diogo.sena:
Somebody, somewhere, is waiting for this, data and cache in f2fs, cfq scheduler

edit: complementing info, cm11 m5, and pandam (semaphore modified) kernel

Enviado de meu Nexus 4 usando Tapatalk
[Nexus 4 Original Android Development] zorginho:
Here the bench with ext4, purity and Franco 203.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] RedGoblinz:
EDIT: Think I found the answer
[Nexus 4 Original Android Development] tarroyo:
Checc your pm's [MENTION=4261467]xtrymind[/MENTION]
[Nexus 4 Original Android Development] xtrymind:
sure, wait a minute :)

---------- Post added at 06:33 PM ---------- Previous post was at 06:17 PM ----------

here try this http://www.androidfilehost.com/?fid=23329332407586071,

haven't try it yet, i don't have usb y cable :p
[Nexus 4 Original Android Development] tarroyo:
Thanks, Will test and report back.
[Nexus 4 Original Android Development] tarroyo:
The kernel flashes successfully but the usb drive isn't being detected by the otg y cable, I'm gonna have someone else look at this and report back to u.
[Nexus 4 Original Android Development] Vatri91:
F2fs need special rom, or we need only f2fs kernel?
[Nexus 4 Original Android Development] shubu000:
You need to format your phone for f2fs first, up to you whether you want to have all partitions or just the data partition to be f2fs. Then you need a kernel that supports f2fs. Depending which partitions you format as f2fs, you need to update the fstab accordingly. If you follow the steps from this thread your data partition will be f2fs.
[Nexus 4 Original Android Development] Ranguvar:
franco r207 is out if you can please update!
[Nexus 4 Original Android Development] Rohit02:
Please head towards the general section thread by [MENTION=4450732]CallMeAldy[/MENTION] has the repo of all the converted kernels and ROMS.
[Samsung Galaxy Nexus] ironcladlou:
So a couple weeks ago, my GSM Galaxy Nexus decided to only charge when it's off. The device won't recognize USB connection or power in system or recovery. It charges just fine when it;s powered down hard.

I physically adjusted the USB pin connector with a screwdriver, no change. I went as far as purchasing a new USB port assembly on eBay, but I didn't have the right size phillips, and like an idiot, I stripped one of the screws.

Today, I was trying a factory reset, and like an idiot, I wiped internal storage with it, so now it's soft bricked. Any ideas?
[Samsung Galaxy Nexus] mrgnex:
Get a right screwdriver, replace the usb port, get fastboot working, flash a recovery, adb sideload a rom. Done.
[Samsung Galaxy Nexus] ironcladlou:
For what it's worth, I may have misspoken. I can access Fastboot and recovery, so it's not really soft-bricked. It just doesn't have an OS.
[Samsung Epic 4G Touch] Jin8:
My phone is the Virgin Mobile edition of the Epic 4G Touch, with the GB28 Jelly Bean stock rooted Rom.

I was in the process of installing Cyanogenmod 11 via the instructions listed at the bottom of this page. I've done hours and hours of research over several days to make sure of the process. However, I did the noobiest of noob things. I committed an error that even the dumbest of the dumb wouldn't have done.

I forgot to copy the files to the SD card before flashing the EL26 Kernel.

Mock me. I will understand. I've been circling my room cursing out loud at my amazing stupidity and oversight. Nonetheless, I need your help. My current situation has me at a mismatched Kernel and Rom which, of course, won't boot.

Solution 1 [Failed]:

Flash back to the stock GB28 Kernel. I tried the One-Click off of rwilco12's repository, but I get an md5 sum mismatch error. I've downloaded the file multiple times, but it appears to be corrupted.

Solution 2 [Failed]:

Boot into the EL26 CWM recovery (which is successful!), then try mounting /data or /sdcard. Neither works, and my laptop will not recognize that an SD Card is connected.

Solution 3 [Failed]:

Plug SD Card into the printer (with a mirco SD card adapter), then use the printer to transfer files. Problem is, my printer is out of black ink, and I can't do anything without that ink cartridge. That's right, I can't read the SD Card without replacing the ink cartridge. Go f*** yourself Kodak.

And so, with a phone that cannot boot properly I need to transfer files to my SD card. I've read something about ADB, but I don't quite understand how it works. Is there a specific version of ADB I need to download? If so, where could I find it? Is there any other way to get the files onto my SD card so I can complete the process of upgrading to CM11?
[Samsung Epic 4G Touch] riggerman0421:
Try this if you can get into download mode. Install Odin on your laptop. Download the stock rooted restore for VMobile(GB28), tar version. Flash through pc Odin. Once you boot back up you should be able to copy the files you need top your sd card.

Since it appears all the download links for the VM recovery kernel are dead, you can use the GB27 kernel for the Sprint version. It won't cause any issues. To avoid the yellow triangle, flash the kernel through Mobile Odin. You can find Mobile Odin in the play store. Or, if you don't mind the yellow triangle warning on boot, you can flash the GB27 kernel with pc Odin. Once you have the recovery kernel flashed, you can reboot into recovery and continue your flashing.

By the way, you'll need to flash the Blasphemy kernel to get the proper recovery to flash any of the 4.4.2 roms. If you get the latest 4,.42 blasphemy kernel zip file, you can flash directly from the GB27 kernel recovery I linked. Then reboot into recovery, wipe and flash cm11 and gapps.

ODIN LINK http://www.rwilco12.com/Files/Misc Files/Odin3/Odin3 v3.07.zip

GB28 RESTORE LINK http://www.rwilco12.com/Files/Devic...-D710VMUB_GB28_1014481_Rooted_Restore.tar.md5

GB27 KERNEL LINK http://www.rwilco12.com/Files/Devic...s/JB/SXTP_Agat_GB27/SXTP_Agat_GB27-v0.3.0.tar

Blasphemy Kernel Thread LINK http://xdaforums.com/showthread.php?t=2416620
[Samsung Epic 4G Touch] Jin8:
Success!

Success! Your instructions worked flawlessly, and I managed to get Cyanogenmod 11 working perfectly.

You're an amazing person, riggerman0421. Don't ever let them tell you anything different. :laugh: