FORUMS
Remove All Ads from XDA

<DISCONTINUED>[KK 4.4][KERNEL]Stock CM-11.0 with Linaro 4.8 and Mackay TWRP

1,027 posts
Thanks Meter: 1,269
 
By didhiy, Senior Member on 11th December 2013, 10:48 PM
Post Reply Email Thread
Based on discussion on Semaphore Kernel thread, I'm glad that finally compiling using Linaro GCC 4.8 is possible now I've test this several months a go and still not boot until got some new idea arise in that discussion

Maybe this not a daily driver kernel, just feel free to try once and go back to other kernel

Different from stock (changelogs):
build 20140324 for 20140323-NIGHTLY and newer
- Update iniram from 20140323-NIGHTLY
build 20140308 for 20140307-NIGHTLY and newer but not SNAPSHOT-M4
- Merge stock cm-11 & use initram 0307 nightly
build 20140214
- Revert s3cfb: tl2796: do not read calibration data on aries and use s3cfb: tl2796: detect invalid factory calibration data as on stock cm-11
build 20140211
- Add s3cfb: tl2796: do not read calibration data on aries from stock cm-11
- Use newer linaro toolchhain 14.01
- Update recovery to Mackay TWRP 2.6.3.0
build 20140111
- Update ramdisk to Tweak KSM Value
- Merge upstream CM-11
- Use newer linaro toolchhain 13.12
build 20140106
- Update ramdisk with Kitkat zRAM setting
- Fix lpm (charging when phone off)
- Cherry-picked optimize JPEG memory configuration & add ioctl to export memory configuration
- Only build with Mackay TWRP
build 20131231
- Fix outdated init file causing boot problem
build 20131221
- Ramdisk from cm-11-20131219-NIGHTLY-galaxysmtd
build 20131212/16
- Ramdisk from cm-11-20131206-NIGHTLY-galaxysmtd, unpacked using this tools.
- Compiled with linaro-toolchain-binaries 4.8 (32bit)
- Use Mackay TWRP 2.6.0.0 (-mtwrp) or Semaphore CWM 6.0.4.5 (-smcwm)

Additional changes in x-aries version:
Note: Video capture & playback (cma problem with or without ksm) mostly working.
In rare condition it need long time to start (5 minutes or more).
You can wait it if you have time (recommended) or simply restart your phone.
build 20140401
Compiled on this HEAD
- Update iniram from 20140331-NIGHTLY
- Enable KSM_CHECK_PAGE
- Enable Advanced TCP Congestion Control
build 20140324 for 20140323-NIGHTLY and newer
- Update iniram from 20140323-NIGHTLY
build 20140319 for 20140307-NIGHTLY and newer but not SNAPSHOT-M4
Compiled on this HEAD
- Add 2 patches to improve swap & revert aries-common: zRAM: only read one page at a time.
This time I prefer this kernel doc:
Code:
It is a logarithmic value - setting it to zero means "1 page", setting
it to 1 means "2 pages", setting it to 2 means "4 pages", etc.
Zero disables swap readahead completely.

The default value is three (eight pages at a time).  There may be some
small benefits in tuning this to a different value if your workload is
swap-intensive.

