[ROM][04/08][CM11.0][Linaro][O3][MeowKernel][TWRP][Fidelity]CM11.0 - Fidelity Edition

Search This thread

Windows X

Senior Member
Sep 27, 2006
743
1,305
Cheers to the first Linaro fully optimized KitKat 4.4.4 ROM I officially released. It took me a few months to fix my phone and get everything working below.

Features:
-jeroenqui’s Meow Kernel
-TWRP 2.7 Recovery
-Changed audio priority level to highest possible
-Compiled using latest Linaro toolchain version 4.7 and its own NDK
-Compiled with Linaro’s customized O3 optimizations with strict aliasing for both ROM and kernel
-Most strict-aliasing fixes are actual fixes from SlimSaber and my own
-High performance compiler flags optimizations
-Added bionic/framework optimizations from Linaro commits
-Fidelity Driver optimizations having
|-Added board audio optimizations for low latency/fluence/separated audio
|-Increased kernel’s audio clock synchronization frequency
|-Removed start threshold in HAL layer
|-Default sampling rate is set to 44100Hz
|-Reduce number of periods in kernel configuration

Changelog (aside from Cyanogenmod updates)

04/08/2014
-Added audio clock tweaks in kernel
-Added more bionic tweaks
-Applied full strict aliasing in kernel
-Removed audio driver tweaks for time being
-ROM will now use Linaro 4.7 toolchain for stable release
-Updated NDK to most recent version

22/03/2014
-Added full Linaro optimizations in other files like mips/x86
-Fixed bluetooth audio not working with Fidelity optimizations
-Fixed USB audio instability issue
-Improved proper strict-aliasing fix in Alsa Audio
-Kernel will be compiled with 4.7 toolchain and ROM with 4.8 ones
-Re-optimized CM11 Fidelity optimizations again from scratch after audio stuttering being fixed
-Updated NDK and Linaro toolchains to most recent version

07/02/2014
-Most Linaro strict aliasing fixes are actual fixes not spamming fno-strict-aliasing
-Added bionic/framework optimizations from Slimsaber's Linaro commits
-Updated compiler flag optimizations from SaberMod tweaks
-Updated MEOW-Kernel from latest commit
-Updated Linaro toolchain to version 2014.01
-Changed toolchain version back to 4.7 since 4.8 is yet to be stable
-Removed kernel's strict-aliasing optimizations to fix unstable cellular network
-Fidelity optimizations re-configured for CM11 compatibilities with changes below
|-Increased default buffer size to 4096 to fix stuttering problem
|-Removed start threshold in HAL layer
|-Default sampling rate is set to 44100Hz
|-Reduce number of periods in kernel configuration

12/12
-Updated Linaro toolchain to version 13.11

15/11
-Reverted ROM's toolchain to previous ones fixing broken ROM

11/11
-Updated Linaro toolchains to most recent version (also daily build ones)

10/11
-Added MEOW-kernel as I forgot to add it in previous build
-One more repository patched for Linaro optimizations

10/02
-Fixed A2DP audio devices like bluetooth not working properly
-Fixed partition bugs in TWRP
-Full Linaro optimizations with both arm/linux toolchains and NDK
-Improved Alsa audio optimizations
-Improved compiler flags optimizations with Linaro Toolchain 4.8
-Updated Linaro components to version 13.09

09/23
-Actually compiled with Linaro 4.8 toolchain version 13.08 for this time (last one was 13.07)
-Added Xperia Tablet Z (Wi-Fi) support
-Fixed some strict aliasing errors in kernel with new updates without removing any warning error
-Meow Kernel is now synced with github's repo

09/14
-Applied Meow Kernel optimizations
-Updated Cyanogenmod 10.2 ROM
-Updated Linaro 4.8 toolchain to version 13.08
-Updated TWRP to 2.7 branch

07/29
-Changed default sampling rate to 44100Hz again without breaking Bluetooth Audio
-Fixed forgetting to apply O3 optimizations for kernel
-Updated Linaro Toolchain 4.8 to version 13.06

