[!UPDATE!][MOGAMI][KERNEL][ROM]//OptKernel\\[27.12.2014]

Do you want more CPU governors?

  • YES

    Votes: 65 61.9%
  • NO

    Votes: 40 38.1%

  • Total voters
    105

Vynikal

Senior Member
Sep 29, 2012
1,021
763
143
Hello community,
for some time I have been trying to make perfomance friendly kernel and ROM. I obviously haven't missed JustArchi's discovery - O3 compiling flags. Although I was first sceptic, after some days of testing (and feedbacks from brave testers) I found out this is truly masterpiece. After adding some kernel tweaks, here is result - OptKernel. Read more...

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or your mom shouting at you, because of you not being
 * able to wipe browser history. 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, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
Features:
- Based on LX rebase branch, brings kernel to upstream (3.4.103) and includes various fixes.
- compiled with Linaro 4.7.4
- both ROM and kernel compiled with JustArchi's optimizations (*)
- overclocked up to 1.6 GHz, underclocked down to 24 MHz
- added Dynamic FSync by faux123
- 1024 KB read-ahead
- Dynamic dirty-page writeback by Christopher83
- Fast charge available (disabled by default)
- added FRandom module
- enabled Zsmalloc
- added governors (list in changelog)
- ability to undervolt separate frequencies via VDD interface
- lowered swappiness
- Optimized read/write semaphore
- Used glibc version of memcpy/memmove (much faster than original one)
- power_efficient workqueues

And of course all features of LegacyXperia as in 20141224 sources

BUGS:
Proximity sensor doesn't work most of the time
(*) except for /hardware/qcom/display-caf/libhwcomposer, because of compile errors.

Almost all features are detaily explained in Christopher83's thread (hit thanks to him)

NOTE:
- It is not mandatory to use OptKernel only with this ROM.
The only feature of the ROM are -O3 flags and 4.8 toolchain. All other features are implemented in the kernel.
You can use OptKernel with LX's 1224 build, just flash wifi modules (2rd post). Still, this ROM is really fast, worth a try ;)
- Don't report issues on LX bugtracker if you do so.
- Don't ask for ETA!
I don't know when (if) I'll release! I won't respond, even worse, I'll report you!
- I am not a developer. Everything I've done was only about searching and cherry-picking general improvements.


>>DOWNLOAD<<

SOURCE:
https://github.com/Vynikal/android_kernel_semc_msm7x30

CREDITS:
mikeioannina for base ROM
@Dark Raven for more-RAM idea
Christopher83 for many ideas and a load of patches
JustArchi for great optimizations
@mdfzhi for inspiration
Everybody for cherry-picks
+ all brave testers :D
 
Last edited:

Vynikal

Senior Member
Sep 29, 2012
1,021
763
143
FAQ:

Will you build it for <device>?
I have slow pc, so I can't make it for too many devices. You are free to build by yourself.

Why is ROM/kernel so big?
Because -O3 flags are taking additional hunks of data. More info at Archi's thread. Don't worry, it will install fine. ;)

Can I use your ROM as a base?
Yeah, you're clear. Just add me to credits. :)

Will you add <governor/io_sched>?
I personally don't like too many governors, but if you want any, post it here.

Why aren't all those tweaks already in LX CM11?
Because they are experimental and maybe unstable. Mike wants to make stable builds for all.

My wifi is not working!
Flash modules (in Drive folder)

How can I help you?
1. Every problem you face report with logs.
2. If you have enough knowledge, help with improving code on Github.
3. If you want to donate, donate to Mike instead. Without him, this kernel wouldn't exist.
 
Last edited:

Vynikal

Senior Member
Sep 29, 2012
1,021
763
143
CHANGELOG
Code:
20141227
- read-ahead set to 1024 KB
- Kernel compiled with Linaro 4.7.4
- Whole ROM "crushed" with pngcrucher - size decreased by (much needed) 20 MB
- Features of LX 20141224

20140906
- free RAM is now at LX level (to see if bugs will disappear)
- in ROM, some perfomance flags enabled
- also in ROM, disabled low_RAM prop
- updated kernel to .103

20140807
- Completely rebased on LX [URL="https://github.com/LegacyXperia/android_kernel_semc_msm7x30/commits/rebase"]rebase branch[/URL], this includes:
       - Kernel fully updated to upstream to 3.4.96
       - Various fixes
       - (By me) More patched to upstream (now .101) and updated all features from LX branch.
- Add some toolchain improvements and compiled with newest SaberMod 4.9
- Fast charge support
- Fix camcorder preview lag (RAM decreased by some MB)
- More undervolt

20140719
- Underclock down to 24 MHz
- Undervolt many frequencies
- VDD interface (allows manually change voltage of separate frequencies)
- Lowered swappiness
- New CPU governors - InteractiveX, OndemandX, Lionheart, Lulzactive, Hyper, Brazilianwax, Intellidemand
- Bumped RAM to 433 MB (lowered SF_SIZE)
- Optimized read/write semaphore
- Used glibc version of memcpy/memmove (much faster than original one)
- power_efficient workqueues
many other things, check [URL="https://github.com/Vynikal/android_kernel_semc_msm7x30/commits/OptKernel"]here[/URL]
all features of LX kernel 0718