Lower values mean lower latencies for initial faults, but at the same time
extra faults and I/O delays for following faults if they would have been part of
that consecutive pages readahead would have brought in.
over aosp guide:
Code:
By default, the Linux kernel swaps in 8 pages of memory at a time.
When using ZRAM, the incremental cost of reading 1 page at a time is negligible and may help in case the device is under extreme memory pressure.
To read only 1 page at a time, add the following to your init.rc:
`write /proc/sys/vm/page-cluster 0`
build 20140313 for 20140307-NIGHTLY and newer but not SNAPSHOT-M4
Builded at this HEAD
- Switch cflag from -Og (reverted to -O2 then) to -O3, the kernel size was much bigger & reduce user RAM to 416MB
- Use newer linaro toolchhain 14.02
- Add aries-common: zRAM: only read one page at a time
imo default linux value will give better performance, but I prefer to follow aosp guide like in stock cm.
build 20140311 for 20140307-NIGHTLY and newer but not SNAPSHOT-M4
- Add 1100 oc step from mackay and 2 other commits.
build 20140308 for 20140307-NIGHTLY and newer but not SNAPSHOT-M4
- Use initram 0307 nightly with 144 mb zram + minor change to cma & merge android-3.0 aosp
build 20140306
- Add 2 commits to improve swap/zram + ramdisk 0228 nightly with 256 mb zram size (not stable)
build 20140226
- Add 2 commits related to video for linux + merge stock cm-11 & android-3.0 aosp
build 20140214
- Same as aries version + some commits related to memory
build 20140212
- Add s3cfb: tl2796: do not read calibration data on aries from stock cm-11
- Add backport SLUB from Linux 3.3 from Hellybean GT-I9300 + another 4 commits.
build 20140209
- Merge android-3.0 kernel common.
- Enable CLEANCACHE, FRONTSWAP & ZCACHE
- Another CMA try.
build 20140207
- Add BLN & Fast Charge from Semaphore kernel.
Note for BLN: Need to manually rename lights.aries.so.bln in /system/lib/hw/ to lights.aries.so
Rename original file to lights.aries.so.cm or else for backup. Repeat this step in every rom flashing.
- Use newer linaro toolchhain 14.01
- Merge android-3.0 kernel common.
build 20140131
A bunch of patches from faux123, semaphore, codeaurora & linux-next, starting from here till this.
Some part maybe useless and here is the noticeable part:
- Update LMK, CMA and KSM.
- Use LZ4 compressor for zram.
- Add Semaphore Auto Brightness from stratosk (build as a module)
build 20140121
- Add ZRAM_FOR_ANDROID from faux123
- Remove KSM to prevent video recording failure
- Use LZ4 for initram
- Update recovery to Mackay TWRP 2.6.3.0
- Some cherry-pick related to CMA, low memory killer & binder
build 20140111
- Same as aries version exclude merge upstream (already added)
- Replace xvmalloc with zsmalloc for zram
build 20140106
- Same as aries version
build 20140105
- Add pawitp cma-test with 417mb memory (no need bigmem libs) and possible bugs.
- Fix lpm (charging when phone off)
build 20131231
- different boot logo
- add smartass2 cpu gov
build 20131221/22
- 1.32ghz OC step and revert sleep call gpio to prevent SOD
- 397mb memory (install bigmem lib by kasper_h separately for 720k video record fix)
- kernel config for smaller kernel size (mostly taken from semaphore kernel by stratosk)
- merged to aosp android-3.0 kernel common (big changes in wifi driver and interactive gov)
- update gpu driver to DDK 1.8@2198402 (as on mackay kernel and others)
- cherry-picked some commits related to zram, lzo and interactive gov
- display boot progress, etc..

Download
http://goo.im/devs/didhiy/aries_cm-11.0
http://goo.im/devs/didhiy/ariesbr_cm-11.0 (I9000B)
tips: check (sort by) modification time to find the latest build


Source:
Kernel
x-aries version
Ramdisk

Credits:
- pawitp
- stratosk
- kasper_h
- derteufel1980
- jugster
- alberto96
- unjustified dev
- all aries variant devs and community
The Following 49 Users Say Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
 
 
12th December 2013, 03:43 AM |#2  
ts1506's Avatar
Inactive Recognized Developer
Flag Kolkata
Thanks Meter: 4,516
 
More
Nice work. I have been looking at the sets of patches needed for Linaro 4.8, but didnt try building one yet.

Last I tried 4.8 was almost 3 months ago, and it didnt boot up, although it build fine.

Would you be willing to add the extra OC steps ( 1100 , 1300 and 1400 ) into the kernel ?
The Following 4 Users Say Thank You to ts1506 For This Useful Post: [ View ] Gift ts1506 Ad-Free
12th December 2013, 09:05 AM |#3  
didhiy's Avatar
OP Senior Member
Flag Jakarta
Thanks Meter: 1,269
 
More
Quote:
Originally Posted by ts1506

Nice work. I have been looking at the sets of patches needed for Linaro 4.8, but didnt try building one yet.

Last I tried 4.8 was almost 3 months ago, and it didnt boot up, although it build fine.

Would you be willing to add the extra OC steps ( 1100 , 1300 and 1400 ) into the kernel ?

maybe... right now, I just let it same as stock to see if there's any improvement
The Following 3 Users Say Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
12th December 2013, 11:27 AM |#4  
Senior Member
Thanks Meter: 18
 
