Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,165 Members 43,566 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL] vz-oc-linaro kernel v4: CM10.1 overclocking kernel - Linaro build

Tip us?
 
vanja_z
Old
(Last edited by vanja_z; 19th April 2013 at 07:20 PM.)
#1  
Senior Member - OP
Thanks Meter 133
Posts: 125
Join Date: Oct 2012
Thumbs up [KERNEL] vz-oc-linaro kernel v4: CM10.1 overclocking kernel - Linaro build

Introduction
This is a replacement kernel for CyanogenMod 10 and 10.1 evita builds. The kernel is designed to be as close as possible to the stock CyanogenMod kernel with a few improvements.

Linaro toolchain:
The kernel is compiled with the latest Linaro toolchain based on gcc 4.7 rather than the default Android toolchain. This may provide performance improvements in some situations. I have made a few patches applied to make it compatible with gcc 4.7.

Overclock:
The highest frequency now available under Settings -> Performance with these kernels is,
Code:
CPU: 1782 MHz 1.25 V
L2:  1350 MHz 1.15 V
BUS:  532 MHz
I've also included a modified thermald.conf in the flashable zip.

Refresh rate:
I've reverted the refresh rate to the original value from the sense source code (57 Hz). This works better when "Disable HW overlays" is selected.

Downloading and installing
Download the flashable zip,

cm10.1_vz-oc-linaro.4.zip MD5=7233ccffa17fa16a2dc6292ecf755fb4
mega.co.nz
ubuntuone.com

Older versions:
cm10.1_vz-oc-linaro.3.zip MD5=5e0efdfd0390f3f923090a574d142808
mega.co.nz
ubuntuone.com
cm10.1_vz-oc.2.zip MD5=cf2c4ee8ba09627e598b78dcea225d39
cm10.1_vz-oc-linaro.2.zip MD5=2931cc59515949fa461a89ea17c99328
vz-oc.1.zip MD5=2f1740d67cd1d5c02a7ac5489bafe7a0
vz-oc.2.zip MD5=4e4d444130e8eb71c27cc23fed65fc88
vz-oc-linaro.1.zip MD5=ca674641e05595e64698afda8aa02943
vz-oc-linaro.2.zip MD5=2b01472d00e069c53f934c30b49475d1
cm10.1_vz-oc.1.zip MD5=576db9e99b2289dae7fc5b548a0d61b4
cm10.1_vz-oc-linaro.1.zip MD5=1a5f3b50608e6b44da50829b2c04ec5c

If you have HBOOT earlier than 1.14 or have S-OFF, then you can just flash the zip from recovery. This will flash the kernel as well as all required modules and thermald.conf. Otherwise, HBOOT 1.14 users will need to extract the boot.img, enter bootloader mode and run
Code:
fastboot flash boot boot.img
Then you will also need to flash the zip to get modules and themald.conf.

Compatability
cm10.1_vz-oc-linaro.4 is compatible with CM10.1 UNOFFICIAL build from 16/04/2013 onwards.
cm10.1_vz-oc-linaro.3 is compatible with CM10.1 NIGHTLY build from 01/03/2013 onwards.
cm10.1_vz-oc.2 (and linaro) are compatible with CM10.1 NIGHTLY build from 19/02/2013 only.
cm10.1_vz-oc.1 (and linaro) are compatible with CM10.1 UNOFFICIAL build from 06/02/2013 only.
vz-oc.2 (and linaro) are compatible with CM10 NIGHTLY builds from 26/12/2012 to 13/01/2013.
vz-oc.1 (and linaro) are compatible with CM10 NIGHTLY builds from 28/11/2012 to 25/12/2012.

Future development
I hope to introduce GPU overclocking soon and there will be updated builds as
soon as changes come into the main CyanogenMod repo.