07/21
-Increased default audio buffer from 256 to 1024 to fix music playback stuttering sound during screen on
-Kernel will be default CM kernel with audio tweaks for time being as jeroenqui's kernel is broken right now
-Reverted changing default sampling rate to 44100 to fix Bluetooth Audio and some DSP problems

07/06
-Added Linaro cortex string handling routines optimizations
-Added low latency optimizations for FM/record/voice call
-Added low-level kernel optimizations for even better low latency audio
-Changed audio priority level to highest possible
-Enabled low latency audio in build configuration
-Optimized default buffer and period size for lower latency

06/17
-Initial release

Download: cm-11.0-20140804-UNOFFICIAL-yuga.zip | gapps

This ROM doesn’t come with Google apps so flash it after this ROM if you intend to use them. Using Fidelity Z 6.0 with this ROM is highly recommended.
 
Last edited:

sacredsoul

Senior Member
Feb 17, 2007
1,896
565
Singapore
After deciding to leave stock ROM permanently for better use Xperia Z, I tried searching for existing non-stock ROM and must say I may need to build some for my own. Here's what I've done so far based on CM10.1 repository

Finished:
-Applied DooMKernel's CPU frequency tweak having minimum frequency at 192MHz and OC up to 1.7GHz
-Added Wheatley governor
-Changed default governor to Wheatley and I/O scheduler to Row
-Compiled using Linaro Toolchain 4.8

To do:
-Change audio output sampling rate to 44100Hz instead of 48000Hz
-Optimize audio driver for better audio performance
-Optimize USB audio driver
-Some more kernel mods for faster and lower latency I/O if possible

Suggestions are welcome but keep in mind that my main focus is to build a ROM for better sound without addons and UI tweaks. Any tips improving ROM for better audio and battery-life are greatly appreciated :)

Might I suggest, if it's possible, to compile the mods into a flashable zip for CM10.1 roms?
 

ckyy

Senior Member
May 16, 2013
834
225
More governors and undervolting would be great

Gesendet von meinem C6603 mit Tapatalk 2
 

djselbeck

Senior Member
Jun 28, 2011
129
76
Have you changed the samplerate of the kernel driver because I'm not sure the HW of snapdragon supports 44.1kHz ? Or just the userland?
 

Windows X

Senior Member
Sep 27, 2006
743
1,305
Maybe it needs to be used with whole ROM. This is heavily optimized Linaro ROM+kernel so things may not work outside this ROM. It took me week to figure out what caused call problem with O3. WiFi worked fine after flashing whole ROM package.
 
Last edited:

vibranze

Inactive Recognized Developer
Feb 22, 2007
1,377
84
Singapore
vibranze.blogspot.com
Hi,
I am confuse with this statement "Using Fidelity Z 4.0 with this ROM is highly recommended.". This is AOSP ROM and Fidelity Z 4.0 is for stock ROM, are they supposed to be installed together? Thanks.
 

Windows X

Senior Member
Sep 27, 2006
743
1,305
Fidelity Z 4.0 can flash on any ROM now but not guaranteed to work well with customized ROM. I flashed it on CM10.1 and all went well.
 
  • Like
Reactions: vibranze

xIceCream

Senior Member
Jun 1, 2011
668
94
Singapore
How's the camera quality, and are there any options of customization(halo, widget on lockscreen, etc ) ? Are they any cm bugs? ie: lockscreen delay, volume on speaker ( as told in the other threads ), etc
I'm thinking about stock or cm10.1.
What's your reason for leaving stock permanently?
 
Last edited:

Windows X

Senior Member
Sep 27, 2006
743
1,305
This is stock CM10.1 ROM so no halo/widget/PIE. All bugs in CM10.1 up to now will be the same with this ROM. I have modded kernel and TWRP applied with Linaro and audio driver optimizations. Stuff like Halo/PIE may break O3 code optimizations so I'd rather stick with CM10.1 and check for user feedback for now.

