[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
how about Xperia Active aka Satsuma aka St17i..? That Device cant get your update again.>? i cant see Mesa 4.8 at download folder..

but thanks for all..

sorry, didn't realize i haven't copy active kernel to my dropbox sync folder.
done uploading it.
guess because active user are less, no one realize its missing too when i first upload 4.8 for all other devices.
 

jhobc

Senior Member
May 26, 2012
406
106
Heaven and Hell
Hi! I want to update my busybox to version 1.22.1 but every time I restart my phone the version 1.21.1 is back.

How to disable the auto busybox installation of the Kernel?

Thanks!
 

billy.bong

Senior Member
Jul 15, 2012
86
38
Cimahi, Bandung
Xiaomi Poco F3
Hi! I dnt know it it related to bug or not, I can't use driveDroid with this kernel.
My device: coconut (LWW), using JB Touchwiz 4.1.2 cm10 based, MESA kernel version:4.8.

Usually, in driveDroid, I created a blank image and mount it for format the image in pc with rufus, but when I connect the usb and start formatting with rufus, it said that rufus can't write to the device. I'd tried the builtin windows format tool, easeus partition manager, etc still no help.


Sorry for my bad english and thanks you :D
 

rafik23

Senior Member
May 3, 2011
214
57
annaba
good work , i reconize it , but i have remarked that the compass is inverted south north in portrait position but in landscape it indicate correct direction
when i use the compass when i'm directed to south it indicated to the north and east inverted to west, but when i have the stock kernel i have'nt this problem with direction.
can you verify? this ?


device: ST15i
firmware : Stock rom rooted .587
Kernel : MESA v4.8
 
Last edited:

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
Hi! I want to update my busybox to version 1.22.1 but every time I restart my phone the version 1.21.1 is back.

How to disable the auto busybox installation of the Kernel?

Thanks!

kernel doesn't install busybox into rom.

Hi! I dnt know it it related to bug or not, I can't use driveDroid with this kernel.
My device: coconut (LWW), using JB Touchwiz 4.1.2 cm10 based, MESA kernel version:4.8.

Usually, in driveDroid, I created a blank image and mount it for format the image in pc with rufus, but when I connect the usb and start formatting with rufus, it said that rufus can't write to the device. I'd tried the builtin windows format tool, easeus partition manager, etc still no help.

Sorry for my bad english and thanks you :D

drivedroid aren't supported by default in old kernel 2.6.32 so i've backported drivedroid patch from kernel 3.0 so it'll probably just working partially. i only tested booting with iso and its working, haven't tested rewriting on iso.

good work , i reconize it , but i have remarked that the compass is inverted south north in portrait position but in landscape it indicate correct direction
when i use the compass when i'm directed to south it indicated to the north and east inverted to west, but when i have the stock kernel i have'nt this problem with direction.
can you verify? this ?


device: ST15i
firmware : Stock rom rooted .587
Kernel : MESA v4.8

just tested with default miui compass, its working just fine without inverted as u described. anyone else using xperia mini and got inverted compass?
 
  • Like
Reactions: rafik23

miniuser123

Senior Member
Aug 17, 2012
203
1,641
hi, it looks like using stock camera libs for JB was a very good idea because I can get decent FPS recording 1280*720 videos in JB. Using Super Jelly Bean 8.0 and LGCamera I can get 27,5 fps which is near the maximum of 29,7. I will test it more hoping to get that missing 2 fps.
I had to bump pmem_adsp higher to get HD recording working in JB.
 

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
hi, it looks like using stock camera libs for JB was a very good idea because I can get decent FPS recording 1280*720 videos in JB. Using Super Jelly Bean 8.0 and LGCamera I can get 27,5 fps which is near the maximum of 29,7. I will test it more hoping to get that missing 2 fps.

cool. didn't know it even can record 720p in jb. i thought when 720p recording is disable in framework, even when using thirdparty camera app and stock rom camera libs wont even make 720p possible. or is it sjb 8.0 rom enable 720p in its framework?

I had to bump pmem_adsp higher to get HD recording working in JB.

u mean u recompile from source and bump it higher? care to share what value u used?
 
  • Like
Reactions: dark4m and rahimali

miniuser123

Senior Member
Aug 17, 2012
203
1,641
cool. didn't know it even can record 720p in jb. i thought when 720p recording is disable in framework, even when using thirdparty camera app and stock rom camera libs wont even make 720p possible. or is it sjb 8.0 rom enable 720p in its framework?



u mean u recompile from source and bump it higher? care to share what value u used?


I only tried it in sjb 8, so I cannot answer the first question for now.

Yes I recompiled it. I will share my pmem values when I get back home. ADSP needed a lot more (10-15 megs) if I remember correctly. However if you don't need stock compatibiity you can lower pmem_camera and pmem_sf by a lot. The end result was 387 MB free ram with 720p recording and playback working. Didn't have time to test stabilty, I fear my pmem_sf could be a bit low... Anyway I will post my pmem values later..
 
Last edited:

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
I only tried it in sjb 8, so I cannot answer the first question for now.

Yes I recompiled it. I will share my pmem values when I get back home. ADSP needed a lot more (10-15 megs) if I remember correctly. However if you don't need stock compatibiity you can lower pmem_camera and pmem_sf by a lot. The end result was 387 MB free ram with 720p recording and playback working. Didn't have time to test stabilty, I fear my pmem_sf could be a bit low... Anyway I will post my pmem values later..

u can't make them too low tho, something will break. as example i can lower more pmem_camera, rom would boot but doesn't have hardware rendering. lower even more and can't even record video alltogether, phone just freeze when pressing record button.
my phones blue led already died due to too much booting into fastboot for kernel flashing after recompile and reflash cycle to find balanced pmem value.
 
  • Like
Reactions: rahimali

miniuser123

Senior Member
Aug 17, 2012
203
1,641
u can't make them too low tho, something will break. as example i can lower more pmem_camera, rom would boot but doesn't have hardware rendering. lower even more and can't even record video alltogether, phone just freeze when pressing record button.
my phones blue led already died due to too much booting into fastboot for kernel flashing after recompile and reflash cycle to find balanced pmem value.

I use this script to get free pmem. Run this while recording/playing videos.

Code:
#!/system/bin/sh

while true; do
echo "camera: `cat /sys/kernel/pmem_regions/pmem_camera/free_quanta`"
echo "adsp: `cat /sys/kernel/pmem_regions/pmem_adsp/free_quanta`"


echo "sf: `cat /sys/kernel/pmem_regions/pmem/mapped_regions`"


sleep 2
done

For camera and adsp this will get you free pmem in 4k pages. For sf you get allocated regions.
 

Attitude.SSJ

Senior Member
Oct 21, 2012
1,562
798
Mangalore
hi, it looks like using stock camera libs for JB was a very good idea because I can get decent FPS recording 1280*720 videos in JB. Using Super Jelly Bean 8.0 and LGCamera I can get 27,5 fps which is near the maximum of 29,7. I will test it more hoping to get that missing 2 fps.
I had to bump pmem_adsp higher to get HD recording working in JB.

Just a small doubt... Do you mean the fake 720p present in sjb or actual 720p?:)

