• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][UBL][4.4.4] unofficial CM11 with f2fs support + O3 + gcc4.8 by sabermod

nosedive

Senior Member
Jul 18, 2008
349
213
43
Vienna


Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you 
* getting fired because the alarm app failed. Please do some research if you have any 
* concerns about features included in this ROM before flashing it! 
* YOU are choosing to make these modifications, so choose wisely.
*/
introduction
this ROM is an experiment playground for people who ever wanted to test f2fs on our huashan.
I was personally unhappy about the performance with CM11 and suffered from stuttering UI and lags. So I decided to do something about it and started developing kernel and building cm from scratch.
CM is a great alternative and a deblaoted experience that I ever use since years (and the phones I had before).
It's quite some time since my latest contributions, but this one is definitely worth the share.
features apart from offical cm11
  • cm build system optimizations
    > O3 optimization level, strict-aliasing and no debug information
  • rom built with gcc 4.8 toolchain by SaberMod
  • f2fs support in ROM and Kernel
    > kernel supports dynamic generation of fstab in ramdisk
    > rom comes with tools needed for setting up f2fs
    > philz recovery included and supports f2fs

kernel features
  • kernel built with gcc 4.9 linaro toolchain, -O3 + graphite optimizations
  • kernel version 3.4.72
  • cpu governors included: tripndroid, intellimm, intelliactive, dancedance, lazy, bluactive, smartmax, interactive, hyper, ondemand, wheatley, intellidemand, lionheart, performance
  • cpu frequency from 189-1728 MHz
  • VDD control enabled, undervolted by default
  • cpu hotplug: qcom mpdecision + msm_hotplug by myfluxi
  • usb fast-charge
  • io schedulers included: noop, deadline, cfq, sio, sioplus, fifo, zen, row, fiops
  • dynamic fsync enabled
  • tcp congestion: westwood, reno, bic, cubic, htcp, vegas, veno, yeah
  • supports lz4 but is xz compressed for smaller size
  • supports exfat
  • supports frandom
  • vfp hardcoded on neon

f2fs
f2fs is another file system tailored for flash storage in phones and was developed by Samsung. of course, wikipedia is your friend ;)
see this informative thread about f2fs here
basically it will improve internal storage performance and access timings. that turns into a more fluid experience

included mods
  • no cm updater (original cm roms are not compatible)
  • dpi set to 280 (i like it smaller)

requirements
  • unlocked bootloader (lbl is untested)
  • fastboot knowledge if something goes wrong
  • empty internal sdcard (will be wiped during conversion)
  • willing to face dragons

credits
  • Google
  • CyanogenMod
  • FXP
  • pbeeler
  • Cl3Kener
  • uberlaggydarwin
  • Jaegeuk Kim


XDA:DevDB Information
CM11 - F2FS support - O3 - GCC4.8, ROM for the Sony Xperia SP

Contributors
nosedive
Source Code: https://github.com/nosedive

ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: unlocked bootloader
Based On: CyanogenMod

Version Information
Status: Stable

Created 2015-04-02
Last Updated 2015-04-04
 
Last edited:

nosedive

Senior Member
Jul 18, 2008
349
213
43
Vienna
installation instructions
the following procedure will erase the internal sdcard, be sure to have a backup of your personal data and apps (Titanium Backup works fine)
  • reboot your phone to recovery and flash the zip
  • reboot recovery again
    > leave cm recovery and enter philz recovery which is included
  • go to "wipe and format options"
    > "custom format options"
    > "toggle f2fs <-> ext4 migration"
    > "format /cache" with f2fs
    > "format /data and /data/media (/sdcard)"
  • don't forget to flash gapps package of your choice
  • reboot your phone to start setup

compatible kernels
currently no other kernel supports f2fs - at least, not from another dev.
this is the link to my customized kernel for Xperia SP
use at own risk, it still not finished and polished yet
if something unexpected happens, flash original boot.img from my cm zip file via fastboot
 
Last edited:

nosedive