The reason I made this ROM is to experiment CM10.1 with full Linaro optimizations. People in Nexus 4 getting GAWR about full Linaro O3 ROM so it'd be such a shame to Yuga having same CPU and board but no love for CM10.1 Linaro O3 at all.

As for why I left stock ROM, screen and camera suck so bad and web browsing is very lag. Plus, there's nothing more I can toy with stock ROM.
 
Last edited:

bbeanss

Senior Member
May 9, 2011
395
172
Coventry
I have an issue with the latest release, sometimes after deep sleep the lockscreen is all wierd, there's no slider to unlock the phone at all and if you press anything on the screen it instantly reboots the shell I flashed by doing a full wipe, flashed ROM, Fidelity package then gapps, nothing more.

Any solutions?

P.S. The camera freezes from time to time and to get it to work again you have to wipe gallery data, if I find anything else I'll lrt you know.

Beans

Sent from my C6603 using xda premium
 

cfbruck

Senior Member
Jan 23, 2013
101
11
I'm curious, but just so I know what steps to install.

I am now on monx's rom based on the leaked 4.2.2 (.407)

If I

1) flash the cm10.1 boot.img (from the cm10.1 thread) via fastboot
2) flash this via recovery
3) flash fidelity z 4.0

I should be fine?

many thanks
 
Last edited:

Windows X

Senior Member
Sep 27, 2006
743
1,305
yeah that should do it but keep in mind that Linaro optimizations is still experimental project. No one ever actually made full Linaro optimized ROM for Xperia Z before. Some may use toolchain but not suggested -O3 with strict aliasing for whole ROM cuz lots of things gonna break.

