5,604,443 Members 48,441 Now Online
XDA Developers Android and Mobile Development Forum

For CM11 users, here's how you can use AOSP(Non CAF) kernels on CM11

Tip us?
 
Calkulin
Old
(Last edited by Calkulin; 10th January 2014 at 04:12 PM.)
#1  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 6425
Posts: 1,393
Join Date: Sep 2008

 
DONATE TO ME
Default For CM11 users, here's how you can use AOSP(Non CAF) kernels on CM11

For those that want to use AOSP kernels on CM11, here's a zip to do it. The non CAF zip includes libs & the stock kernel(has init.d support) from the stock KOT49H build and the enable zip includes libs & stock kernel from CM11 1-9-14 build. It can be used on older builds of CM but CM does make changes to the kernel ramdisk every so often, so I can't guarantee it will work on all builds but it should work on the last couple of weeks builds.

The only catch is that you MUST use the kernel ramdisk from CM's kernel as there is stuff in there that is needed, so if you just flash a AOSP kernel that is built as a boot.img, while you will not have color issues, you will have FCs for theme manager, etc.

Now for those that want to know the specifics, these 4 libs are what control it
Code:
gralloc.default.so
gralloc.msm8960.so
hwcomposer.msm8960.so
liboverlay.so
If you like my work, donate to buy me a beer or 2

The Following 12 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
xtrymind
Old
(Last edited by xtrymind; 12th January 2014 at 01:34 PM.)
#2  
xtrymind's Avatar
Senior Member
Thanks Meter 217
Posts: 335
Join Date: Sep 2011
Location: Bandung
thanks , this is what i need
great job
 
Carlosmadiam
Old
#3  
Member
Thanks Meter 13
Posts: 77
Join Date: Nov 2011
Awesome, works great, now I can use the ROM I wanted with the kernel I wanted

Sent from my Nexus 4 LTE 4G Telcel Mexico
 
Jal253
Old
#4  
Member
Thanks Meter 10
Posts: 79
Join Date: May 2011
Location: near Brussels
Hi, if I understand correctly I need to flash the non caf zip then the non caf kernel zip ? Thanks

Sent from my Nexus 4 using XDA Premium 4 mobile app
 
accountabc
Old
#5  
Senior Member
Thanks Meter 5
Posts: 323
Join Date: Dec 2008
@The Guy above me: I'd think so too, as long as it does not require it's own modified ramdisk (?). Not sure though. I'll test it when I have some time after the weekend. Interesting stuff. indeed. Finally acces to some more custom kernels on CM11.
|| N4 CM11 || HD2 CM9 (retired) + some random WM6.5/6.0/5.0 phones/pda's
 
Jal253
Old
#6  
Member
Thanks Meter 10
Posts: 79
Join Date: May 2011
Location: near Brussels
Quote:
Originally Posted by accountabc View Post
@The Guy above me: I'd think so too, as long as it does not require it's own modified ramdisk (?). Not sure though. I'll test it when I have some time after the weekend. Interesting stuff. indeed. Finally acces to some more custom kernels on CM11.
I flashed in that order and it works great with semaphore kernel

Sent from my Nexus 7 using XDA Premium 4 mobile app

---------- Post added at 12:18 PM ---------- Previous post was at 12:16 PM ----------

@Calkulin it would be great if you could port that to the nexus 7 2013, it really lacks CM compatible kernels ...

Sent from my Nexus 7 using XDA Premium 4 mobile app
 
tykate
Old
#7  
tykate's Avatar
Senior Member
Thanks Meter 81
Posts: 359
Join Date: Oct 2012
Location: Redwood City, CA, USA
Thanks for the useful patch

As for CM kernel ramdisk:
Quote:
Originally Posted by Calkulin View Post
The only catch is that you MUST use the kernel ramdisk from CM's kernel as there is stuff in there that is needed, so if you just flash a AOSP kernel that is built as a boot.img, while you will not have color issues, you will have FCs for theme manager, etc.
How do we use the CM kernel ramdisk with a kernel that isn't a CM kernel?

Sign up for Copy.com using my referral link: https://copy.com?r=OGQjKX
Free 15 GB at sign up + 5 GB for you + 5 for me


LG Nexus 4 \\ Resurrection Remix® v5.0.9 \\ Arkenstone Silver
HTC HD2 \\ HyperDroid CM7 v6.0.0 \\ Dorimanx 7.3
 
anandbibek
Old
#8  
anandbibek's Avatar
Senior Member
Thanks Meter 135
Posts: 225
Join Date: May 2013
Location: Agartala

 
DONATE TO ME
We will need to get the zImage somehow. Is it the only way?
 
xtrymind
Old
#9  
xtrymind's Avatar
Senior Member
Thanks Meter 217
Posts: 335
Join Date: Sep 2011
Location: Bandung
Quote:
Originally Posted by tykate View Post
Thanks for the useful patch

As for CM kernel ramdisk:


How do we use the CM kernel ramdisk with a kernel that isn't a CM kernel?
you could try using script to unpack bootimage
or kernel like faux, semaphore, ak, or kernel that use anykernel method, you just need to add that 4 file to zip, and add script to unpack that file in updater-script
Device: LG Nexus 4 Black 16GB
Rom: CyanogenMod 11
Kernel: "Special" Stock CM 11
Recovery: "Special" TWRP 2.7.0.0

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

Advanced Search
Display Modes