Senior Member
Jul 18, 2008
349
213
43
Vienna
I know this might sound like a noob question to you... but do you mind explaining what f2fs is?
sure :D
f2fs is a different filesystem format. like windows supports fat32 or ntfs, in unix based desktop os like linux the preferred filesystem is ext4 (sometimes also xfs) .. most of our androids use ext4 .. samsung started using f2fs filesystem for their androids with performance benefits and soon after f2fs was ported to nexus tablet (i think it was nexus 10) which sufferes from poor disk speeds.
sure, this won't make a race car out of a vw passat, but how about a passat with 200hp :fingers-crossed:

From what I've read it will speed up our device and add that smoothness found in moto g etc. But thats just my guess I can be wrong. May be the OP can tell more..

Verified
yes, work flow seems to be more fluid. but i don't see big differences with benchmarks :laugh:
 

Zygmus

Senior Member
Mar 31, 2014
51
17
0
installation instructions

  • reboot to recovery and flash cwm zip
  • reboot recovery (enters philz recovery)
  • go to "wipe and format options"
    > "custom format options"
    > "toggle f2fs <-> ext4 migration"
    > "format /cache" with f2fs
    > "format /data and /data/media (/sdcard)"
  • flash gapps
  • reboot your phone to start setup

Could someone explain it? There is not such as menus in CWM like "wipe and format options". ANd what step is the ROM installation?
 

wax911

Senior Member
Apr 4, 2011
83
23
0
Pretoria
Amazing

Wow, never thought I'd see f2fs on the xperia sp. I've used this partition format on my N7 and it does yield some good results. Great work, you rock. Will test this out when I have time :good:
 

matsas

Member
Aug 7, 2014
47
12
0
Athens
Could someone explain it? There is not such as menus in CWM like "wipe and format options". ANd what step is the ROM installation?



after the wipes i guess in step 4, before flash gapps
 

nosedive

Senior Member
Jul 18, 2008
349
213
43
Vienna
Could someone explain it? There is not such as menus in CWM like "wipe and format options". ANd what step is the ROM installation?



after the wipes i guess in step 4, before flash gapps
yes true.
> download the zip and install the zip in recovery
> again reboot the recovery (not the system) or shut the phone down.
> go to recovery again by pressing the vol-down during boot (you know how to do that right ;)
> you should now be in philz recovery - the background is now pink instead of grey
> toggle migrations and follow the conversion steps

if you want to check if you were successful, start terminal emulator and type: "su" and grant superuser access, then type "mount" and at the bottom of the output you should read f2fs for /cache and /data
in case you do not read the f2fs somewhere, you still have an optimized roms and kernel. both were built with gcc 4.8 :cool:

good luck
 

ramcool789

Senior Member
Jan 29, 2012
74
26
0
yes true.
> download the zip and install the zip in recovery
> again reboot the recovery (not the system) or shut the phone down.
> go to recovery again by pressing the vol-down during boot (you know how to do that right ;)
> you should now be in philz recovery - the background is now pink instead of grey
> toggle migrations and follow the conversion steps

if you want to check if you were successful, start terminal emulator and type: "su" and grant superuser access, then type "mount" and at the bottom of the output you should read f2fs for /cache and /data
in case you do not read the f2fs somewhere, you still have an optimized roms and kernel. both were built with gcc 4.8 :cool:

good luck
The Rom is really great, never seen any rom so smooth. App switching is so much smoother and faster. But i don't know why i keep getting weird reboots :confused: (maybe because i'm using xposed?)
Overall this rom is great!
Also, i would like some guidance on how can i bring Font, navigation bar dpi etc back to cm normal, sometimes everything seems too small :cyclops:
 

cojii

Member
Nov 14, 2014
21
5
0
@nosedive Thank you so much for your hard work, however i am not able to test it in 100%, Because Philz doesn't display "wipe and format options". After i flashed ZIP and rebor Philz doens't show needed option. I also flashed kernel with Flashtool, flashed flashed "2015-04-01_23-30-08_kernel_msm8x60_ndED_huashan_defconfig.zip" too, reboted etc.
I'm using unlocked bootloader.
 

jeremy4465

Senior Member
Dec 16, 2010
51
9
0
Possible ART bug

Today I was curious to see if ART works, on my phone it doesn't but I don't want to say it like a bug because it may work on other people's phones, could someone else test that ART works/doesn't work for them?

Also I couldn't get logcat's because I was out and about and I kind of need my phone