More
just flashed over mackay 4.1.3 and i get better score on antutu, 4985.
keep up good work.
The Following User Says Thank You to florum For This Useful Post: [ View ] Gift florum Ad-Free
12th December 2013, 11:29 AM |#5  
didhiy's Avatar
OP Senior Member
Flag Jakarta
Thanks Meter: 1,269
 
More
Quote:
Originally Posted by florum

just flashed over mackay 4.1.3 and i get better score on antutu, 4985.
keep up good work.

thanks for testing & comparing, I think mackay compiled with linaro 4.8 will scored much better
The Following 3 Users Say Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
15th December 2013, 06:41 AM |#6  
Senior Member
Flag New Delhi
Thanks Meter: 52
 
More
Quote:
Originally Posted by didhiy

thanks for testing & comparing, I think mackay compiled with linaro 4.8 will scored much better

Wow!! That's amazing. See my score. I never managed to go beyond 4930 in the past.

Can you please describe me what is linaro 4.8 and how does it increase performance.
I flashed bigmem libs for KitKat by Kaspar_h but still got 368 MB of available RAM. Maybe it's my fault, but still curious to know if bigmem libs works on this kernel.
Thanks in advance

Sent from my GT-I9000 using XDA Premium 4 mobile app
Attached Thumbnails
Click image for larger version

Name:	1387089652636.jpg
Views:	1345
Size:	35.7 KB
ID:	2455549  
The Following User Says Thank You to Rohitdahiya For This Useful Post: [ View ] Gift Rohitdahiya Ad-Free
15th December 2013, 09:29 AM |#7  
didhiy's Avatar
OP Senior Member
Flag Jakarta
Thanks Meter: 1,269
 
More
Quote:
Originally Posted by Rohitdahiya

Wow!! That's amazing. See my score. I never managed to go beyond 4930 in the past.

Can you please describe me what is linaro 4.8 and how does it increase performance.
I flashed bigmem libs for KitKat by Kaspar_h but still got 368 MB of available RAM. Maybe it's my fault, but still curious to know if bigmem libs works on this kernel.
Thanks in advance

Sent from my GT-I9000 using XDA Premium 4 mobile app

you can read the technical details here:
http://gcc.gnu.org/gcc-4.8/changes.html
in short words, it promising better optimization to the codes compiled with it

the memory size was set inside the kernel, installing bigmem libs won't change the size
The Following 3 Users Say Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
15th December 2013, 10:46 AM |#8  
Nezys's Avatar
Senior Member
Flag Catania
Thanks Meter: 192
 
Donate to Me
More
This kernel is a beast,thank you very much didhiy!
@Rohitdahiya:
You should enable a bigmem setting to make the available amount of RAM bigger.
Flashing only the libs doesn't change the current configuration

Inviato dal mio GT-I9000 utilizzando Tapatalk
The Following 2 Users Say Thank You to Nezys For This Useful Post: [ View ] Gift Nezys Ad-Free
15th December 2013, 01:28 PM |#9  
Senior Member
Thanks Meter: 69
 
More
thank you for the wonderful kernel please make an option to enable bigmem or atleast 396mb as in case of mackay kernel... thank you
The Following 2 Users Say Thank You to vigneshnallamad For This Useful Post: [ View ] Gift vigneshnallamad Ad-Free
22nd December 2013, 03:03 PM |#10  
didhiy's Avatar
OP Senior Member
Flag Jakarta
Thanks Meter: 1,269
 
More
Quote:
Originally Posted by vigneshnallamad

thank you for the wonderful kernel please make an option to enable bigmem or atleast 396mb as in case of mackay kernel... thank you

I've upload a version with "x-" prefix, bigmem enable (397mb) + 1.32GHz oc steps and some configs changes to make a small kernel (mostly taken from semaphore kernel)
let me know if that version works too
download link was on op
The Following User Says Thank You to didhiy For This Useful Post: [ View ] Gift didhiy Ad-Free
22nd December 2013, 03:06 PM |#11  
zakitheracer's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 110
 
More
Does this kernel have zram as it's based on stock?

Sent from my GT-I9000 using Tapatalk 4
Post Reply Subscribe to Thread

Tags
aries-cma, linaro gcc 4.8

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

Advanced Search
Display Modes