If things get too rough, I will compile the updates with 4.7 instead for the next time.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Cheers to the first Linaro fully optimized KitKat 4.4.4 ROM I officially released. It took me a few months to fix my phone and get everything working below.

    Features:
    -jeroenqui’s Meow Kernel
    -TWRP 2.7 Recovery
    -Changed audio priority level to highest possible
    -Compiled using latest Linaro toolchain version 4.7 and its own NDK
    -Compiled with Linaro’s customized O3 optimizations with strict aliasing for both ROM and kernel
    -Most strict-aliasing fixes are actual fixes from SlimSaber and my own
    -High performance compiler flags optimizations
    -Added bionic/framework optimizations from Linaro commits
    -Fidelity Driver optimizations having
    |-Added board audio optimizations for low latency/fluence/separated audio
    |-Increased kernel’s audio clock synchronization frequency
    |-Removed start threshold in HAL layer
    |-Default sampling rate is set to 44100Hz
    |-Reduce number of periods in kernel configuration

    Changelog (aside from Cyanogenmod updates)

    04/08/2014
    -Added audio clock tweaks in kernel
    -Added more bionic tweaks
    -Applied full strict aliasing in kernel
    -Removed audio driver tweaks for time being
    -ROM will now use Linaro 4.7 toolchain for stable release
    -Updated NDK to most recent version

    22/03/2014
    -Added full Linaro optimizations in other files like mips/x86
    -Fixed bluetooth audio not working with Fidelity optimizations
    -Fixed USB audio instability issue
    -Improved proper strict-aliasing fix in Alsa Audio
    -Kernel will be compiled with 4.7 toolchain and ROM with 4.8 ones
    -Re-optimized CM11 Fidelity optimizations again from scratch after audio stuttering being fixed
    -Updated NDK and Linaro toolchains to most recent version

    07/02/2014
    -Most Linaro strict aliasing fixes are actual fixes not spamming fno-strict-aliasing
    -Added bionic/framework optimizations from Slimsaber's Linaro commits
    -Updated compiler flag optimizations from SaberMod tweaks
    -Updated MEOW-Kernel from latest commit
    -Updated Linaro toolchain to version 2014.01
    -Changed toolchain version back to 4.7 since 4.8 is yet to be stable
    -Removed kernel's strict-aliasing optimizations to fix unstable cellular network
    -Fidelity optimizations re-configured for CM11 compatibilities with changes below
    |-Increased default buffer size to 4096 to fix stuttering problem
    |-Removed start threshold in HAL layer
    |-Default sampling rate is set to 44100Hz
    |-Reduce number of periods in kernel configuration

    12/12
    -Updated Linaro toolchain to version 13.11

    15/11
    -Reverted ROM's toolchain to previous ones fixing broken ROM

    11/11
    -Updated Linaro toolchains to most recent version (also daily build ones)

    10/11
    -Added MEOW-kernel as I forgot to add it in previous build
    -One more repository patched for Linaro optimizations

    10/02
    -Fixed A2DP audio devices like bluetooth not working properly
    -Fixed partition bugs in TWRP
    -Full Linaro optimizations with both arm/linux toolchains and NDK
    -Improved Alsa audio optimizations
    -Improved compiler flags optimizations with Linaro Toolchain 4.8
    -Updated Linaro components to version 13.09

    09/23
    -Actually compiled with Linaro 4.8 toolchain version 13.08 for this time (last one was 13.07)
    -Added Xperia Tablet Z (Wi-Fi) support
    -Fixed some strict aliasing errors in kernel with new updates without removing any warning error
    -Meow Kernel is now synced with github's repo

    09/14
    -Applied Meow Kernel optimizations
    -Updated Cyanogenmod 10.2 ROM
    -Updated Linaro 4.8 toolchain to version 13.08
    -Updated TWRP to 2.7 branch

    07/29
    -Changed default sampling rate to 44100Hz again without breaking Bluetooth Audio
    -Fixed forgetting to apply O3 optimizations for kernel
    -Updated Linaro Toolchain 4.8 to version 13.06

    07/21
    -Increased default audio buffer from 256 to 1024 to fix music playback stuttering sound during screen on
    -Kernel will be default CM kernel with audio tweaks for time being as jeroenqui's kernel is broken right now
    -Reverted changing default sampling rate to 44100 to fix Bluetooth Audio and some DSP problems

    07/06
    -Added Linaro cortex string handling routines optimizations
    -Added low latency optimizations for FM/record/voice call
    -Added low-level kernel optimizations for even better low latency audio
    -Changed audio priority level to highest possible
    -Enabled low latency audio in build configuration
    -Optimized default buffer and period size for lower latency

    06/17
    -Initial release

    Download: cm-11.0-20140804-UNOFFICIAL-yuga.zip | gapps

    This ROM doesn’t come with Google apps so flash it after this ROM if you intend to use them. Using Fidelity Z 6.0 with this ROM is highly recommended.
    7
    Seems to be ART issue. Some dalvik tweaks caused it. I'll fix Fidelity mod with art in v7.
    6
    First time using latest Linaro 4.8 stuff for both ROM/Kernel with ART. Feeling awesome so far. Still have no luck with kernel's strict aliasing though. Good to see that MEOW-Kernel commit still worked with recent CM11 updates. I'll be back to my house soon so release should come up in next week.
    6
    CM11 ROM released in http://www.windowsxlive.net/xperia-ztablet-z-cyanogenmod-11-0-fidelity-edition-build-20140207/ with the following changes below

    -Most Linaro strict aliasing fixes are actual fixes not spamming fno-strict-aliasing
    -Added bionic/framework optimizations from Slimsaber's Linaro commits
    -Updated compiler flag optimizations from SaberMod tweaks
    -Updated MEOW-Kernel from latest commit
    -Updated Linaro toolchain to version 2014.01
    -Changed toolchain version back to 4.7 since 4.8 is yet to be stable
    -Removed kernel's strict-aliasing optimizations to fix unstable cellular network
    -Fidelity optimizations re-configured for CM11 compatibilities with changes below
    |-Increased default buffer size to 4096 to fix stuttering problem
    |-Removed start threshold in HAL layer
    |-Default sampling rate is set to 44100Hz
    |-Reduce number of periods in kernel configuration

    I'll update Fidelity Z ROM patch sometimes later with ART optimizations and some fixes with stock ROM.
    6
    I'm back now. Compiling ROMs with MEOW-kernel and latest updates from CM at the moment. ;)