Building the kernel
For those who would like to build the kernel themselves, here are some basic
instructions. First you will need to acquire some tools. You can get the default
toolchain from the CM10 source code at,
Code:
system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/
Otherwise, if you want to use the Linaro toolchain, you can get it at
Linaro toolchain
You will also need a working boot image to get the ramdisk from. You can build
mkbootimg using these instructions
building mkbootimg
Finally, you can get split_bootimg_pl from William Encks site
download split_bootimg_pl
Clone the repo and change to your desired branch
Code:
git clone https://github.com/vanja-zecevic/android_kernel_htc_msm8960.git
git checkout jellybean-oc
Now export an environmental variable pointing to your desired toolchain
Code:
export CCOMPILER=$PATH_TO_TOOLCHAIN/bin/arm-eabi-
Copy the config file, run menuconfig once and start the build replacing -j12
with your desired number of threads
Code:
cp ./config-oc ./.config
make ARCH=arm SUBARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig
make ARCH=arm SUBARCH=arm CROSS_COMPILE=$CCOMPILER -j12
Extract a ramdisk from a working boot image and repack with your freshly built
kernel using the following command for cm10,
Code:
./split_bootimg_pl ./boot.img
./mkbootimg --base 0x80400000 --ramdiskaddr 0x81800000 \
  --cmdline 'console=ttyHSL0,115200,n8' \
  --kernel arch/arm/boot/zImage --ramdisk boot.img-ramdisk.gz \
  -o boot_vz-oc.img
cm10.1 will need the following cmdline
Code:
--cmdline 'console=ttyHSL0,115200,n8  androidboot.hardware=qcom'
You are ready to flash your new kernel!

Contact
I hope you enjoy using this kernel! Please also visit the github page for this project for alternative download links and for the source code.

GitHub

Cheers,
Vanja
Attached Files
File Type: zip vz-oc.1.zip - [Click for QR Code] (5.43 MB, 63 views)
File Type: zip vz-oc.2.zip - [Click for QR Code] (5.43 MB, 60 views)
File Type: zip vz-oc-linaro.1.zip - [Click for QR Code] (5.30 MB, 19 views)
File Type: zip vz-oc-linaro.2.zip - [Click for QR Code] (5.30 MB, 48 views)
File Type: zip cm10.1_vz-oc.1.zip - [Click for QR Code] (5.47 MB, 38 views)
File Type: zip cm10.1_vz-oc-linaro.1.zip - [Click for QR Code] (5.34 MB, 70 views)
File Type: zip cm10.1_vz-oc.2.zip - [Click for QR Code] (5.48 MB, 136 views)
File Type: zip cm10.1_vz-oc-linaro.2.zip - [Click for QR Code] (5.35 MB, 246 views)
The Following 22 Users Say Thank You to vanja_z For This Useful Post: [ Click to Expand ]
 
mlaws90
Old
#2  
mlaws90's Avatar
Senior Member
Thanks Meter 2202
Posts: 1,288
Join Date: May 2012
Location: Chicago, IL
Looks good will give it a shot next time I'm on a CM10 based ROM. Will this only work on CM10 or will it work with other AOSP builds too?

Sent from my HTC One X using Tapatalk 2
goo.im/devs/mlaws90 - hammerhead, flo, m7 builds
Primary Device: Nexus 5
ROM1: AICP v3.5 Nightly [04/07]
Tablet: Google Nexus 7 FHD
ROM1: ParanoidSaberDroid AOSPAL 4.2 Beta 3

 
superchilpil
Old
(Last edited by superchilpil; 27th December 2012 at 06:24 PM.)
#3  
superchilpil's Avatar
Senior Member
Thanks Meter 1204
Posts: 3,742
Join Date: Sep 2009
Location: Texas

 
DONATE TO ME
1. Could you post flash able zips for the majority of us who can flash these in recovery?

2. Very few users including myself have issues with kernels without stock voltage values. The device will just not boot, any way to have separate versions without different voltages just to rule that issue out when people ask why their device won't boot?


Sent from my One X using Tapatalk 2
=========================

