ads

samedi 12 septembre 2015

[ROM+KERNEL][5.1.1][F2FS Support]Sultanxda's Cyanogenmod CAF ROM + Tyr-CAF Kernel



TL;DR - This is [ROM+KERNEL][5.1.1] Unofficial CyanogenMod 12.1 with CAF 3.4.0 kernel does not officially support F2FS I went ahead modified the fstab, updater-script and replaced the kernel with @DerRomtester's [KERNEL] [CAF] [UBERTC] Tyr-CAF Kernel as it has F2FS support and is originally based off of Sultanxda's CAF kernel.


So What is CAF?
CAF stands for Code Aurora Forums.

Quote:









Code Aurora Forum (CAF) is a consortium of companies with projects serving the mobile wireless industry. Software projects it concerns itself with are e.g. Android for MSM, Femto Linux Project, LLVM, MSM WLAN and Linux-MSM. Code Aurora is basically AOSP plus all Qualcomm specific enhancements and optimization.




As explained in the AOSParadox Project page (A really cool project, vanilla CAF AOSP rom, definitely worth checking out).


So What is F2FS?
Wiki: F2FS (Flash-Friendly File System) is a flash file system initially developed by Samsung Electronics for the Linux kernel.
The F2FS file system boasts superior performance in comparison to the EXT4 file system (which is used as the default filesystem used for /data, /system and /cache) in /data and /cache (/system performs best with EXT4 file system). Click here for some benchmarks/analysis'!


What's so Great About @Sultanxda's rom?
I love this rom because of the strong emphasis put into stability and keeping it clean. Take a look at it's features (taken from here):

Quote:









ROM features:
  • Based off latest generic CyanogenMod 12.1 nightly source

  • OTA updates via built-in CMUpdater

  • Vanilla CAF LA.BF.1.1.1_rb1.26 display HAL (improved display performance)

  • Vanilla CAF LA.BF.1.1.1_rb1.26 media HAL (improved video performance)

  • Vanilla CAF LA.BF.1.1.1_rb1.26 audio HAL (improved audio performance)

  • OxygenOS camera libraries (no camera bugs and improved camera performance)

  • Snapdragon Camera app by Qualcomm (comes with many unique features, such as high-speed recording with audio)

  • Custom camera HAL I modified myself from CAF featuring:
    -Slow-motion video recording at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p
    -High-speed video recording with audio at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p (you need to use the Snapdragon Camera app in order to use high-speed recording)
    -1080p video recording with the front-facing camera
    -2.5k 1440p video recording with the front-facing camera and back camera (only with the Snapdragon Camera app that comes with the ROM)
    -4k video recording at UHD and DCI resolutions
    -Manual focus
    -Slow shutter (ranging from 1/5000th of a second to 2 seconds)
    -More picture sizes than plain OxygenOS, such as 9.7MP 16:9
    -JPEG quality is always set to 100% (pictures are very high quality)

  • Disabled Qualcomm performance daemon (CPU boosting is now handled completely by the driver I wrote)

  • 2 CPU cores are not forced online all the time (saves power this way)

  • WiFi configuration from LG G3 (better WiFi performance and stability)

  • Many other misc. optimizations

Kernel features:
  • Based off latest CAF LA.BF.1.1.1_rb1.26 kernel source from Qualcomm

  • Almost 100% pure CAF (very clean, there shouldn't be any crazy stability or performance issues)

  • Removed lots of excessive debugging

  • Latest CAF LA.BF.1.1.1_rb1.26 prima (WiFi) drivers

  • Rewrote half of the Synaptics touchscreen driver (over 2500 lines of code modified; your touchscreen might work better)

  • Newest available Synaptics touchscreen firmware (no battery drain)

  • Dynamic CPU input boost driver I wrote myself (makes the phone feel smooooth)

  • CPU underclocked to 1958MHz by default (you can disable this; see why I did this in the FAQ in the 3rd post)

  • Improved notification LED color (white doesn't have a blue tint)

  • Vibrator is automatically disabled when recording videos (so the buzzing noise doesn't get in the videos)

  • Custom thermal driver I wrote myself (keeps the phone cool)

  • LCD KCAL by Savoca

  • Westwood TCP congestion algorithm (enabled by default)

  • NTFS support

  • No BS patches, features, or compiler "optimizations"

  • Many other misc. optimizations







Why use Tyr-CAF Kernel?
@Sultanxda's rom does not support F2FS out of the box. The first thing required to get f2fs support, is a kernel that supports it, that's where @DerRomtester's Tyr-CAF kernel comes into play. It's based off of @Sultanxda's original CAF kernel but offers more customization and F2FS support.
Differences to @Sultanxda's kernel:

Quote:









  • - replaced Mpdecision with cpuquiet

  • - Stock CPU frequency table (no underclock by default)

  • - charge control ( i hope it is working)

  • - more I/O schedulers (bfq default)

  • - disabled Add Random, CRC, I/O Stats and Rotational for better performance

  • - francos sound control

  • - added option to enable/disable fsync

  • - default TCP algorithm: westood (enabled all available)

  • - added an option to enable/disable gentle fair sleepers (disabled by default for better battery + performance)

  • - tuned performance profiles

  • - PVS/SPEED level interface (you can see that inside synapse)

  • - GPU stats for each frequency

  • - change kernel compression to XZ

  • - tuned the LED color

  • - lowerd GPU voltage constraints






Step by Step Guide and Downloads:

Step 1 (and Recovery download link)
Make sure to partition /data and /cache to F2FS first!
You need a recovery that supports formatting to F2FS to do this.
That means a modified version of TWRP or CWM.
You can find recoveries that support F2FS here.
I recommend @katinatez's unofficial_twrp_2.8.7.0-bacon-dark.zip.
If using twrp (the one from above) you boot into recovery, go to wipe, advanced wipe, select Data, FS OPTIONS, CHANGE FS, F2FS, then swipe to wipe.
Do the same for cache; wipe, advanced wipe, select Cache, FS OPTIONS, CHANGE FS, F2FS, then swipe to wipe.

Step 2
Boot into recovery and wipe system, data and cache.
Download the rom (found at the bottom of this post).
Download lollipop gapps of your choice.
OPTIONAL:
Download UKM from here for kernel tweaking (install synapse from playstore afterwards).

Step 3
Now to install the rom there are two methods. PS - This can take up to a couple minutes, do not be alarmed if you are on "patching unconditionally" for a bit.
Method A (mtp, easy way)
Enable mtp mode and put your rom and gapps on your phone.
Go to install, find the zips u saved to your phone and install them, rom first.
OR
Method B (adb, harder way)
If you have adb on your pc you can use this method.
Boot into recovery and go to Advanced > ADB sideload.
From you computer open up command prompt and enter the command

Code:


adb devices

to check if computer recognizes your phone.
If not install the adb interface driver manually for your phone.
Use this command to install zips from your pc (rom first):

Code:


adb sideload name_of_file.zip

Repeat with gapps (and ukm if you want it).


DOWNLOAD
- Latest 9/11/2015 Build with TyrCAF v15
- All Builds

Version Information
Status:
ROM - Stable
Kernel - Testing

Created 2015-09-12
Last Updated 2015-09-12

I've tested and verified this to be working on my own phone! If you have any issues I would check the relative rom or kernel threads.



Aucun commentaire:

Enregistrer un commentaire