Sent from my Xperia Neo V using Tapatalk 2
 

miniuser123

Senior Member
Aug 17, 2012
203
1,641
This is what I used for JB. 387 mb free ram, hd recording working with LGCamera in SJB 8.0. Pmem_sf is on the edge a bit I think, it might need a few megs more eventually.
I manually copied stock .587 camera.semc.so into /system/lib/hw.
I need more time to test stuff like stability, whether it works in other roms etc..

Code:
#define MSM_PMEM_SF_SIZE	0x800000
#define MSM_PMEM_CAMERA_SIZE		0xBE0000
#define MSM_PMEM_ADSP_SIZE			0x1E80000
 
  • Like
Reactions: mdfzhi and rahimali

Arun Av

Senior Member
Mar 2, 2012
510
236
Kolkata
Xiaomi Mi Mix 2S
Not booting up MIUI v4 build. I don't know what happened... Or what's causing the issue. Tried all the kernels starting from v4.7 ... No luck. Checked with the build.prop text u mentioned earlier (4.0.4)... Anyone else using MIUI v4 build with this kernel? :(

Sent from my ST15i using Tapatalk
 

mdfzhi

Senior Member
Jun 15, 2011
4,146
3,856
Not booting up MIUI v4 build. I don't know what happened... Or what's causing the issue. Tried all the kernels starting from v4.7 ... No luck. Checked with the build.prop text u mentioned earlier (4.0.4)... Anyone else using MIUI v4 build with this kernel? :(

Sent from my ST15i using Tapatalk

i'm using with miuiv4. in fact, for custom rom based on stock ics, i only use miuiv4.
miui just needed small modification in init.rc in ramdisk,
Code:
service shelld /system/xbin/shelld
    class main
    user root
    group root
    oneshot

which i already added.
 
  • Like
Reactions: Arun Av

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.