AT&T HTC One

Help me fill up my thanks meter by hitting thanks
==================================================
The Following User Says Thank You to superchilpil For This Useful Post: [ Click to Expand ]
 
badvcr
Old
#4  
Member
Thanks Meter 19
Posts: 87
Join Date: Apr 2010
Quote:
Originally Posted by superchilpil View Post
1. Could you post flash able zips for the majority of us who can flash these in recovery?

2. Very few users including myself have issues with kernels without stock voltage values. The device will just not boot, any way to have separate versions without different voltages just to rule that issue out when people ask why their device won't boot?


Sent from my One X using Tapatalk 2
+1 thank you

Straight talked from my HOX!
The Following User Says Thank You to badvcr For This Useful Post: [ Click to Expand ]
 
Koizuma
Old
#5  
Koizuma's Avatar
Senior Member
Thanks Meter 63
Posts: 725
Join Date: Jun 2011
Location: South Texas
I like the idea of a stockish CM10 OC kernel, Me myself i underclock. I would give this a go see how it holds up. the increase in clock speed is usually a nice thing to have even if not used. Also a 2.0GHz version would be awesome too.
Info: KitKat 4.4.2 / S-Off


⇩⇩ Please be sure to hit thanks if this post helped you!!
 
rohan32
Old
#6  
rohan32's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 5036
Posts: 1,986
Join Date: Nov 2011
Location: New Jersey

 
DONATE TO ME
Nice job!

Sent from my Nexus 7
#teamkang

Follow me on Twitter
@rohanXm
for the my latest development updates

Devices:
LG Nexus 4 (DD)
Asus Nexus 7 (DD)
HTC One XL
LG Optimus G
HTC G2
The Following 2 Users Say Thank You to rohan32 For This Useful Post: [ Click to Expand ]
 
ChummyDays
Old
#7  
ChummyDays's Avatar
Senior Member
Thanks Meter 158
Posts: 744
Join Date: Sep 2012
Location: Nashville
Quote:
Originally Posted by superchilpil View Post
1. Could you post flash able zips for the majority of us who can flash these in recovery?

2. Very few users including myself have issues with kernels without stock voltage values. The device will just not boot, any way to have separate versions without different voltages just to rule that issue out when people ask why their device won't boot?
Fastboot flash boot boot.img

Sent from my One X using Tapatalk



Sent from my One X using Tapatalk 2
Phone:
LG G3
ROM: Stock (for now)
Kernel: Stock (for now)
Tablet:
ASUS Nexus 7
ROM: MIUI v6
Kernel: Franco Kernel
 
superchilpil
Old
#8  
superchilpil's Avatar
Senior Member
Thanks Meter 1204
Posts: 3,742
Join Date: Sep 2009
Location: Texas

 
DONATE TO ME
Quote:
Originally Posted by ChummyDays View Post
Fastboot flash boot boot.img

Sent from my One X using Tapatalk



Sent from my One X using Tapatalk 2
Re read my post, I know how to use fastboot

Sent from my One X using Tapatalk 2
=========================

AT&T HTC One

Help me fill up my thanks meter by hitting thanks
==================================================
 
vanja_z
Old
#9  
Senior Member - OP
Thanks Meter 133
Posts: 125
Join Date: Oct 2012
Thanks for the feedback people!

I'm currently running HBOOT 1.14, so I will need to downgrade to 1.09 before I can make/test flashable kernel zips. I think I will get around to this in the next week.

I will also look into some other requests.

Is anyone running the kernel? Are you happy with it? Any benchmarks?
The Following User Says Thank You to vanja_z For This Useful Post: [ Click to Expand ]
 
vanja_z
Old
#10  
Senior Member - OP
Thanks Meter 133
Posts: 125
Join Date: Oct 2012
Quote:
Originally Posted by rohan32 View Post
Nice job!
Thanks Rohan, I was inspired by your work!

The Following User Says Thank You to vanja_z For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes