Kernel source modification for different android versions - Android Q&A, Help & Troubleshooting

I have the kernel source for JellyBean 4.2.2 that boots cyanogenmod 10 and other jellybean ROMS. But when I use that kernel for Kitkat like Cyanogenmod 11 that doesn't work.
To make sure the problem is in the kernel I packed the cm11 boot.img with the jellybean kernel and it didn't boot.
So my question is what modifications does the source need for a newer android version ?
I posted it many times found no answer .

Related

Building recovery for simba Sx1

I am following this guide XDA university porting cwm to a new device and I just wonder if I need the same android version of sources as it is on the android phone.
I mean, the phone is running android 4.2 so it is neccecary to download cm 10.1 sources or can I build it using cm 11 sources?
tulen_kobi said:
I am following this guide XDA university porting cwm to a new device and I just wonder if I need the same android version of sources as it is on the android phone.
I mean, the phone is running android 4.2 so it is neccecary to download cm 10.1 sources or can I build it using cm 11 sources?
Click to expand...
Click to collapse
It is not necessary to have the same android source as your device's android version to make cwm. CWM is part of the kernel and not the android system. Your device's kernel will be extracted and the ramdisk will be replaced with cwm ramdisk and after that the kernel will be built with cwm ramdisk then you can use it as recovery.
If you want I can help you out with twrp recovery. I have done it for LG L65 and L70. If you want my help with twrp then please download omni rom sources (manifest: https://github.com/omnirom/android ) or just replace bootable/recovery folder with the omni's one in your cm source tree, get kernel source code for your device or have a boot.img, make sure your device has a recovery partition so recovery is not part of the kernel image as a secondary ramdisk like on samsung devices otherwise I could not help.

[Q] Rom building to new device help

I want to build cm11 for the T-Mobile Sidekick 4g primarily for compatibility with newer apps, but before that I was told that I'd first need to build a kitkat compatible kernel. I have read on how to build kernels, apply patches, tweaks, and modules, but I haven't seen anything about what makes a kernel android version specific. I have an HTC HD2 flashed with Tytung's nexushd2 cm based roms and on his list of roms he has used his same custom kernel on both jelly bean and kitkat roms. So my questions are;
1. is there any other way to make newer apps like hangouts and stock nexus 5 dialer (because of native sip integration) compatible with older versions of android (froyo)?
2. what makes a kernel android version specific?
3. what would I have to do to make a sidekick kernel compatible with cm11?
4. would the cm guide here automatically build a cm11 compatible kernel? http://wiki.cyanogenmod.org/w/Doc:_porting_intro
5. is there any way to update sidekick 4g stock rom source?
6. if I build using Google AOSP source would the rom that is built be a nexus-like rom?

[Q] Cyanogemod 12 kernel configuration?

I tried to build cyanogen mod 12 with this kernel sourcehttps://github.com/SandPox/android_kernel_kylepro?files=1
For samsung duos 2.
I builded cm 12 for android one with kk kernel source.
After building the kk kernel turned into lolipop kernel.
But in duos 2 after building the kk kernel remains for kitkat.
Now the question is how to configure or patch the kernel so that I can boot lolipop(cyanogen12).
Helpers will be credited .

Using a pre-built MTK6589/8389 kernel in a custom (Lollipop) ROM

I've got an old Lenovo S6000 which, like every other Mediatek device, has incomplete source code for the drivers and the kernel. As a small project, I would like to try and get Android Lollipop up and running to an extent where:
the system boots to the GUI;
the Wi-Fi works;
and the touchscreen works.
just to start off.
The device currently is rooted, with ClockworkMod recovery installed, and I can create Android back-ups of the system. Could I potentially take the kernel and the proprietary blobs and build them in to a CyanogenMod 12 update? Or would the kernel have to be patched to support the new features in Lollipop (the current OS running on the device is Android 4.2.2, and there have been no other working attempts to create a custom ROM for the device)?
Thanks,
George
Sir I want to know Mediatek 6589 3.4.5 kernel can be used with any custom lollipop ROM or it need development for doing that? what can be done to update device with latest android ROM, what is required for developing ROM and kernel? Do all Mediatek 6589 chipsets share same kernel? because sony has released the source code for 3.4.5 kernel but I don't know how to use it for development of new ROM with latest android, how cyanogen do that?
http://developer.sonymobile.com/dow...es/open-source-archive-for-build-16-0-a-0-36/
this is the link to xperia c 3.4.5 kernel source code. please check it sir.

Do I need to update kernal with custom ROM?

I am currently on stock MIUI but I came from a Nexus and prefer stock android. The phone is on MIUI 9 which is based on Android 7.0. Am I right in thinking that the kernal I am currently using will only work with a ROM based on android 7.0? If I pick a 8.0 ROM can I use my existing stock kernal or do I need to update the kernal?
I fancy moving to LineageOS and I see I can pick LineageOS 14.1 (based on android 7.0) or LineageOS 15 (based on android 8.0).
Thanks.
Every custom rom including miui, have their own kernel source, you need not worry about the kernel used in a particular rom, because they are not cross supported. Miui's kernel is not supported by lineage and lineage's kernel is not supported by miui. Only custom kernel formed by merged source code support both of em. What exactly is your purpose?
Ahh so each custom rom also includes a new kernel, I hadnt realised that.
I havent rooted a phone since my ZTE Blade about 7 years ago, since then I have had Nexus phones and havent needed to change anything. I did update kernel then and my phone signal suffered so I wanted to avoid updating my kernel. I understand that the kernel contains the 'drivers' for all the components in the phone and I didnt fancy messing with them but seems I have to.....
Thanks for your input...

Categories

Resources