FORUMS
Remove All Ads from XDA

 View Poll Results: Do you want more CPU governors?

YES
 
66 Vote(s)
61.11%
NO
 
42 Vote(s)
38.89%

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

1,020 posts
Thanks Meter: 772
 
By Vynikal, Senior Member on 3rd July 2014, 07:18 PM
Post Reply Email Thread
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:
Quote:

- 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
The Following 45 Users Say Thank You to Vynikal For This Useful Post: [ View ] Gift Vynikal Ad-Free
3rd July 2014, 07:19 PM |#2  
Vynikal's Avatar
OP Senior Member
Thanks Meter: 772
 
More
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.
The Following 18 Users Say Thank You to Vynikal For This Useful Post: [ View ] Gift Vynikal Ad-Free
3rd July 2014, 07:19 PM |#3  
Vynikal's Avatar
OP Senior Member
Thanks Meter: 772
 
More
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 rebase branch, 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 here
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
Quote:

<project name="LegacyXperia/android_kernel_semc_msm7x30" path="kernel/semc/msm7x30"/>

and change it to this
Quote:

<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://devhost.xda-developers.com/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.
The Following 17 Users Say Thank You to Vynikal For This Useful Post: [ View ] Gift Vynikal Ad-Free
3rd July 2014, 07:39 PM |#4  
Quote:
Originally Posted by Vynikal

For the glory of satan, of course

Before somebody else says this, let me have the honor

How about for other MDPI devices too?
3rd July 2014, 07:47 PM |#5  
Vynikal's Avatar
OP Senior Member
Thanks Meter: 772
 
More
Quote:
Originally Posted by rahimali

Before somebody else says this, let me have the honor

How about for other MDPI devices too?

In FAQ
The Following 3 Users Say Thank You to Vynikal For This Useful Post: [ View ] Gift Vynikal Ad-Free
3rd July 2014, 11:13 PM |#6  
T3sla's Avatar
Senior Member
Flag Thessaloniki
Thanks Meter: 97
 
More
Quote:
Originally Posted by Vynikal

... If you want to build for your device by yourself, I can make a detailed guide. ...

A detailed guide would be nice...
4th July 2014, 12:38 AM |#7  
cethine's Avatar
Senior Member
Flag Sakarya
Thanks Meter: 16
 
More
Thanks. I will try.
4th July 2014, 12:47 AM |#8  
djborek's Avatar
Senior Member
Flag Warszawa
Thanks Meter: 40
 
More
Screenshoot pls.
4th July 2014, 03:43 AM |#9  
evil.demon_s's Avatar
Senior Member
Thanks Meter: 739
 
More
So atlast finally you have released it

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


Sent from my WT19i using XDA Premium 4 mobile app
4th July 2014, 03:51 AM |#10  
vj.xtha's Avatar
Senior Member
Flag Kathmandu
Thanks Meter: 28
 
More
Angry 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...
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

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..
4th July 2014, 06:53 AM |#11  
SurajH's Avatar
Senior Member
Thanks Meter: 965
 
More
Just want to know what other things change in Rom itself other than kernel and archis optimization..
Any new script or mod
Because want to try kernel but just confused with flashed whole Build OR just kernel with july 3 CM11 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
What the wrong with preview Dev
I think its because of kernel

And also first boot RAM free is less than CM11
as i got 190MB in CM11 and here only 130MB
The Following User Says Thank You to SurajH For This Useful Post: [ View ] Gift SurajH Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes