[KERNEL][ALL '11 MDPI] MESA v4.8 (STOCK ICS/CM9/CM10) [31 DEC 2013]

Search This thread

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
First of all,
Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM/kernel
 * 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.
 */

Ok then, now that u've read the disclaimer we can continue with me and this kernel.
Frankly i'm no dev, just know a little bit of linux thus i know howto compile kernel, and i like tinkering with kernel to include what i like.
by that i'm learning as i go, so go easy on me please :p

About the kernel name, MESA stands for Man-Eating Seals of Antiquity, codename for kernel 2.6.32.
https://en.wikipedia.org/wiki/List_of_Linux_kernel_names

Roughly features of this kernel include:
- base on Sony's official 4.1.B.0.587 kernel source, so i build this from ground up. patched to upstream 2.6.32.60. ics kernel should work with stock/custom rom based on stock ics 4.1.B.0.431 or 4.1.B.0.587, and jb kernel should work with source based jb rom eg cm10, aokp and pa. personally i've tested this with expeacer's exmiuiv4, lasan's miui, stock ics, fxp's cm10 and aokp jb.
- updated to upstream linux 2.6.32.61.
- hybrid kernel, support stock/stock based, cm9/cm9 based, cm10/cm10 based rom.
- patched with Con Kolivas's patchset that includes bfs task scheduler v0.404, so this is a bfs kernel. stock kernel and all of custom kernel here so far uses cfs cpu scheduler. read about bfs cpu scheduler here.
- oc upto 1.8ghz and using 100mhz steps. default boot only use 1ghz.
- uv sysfs interface to modify voltage. i also decrease voltage abit. for anyone who wish to use stock voltage, heres stock voltage table
- cpu governors includes default stock ondemand, interactive, powersave, perfomance and userspace, i've added ondemandx, intellidemand, smartassV2, smoothass, interactivex, brazilianwax, scary, lulzactive, lagfree, smartass, minmax and savagedzen. default booting governor is interactive, its been updated/backported from kernel 3.x. read about cpu governors here.
- disk io scheduler includes deadline, sio, cfq, noop, anticipatory, zen, bfq and vr. default booting disk io scheduler is sio. read about io schedulers here.
- dual recovery, cwm and twrp. access cwm by pressing volume down button and twrp by pressing power button. also can swap those keycode by adding "swap.recovery.keycode=true" to build.prop. phone will vibrate slightly before entering both recovery as indicator. also included autoroot which wont give problem with miui rom, init.d startup script and unsecure ramdisk for adb root access. v4.7 got twrp 2.4.3.0 and cwm 6.0.3.9.
- swap and zram support.
- ext2/3/4 support.
- usb otg support.
- ntfs read/write with fuse module built in.
- samba support with cifs module built in.
- wifi modules integrated into kernel, then added into ramdisk. it will be insmod directly from ramdisk and existing wifi modules in rom wont be touched.

for full itsy bitsy changes read the changelog.txt in download folder.
and to comply and abide with gpl, source diff also included in the download folder.

Howto install:
1- be sure u already unlocked bootloader.
2- download correct kernel for your rom and phone and make sure md5 checksum matches. jellybean rom should use the kernel with "jb" in filename. or just use the new hybrid which support cm9/cm9 based, cm10/cm10 based rom and cm10.1/cm10.1 based rom.
3- if kernel downloaded in *.7z format u need to unpack it using winrar or 7zip.
4- flash the kernel via fastboot.

Troubleshoot:
- ini.d script not working? read this
- stuck at booting after flashing kernel? wait a little bit longer. kernel needs to run some script when booting.
- still stuck at booting? wipe cache and dalvik cache via recovery.

Reporting bugs:
1- if u got freeze problem, paste logcat to pastebin and give me the link.
2- if u got sudden reboot, after the sudden reboot, paste content of /proc/last_kmesg to pastebin and give me the link.
3- also tell me which phone u use, with which rom and which kernel.

what is that logcat and dmesg thingy u kept talking about? google for it.
how to get it? use this

Credits also goes to:
- google for this awesome platform, android.
- sony for releasing the kernel source.
- fxp team for some of their patch i use, and for the awesome cm10.
- kamarush for helping with problem i've had with wifi modules earlier, and also for the ramdisk i've taken from his minicmlite v3 kernel.
- doomlord for some of his patch i use.
- krizky82 for some of his patch i use.
- adridu59 for some of his patch i use.
- <insert your name here if u feel that i've failed to mention your name>

 
Last edited:

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
nice, good work.

can you please post the sources?

far fetched request,
can you make this for cm9?
 

ramezzidane

Senior Member
Nov 26, 2011
412
321
Damascus
bluetooth works fine for me and wlan i forgot to install wifi modules (downloading now) i think it will works fine

Really nice work and thank you
Btw it's oc 1.6

Edit: my Rom MIUI v4 2.6.15
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 370
    First of all,
    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM/kernel
     * 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.
     */

    Ok then, now that u've read the disclaimer we can continue with me and this kernel.
    Frankly i'm no dev, just know a little bit of linux thus i know howto compile kernel, and i like tinkering with kernel to include what i like.
    by that i'm learning as i go, so go easy on me please :p

    About the kernel name, MESA stands for Man-Eating Seals of Antiquity, codename for kernel 2.6.32.
    https://en.wikipedia.org/wiki/List_of_Linux_kernel_names

    Roughly features of this kernel include:
    - base on Sony's official 4.1.B.0.587 kernel source, so i build this from ground up. patched to upstream 2.6.32.60. ics kernel should work with stock/custom rom based on stock ics 4.1.B.0.431 or 4.1.B.0.587, and jb kernel should work with source based jb rom eg cm10, aokp and pa. personally i've tested this with expeacer's exmiuiv4, lasan's miui, stock ics, fxp's cm10 and aokp jb.
    - updated to upstream linux 2.6.32.61.
    - hybrid kernel, support stock/stock based, cm9/cm9 based, cm10/cm10 based rom.
    - patched with Con Kolivas's patchset that includes bfs task scheduler v0.404, so this is a bfs kernel. stock kernel and all of custom kernel here so far uses cfs cpu scheduler. read about bfs cpu scheduler here.
    - oc upto 1.8ghz and using 100mhz steps. default boot only use 1ghz.
    - uv sysfs interface to modify voltage. i also decrease voltage abit. for anyone who wish to use stock voltage, heres stock voltage table
    - cpu governors includes default stock ondemand, interactive, powersave, perfomance and userspace, i've added ondemandx, intellidemand, smartassV2, smoothass, interactivex, brazilianwax, scary, lulzactive, lagfree, smartass, minmax and savagedzen. default booting governor is interactive, its been updated/backported from kernel 3.x. read about cpu governors here.
    - disk io scheduler includes deadline, sio, cfq, noop, anticipatory, zen, bfq and vr. default booting disk io scheduler is sio. read about io schedulers here.
    - dual recovery, cwm and twrp. access cwm by pressing volume down button and twrp by pressing power button. also can swap those keycode by adding "swap.recovery.keycode=true" to build.prop. phone will vibrate slightly before entering both recovery as indicator. also included autoroot which wont give problem with miui rom, init.d startup script and unsecure ramdisk for adb root access. v4.7 got twrp 2.4.3.0 and cwm 6.0.3.9.
    - swap and zram support.
    - ext2/3/4 support.
    - usb otg support.
    - ntfs read/write with fuse module built in.
    - samba support with cifs module built in.
    - wifi modules integrated into kernel, then added into ramdisk. it will be insmod directly from ramdisk and existing wifi modules in rom wont be touched.

    for full itsy bitsy changes read the changelog.txt in download folder.
    and to comply and abide with gpl, source diff also included in the download folder.

    Howto install:
    1- be sure u already unlocked bootloader.
    2- download correct kernel for your rom and phone and make sure md5 checksum matches. jellybean rom should use the kernel with "jb" in filename. or just use the new hybrid which support cm9/cm9 based, cm10/cm10 based rom and cm10.1/cm10.1 based rom.
    3- if kernel downloaded in *.7z format u need to unpack it using winrar or 7zip.
    4- flash the kernel via fastboot.

    Troubleshoot:
    - ini.d script not working? read this
    - stuck at booting after flashing kernel? wait a little bit longer. kernel needs to run some script when booting.
    - still stuck at booting? wipe cache and dalvik cache via recovery.

    Reporting bugs:
    1- if u got freeze problem, paste logcat to pastebin and give me the link.
    2- if u got sudden reboot, after the sudden reboot, paste content of /proc/last_kmesg to pastebin and give me the link.
    3- also tell me which phone u use, with which rom and which kernel.

    what is that logcat and dmesg thingy u kept talking about? google for it.
    how to get it? use this

    Credits also goes to:
    - google for this awesome platform, android.
    - sony for releasing the kernel source.
    - fxp team for some of their patch i use, and for the awesome cm10.
    - kamarush for helping with problem i've had with wifi modules earlier, and also for the ramdisk i've taken from his minicmlite v3 kernel.
    - doomlord for some of his patch i use.
    - krizky82 for some of his patch i use.
    - adridu59 for some of his patch i use.
    - <insert your name here if u feel that i've failed to mention your name>

    22
    hi, i've uploaded another naa's 3.4 based kernel for lww.

    difference with current naa's 03 kernel:
    1- patched to 3.4.46, current latest 3.4 branch from upstream linux. i patched myself from naa's 3.4.0 last week.
    2- wifi compat-driver is from "old" naa's 3.4.0 which i think backported from kernel 3.8 or 3.9. current naa 03 kernel, he downgraded to compat-wireless from linux 3.2 due to some people said got connection error. that didn't happen to me so i haven't downgraded it.
    3- interactive governor in current naa 03 kernel i think is abit buggy, after waking from deep sleep it stay at lowest frequency thus making phone unuseable and laggy. i'm using interactive governor from nexus 4 air kernel git which doesn't stuck at lowest freq when waking, and made it as default booting governor.
    4- lowmemorykiller driver from dorimanx's s2 kernel git
    5- some networking stuff eg disabled all packet scheduling algorithm except sfb, and using veno as default tcp congestion avoidance algorithm.
    6- using slub memory allocator instead of default slab.
    7- enable and use tiny preempt rcu instead or tiny rcu.
    8- enable sched autogroup.
    9- oc upto 1.8ghz with 100mhz steps.
    10- some bluetooth and fmradio stuff from mike's cm10.1 kernel git
    11- compiled using codesourcery g++ lite 2011.03-42 crosscompiler which is gcc 4.5.2.
    12. probably some other minor stuff i forgot...

    credits goes to those people, i just simply compile this. nothing more than that.

    should boot with latest pacman nightly 20130522 since its already using new liblights. not sure if this will boot with mike's cm10.1 20130515.
    sourcepatch also uploaded, diff'ed against vanilla linux kernel 3.4.0 from kernel.org archive. with correct defconfig its also buildable for all xperia 2011 too. as usual, no warranty whatsoever were given with this, u flash this with your own free will.

    Also please dont report any bugs u found in any rom thread that u use with this kernel.

    DOWNLOAD
    22
    i've compiled and uploaded v4.6 for stock rom/stock based custom rom including miui, for all four devices.
    thanks to @job.bousix who confirmed that previous v4.3 doesn't have any problem with usb mass storage fc after using usb tethering, so i'm using v4.3 as based this time. removed all cm kgsl code that caused graphic glitch from it and compiled using linaro 4.7.4 2013.10.
    20
    i've compiled new naa's 3.4 based kernel for all four devices, for cm10 roms only.
    changelog is in download folder. sourcepatch also uploaded.
    other kernel than for lww are untested since i only own lww but it should boot since all xperia 2011 shared the same source.
    but if it doesn't and made your phone explode and kill your cat in the process than standard disclaimer applies, no warranty whatsoever were given with it.
    recommended to use default interactive and fiops.

    anyway, if anyone chose to use this kernel instead of default provided kernel in rom zip then never ever nagging and/or whining in rom thread about any bug as the bug might came from this kernel. i'll *****slap anyone who does.

    DOWNLOAD
    20
    updated to v4.1 and uploaded for all four devices.

    fixed sudden app close and graphic glitch.
    now default booting uses smartassV2 cpu governor with 100mhz frequency steps.