20140703
- Initial release
HOW TO BUILD
1. follow this guide up to "repo sync" (don't execute it)

2. Open /.repo/local_manifests/semc.xml (hidden, press Ctrl+H)
Find this line
<project name="LegacyXperia/android_kernel_semc_msm7x30" path="kernel/semc/msm7x30"/>
and change it to this
<project name="Vynikal/android_kernel_semc_msm7x30" path="kernel/semc/msm7x30" revision="OptKernel-rebase"/>
3. Now sync repositories (depends on your internet connection)
Code:
repo sync
4. Run this
Code:
curl https://raw.githubusercontent.com/LegacyXperia/local_manifests/cm-11.0/updates.sh > ~/android/system/updates.sh
chmod a+x updates.sh
./updates.sh
And this
Code:
cd ~/android/system/vendor/cm
./get-prebuilts
5a. Download source.zip, unpack it to the root of your source and overwrite all.
5b. Run this, to give correct permissions to pngcrusher
Code:
chmod a+x build/tools/releasetools/pngcrusher
6a. Download SaberMod 4.8 toolchain and unpack them to /prebuilts/gcc/linux-x86/arm/
http://d-h.st/qsd
6b. For kernel toolchain, use a Linaro 4.7 toolchain (I use Christopher83's). Then put it to the folder above and rename to "arm-eabi-4.8"

7a. Build ROM (takes long time)
Code:
. build/envsetup.sh
breakfast <your_device>
brunch <your_device>
7b. To build only kernel (much shorter)
Code:
. build/envsetup.sh
breakfast <your_device>
make -j4 bootimage
8. Zip/kernel is in /out/target/product/<your_device> ready to install

If you found this guide wrong, got error or anything, write it down this thread.
 
Last edited:

evil.demon_s

Senior Member
Jan 2, 2013
646
721
0
So atlast finally you have released it
:D
Bt does it have everything which is present in 0703 build....????
Cz 0703 build itself is very smooth... and with this...it would just fly
:D

Sent from my WT19i using XDA Premium 4 mobile app
 

vj.xtha

Senior Member
May 8, 2013
151
26
0
Kathmandu
Awesome!!

431 MB RAM..impressivee..if there were something..like overclocking the RAM like overclocking CPU...these devs would possibly make 512 MB RAM incresint to 1 GB RAM haha... :p :silly:
Great rom by the way..blazing fast..but 1 problem,,,i always get bootloop whenever i try to switch to ART on clean install without any apps installed on internal...any possible solution for this?? just wanna try it with INT2EXT :eek:

1 problem with camera..whenever i take pic at night there is flash but..the final image is totally black with your rom..and whenever i stop recording the video camera force closes!
this bug wasn't on mikes 20140703 build!!..so fix this dude..
 
Last edited:

SurajH

Senior Member
Sep 4, 2012
1,213
965
0
Just want to know what other things change in Rom itself other than kernel and archis optimization..
Any new script or mod :confused:
Because want to try kernel but just confused with flashed whole Build OR just kernel with july 3 CM11 :confused:build

(*) except for /hardware/qcom/display-caf/libhwcomposer, because of compile errors.
u post this
But it is really matter?
any issue because of this miss?
Downloading Now give u report back.
Thanks for awesome share Dev.

---------- Post added at 11:23 AM ---------- Previous post was at 10:49 AM ----------

One issue got after fresh install that
In Camera at the time video recording preview not shown its only stopped screen not showing anything but after recording complete the Output result gives nice video like CM11 only:p
What the wrong with preview Dev:confused:
I think its because of kernel:eek::rolleyes:

And also first boot RAM free is less than CM11
as i got 190MB in CM11 and here only 130MB
 
Last edited:
  • Like
Reactions: priendy

Tomi_Ohl

Senior Member
Feb 12, 2013
555
361
63
Komárno
Allow others to build and share them

@Vynikal you say you won't make builds for more devices. But will you allow to others to compile roms and kernels with your changes and share them here? So that if someone would compile for mango. Then he would upload it and PM the link to you. Then you'd add the link to the OP. If this could be done, many-many users would be happy:victory:

EDIT: I see that you are Czech, sme susedia;)
 
Last edited:

SurajH

Senior Member
Sep 4, 2012
1,213
965
0
Mine only issue is new Theme manager not set the themes correctly basically the CM11 theme only
Need to restart device for correctly set BUT after second OR third reboot it again set to default:crying::eek:
What the exact cause:confused:
Before that NO issues occurs with themes
Only working theme correctly till now is Atomic Green+ which is Basically CM10.2 theme with CM11 addons:p
HELP ME:rolleyes:
 
  • Like
Reactions: SamFox

Vynikal

Senior Member
Sep 29, 2012
1,021
763
143
As I said, all features are clearly performance stuff, small bugs are risk, but expected.
I don't know about themes, I only use Xperia Z2 theme, works fine for me.
About libhwcomposer - it is not important, just a note for devs that there is a bit, which needed old -Os flag.
About camcorder FC. I will look at it, but not much chance.
I have compiled for smultron, will upload today. Also for mango, but only kernel.

Sent from my WT19i using XDA Free mobile app
 

Grof87

Senior Member
May 29, 2013
246
62
0
Tried to download smultron build 2 times and both times got an error after 40/50MB of download.

EDIT: Tried it for the 3rd time but still no luck. I was able to download the kernel.
 
Last edited: