[kernel][bln]MoshKernel[GPL]

Search This thread

CoolDevelopment

Senior Member
Sep 25, 2013
998
1,715
Cologne
sI don't want to write a big OP.

This is a kernel and liblights modules I compiled to use with the Galaxy s II Plus.

Features

- BLN(Backlight-button-notification)

- compiled with linaro-gcc 4.9.1

- additional cpufreq governors: smartassv2 and scary

- additional I/O scheduler: fiops

- optional overclocking

- performance/battery tweaks(not many yet, more to come)

- linaro arm topology

- frandom

- dynamic fsync control

- init.d support for stock rom

- f2fs support

- linux kernel 3.0.101​
Installation

- be sure, that you have a GT-I9105(P) and are on a compatible rom

- flash the .zip file with a custom recovery

- wipe cache

- To change your kernel settings I recommend you Performance Control

- BLN could eat some more battery

- the initial name of this project was custom_kernel

Downloads


Old Files

custom_kernel 1.5
http://www.androidfilehost.com/?fid=23329332407566919

custom_kernel 1.5.1
http://www.androidfilehost.com/?fid=23329332407566930

custom_kernel 1.5.5
http://www.androidfilehost.com/?fid=23329332407566996

custom_kernel 1.5.6
http://www.androidfilehost.com/?fid=23329332407567173

custom_kernel 1.5.7
http://www.androidfilehost.com/?fid=23329332407567438

custom_kernel 1.5.8
http://www.androidfilehost.com/?fid=23329332407567499

MoshKernel 1.6
http://www.androidfilehost.com/?fid=23329332407567962

MoshKernel 1.7
http://www.androidfilehost.com/?fid=23329332407571177

MoshKernel 1.7 - non-undervolted
http://www.androidfilehost.com/?fid=23329332407571211

MoshKernel 1.7.2
http://www.androidfilehost.com/?fid=23329332407571650

MoshKernel 1.7.2 - non-undervolted
http://www.androidfilehost.com/?fid=23329332407571648

MoshKernel 1.8 - stock 4.2.2
http://www.androidfilehost.com/?fid=23329332407573842

MoshKernel 1.8 - aosp-based
http://www.androidfilehost.com/?fid=23329332407573843

MoshKernel 1.8.5 - stock 4.2.2
http://www.androidfilehost.com/?fid=23329332407576641

MoshKernel 1.8.5 - aosp-based
http://www.androidfilehost.com/?fid=23329332407576648

MoshKernel 1.8.6 - stock
http://www.androidfilehost.com/?fid=23329332407583770

MoshKernel 1.8.6 - aosp-based
http://www.androidfilehost.com/?fid=23329332407583772

MoshKernel 1.9 - aosp-based
http://www.androidfilehost.com/?fid=23329332407589598

MoshKernel 1.9 - stock
http://www.androidfilehost.com/?fid=23329332407589804

MoshKernel 1.9.1 - aosp-based
http://www.androidfilehost.com/?fid=23487008491966527

MoshKernel 1.9.1 - stock
http://www.androidfilehost.com/?fid=23487008491966519

MoshKernel 1.9.2 - aosp-based
https://www.androidfilehost.com/?fid=95784891001612602

MoshKernel 1.9.2 - stock
https://www.androidfilehost.com/?fid=95784891001612603


- older versions are attached​
Credits

- Samsung for kernel source
- @neldar for BLN control app and biggest part of BLN on i8190
- @pawitp parts of kernel source
- @k2wl for some cool stuff
- @Koush for initial AnyKernel
- Christopher83 for the precompiled linaro toolchain I used
- franciscofranco
- faux123
- googyanas​

Configure BLN notifications


You can execute these lines in any terminal as root. If you want the settings to persst after reboot, create an init.d script with your settinǵs.

enable:
Code:
echo 1 > /sys/class/misc/backlightnotification/enabled

disable:
Code:
echo 0 > /sys/class/misc/backlightnotification/enabled

disable blinking:
Code:
echo 0 > /sys/class/misc/backlightnotification/led_blink_duration

change blinking duration (in milliseconds):
Code:
echo <time> /sys/class/misc/backlightnotification/led_blink_duration
 

Attachments

  • custom_kernel-1.0.zip
    5.6 MB · Views: 616
  • custom_kernel-1.1.zip
    5.1 MB · Views: 165
  • custom_kernel-1.1.1-4.4.2.zip
    5.6 MB · Views: 433
  • custom_kernel-1.2.zip
    5.6 MB · Views: 142
  • custom_kernel-1.3.zip
    5.6 MB · Views: 248
  • custom_kernel-1.4.zip
    5.6 MB · Views: 1,807
Last edited:

CoolDevelopment

Senior Member
Sep 25, 2013
998
1,715
Cologne
Changelog
1.0

- initial commit
- BLN
- pre-undervolted
- scary and smartassv2 cpu governors
- compilation with linaro crosstool 4.7​

1.1

- BLN bug fixed: buttons now always turn off, when turn on the screen
- smartassv2 added(forgot in the older release)
- compilation with linaro crosstool 4.8​

1.1.1

- updater-scripts semi-fixed(it fully works, but it flashes a ramdisk, so you need to download the right .zip for your rom)​

1.2

- added pegasusq governor
- removed bln wakelock -> better battery life with bln
- some optimization flags for better performance
- tweaked cpufreq table​

1.3

- changed a bit in wifi driver for better battery while deepsleep
- enabled, swap, zram, decreased swapiness
- restored volt-table, caused reboots
- restored cpufreq table

1.4

- resolved problems with touchkey leds not turning off
- enable zram completely
- added I/O scheduler: sio, vr and row​

1.5

- compatible with stock roms, because your ramdisk will not change while flashing
- higher default swapiness, you can change it in /system/etc/init.d/zramhelper
- you can turn of zram in /system/etc/init.d/zramhelper
- changed something in zram-related defconfig​

1.5.1

- fix typos in itnit.d script, zram works now​

1.5.5

- fix blinking and flickering of bln notifications EDIT: still flickering, but at least blinking works​

1.5.6

- fix random reboots and force-closes
- remove pegasusq, it caused freezes​

1.5.7

- fix graphical glitches(not fixed yet)​

1.5.8

- compile with arm-eabi-gcc 4.7(there are problems with the memset fix, I am using the normal gcc for now)
- fix graphical glitches​

1.6

- removed zRam
- renamed kernel to MoshKernel
- compiled with linaro 4.8.3
- a configurator script was added(run 'mosh-config' as root)​

1.7

- pre-undervolted volt table again(it never caused reboots, other things were the reason)
- linaro arm topology
- dynamic fsync control added
- default swappiness changed to 50
- some other mrinor changes
- resolve touchkey backlight issues​

1.7.2

- add frandom
- add bfq I/O scheduler
- graphics performance should get a bit better
- other minor patches​

1.8

- compatibility with stock rom
- experimental intelliplug(disabled by default)
- init.d support on stock rom
- many minor and internal changes
- compilation with a cortex-a9 optimized toolchain​

1.8.5

- remove ramdisk for aosp-based roms
- update stock kernels defconfig to 4.2.2
- remove intelliplug​

1.8.6

- support for customizable vibration density for aosp-based roms
- fixed booting up of stock version(tested)​

1.9

- f2fs support
- slab/slub/slob backported from 3.3​

1.9.1

- stock now completely fixed
- removed all io-schedluers and added fiops
- compiled with linaro 4.9.1
- native bln support(without the app)
- many changes backported from 3.4 /block, a big thanks to k2wl for this​

1.9.2

- switch to GCC 4.8
- updated for android lollipop roms and include some important security fixes​

Sources

kernel: https://github.com/CoolDevelopment/MoshKernel

liblights: https://github.com/CoolDevelopment/liblights_s2vep

Reporting Bugs
If you have bugs, please report them like that:
Code:
ROM:
Kernel Version:
Setup(Governor etc.):
Clear description of the problem:

Please attach a kmsg and a logcat, too. You can get a kmsg like that with adb:
Code:
adb shell su -c 'cat /proc/kmsg /sdcard/kmsg.txt'
adb pull /sdcard/kmsg.txt kmsg.txt
adb shell rm /sdcard/kmsg.txt

If you just post feature x not working, it does not help at al and I will ignore the post.
 
Last edited:

blurhns

Senior Member
Oct 20, 2012
160
36
Iasi,Romania
First. Downloading...
I have a question... You can set overclock to 1.3-1.4ghz? Because on actually 4.4.2 we can't overclock... Thanks
 

hasdroid

Senior Member
Jul 8, 2013
1,079
410
27
Istanbul
Samsung Galaxy S10e
Thanks but see this...
Why???

sent from my I9105 cm11
 

Attachments

  • 1390026977502.jpg
    1390026977502.jpg
    43.7 KB · Views: 3,505

Anemiq

Senior Member
Jan 10, 2014
87
15
Will this kernel work with the vibration fix for your cm11?
Thanks for doing this, by the way :)
 

Anemiq

Senior Member
Jan 10, 2014
87
15
Well, it works fine, but I can't see smartassv2 governor, should it be there (Scary is present)? And I can still oc to 1300Mhz (I could do this after vibration fix).

EDIT: Oh and @CoolDevelopment have you already included this sdcards swapping via build.prop here? Because I see I can mount pendrive via OTG (well, it does not work, but shows as it was mounted - I used app called stickMount).
 
Last edited:

CoolDevelopment

Senior Member
Sep 25, 2013
998
1,715
Cologne
I think I forgot to enable Smartassv2 in defconfig. And pro version of bln control works for me, try to clear it's data. Usb otg fix isn't inclueded and swap sdcard needs some more testing

Sent from my GT-I9105P using XDA Premium 4 mobile app
 

nanoteam

Senior Member
Jan 3, 2013
273
143
07
nice work devs .. i'm loving this phone because of u guys .. and i think in the future don't make oc kernel it has problem without perf .. i think we are doing it with wrong way ..it needs some moding to feel perf in 1300 or above ... can anyone post antutu score ......good luck
 
  • Like
Reactions: beegee

beastaki23

Senior Member
Dec 30, 2010
298
478
Athens
nice work devs .. i'm loving this phone because of u guys .. and i think in the future don't make oc kernel it has problem without perf .. i think we are doing it with wrong way ..it needs some moding to feel perf in 1300 or above ... can anyone post antutu score ......good luck

Total custom: 10451 - original: 11093
Multitask 2104 - 2136
Runtime 989 - 992
CPU Integer 942 - 966
CPU float point 686 - 723
Ram Operation 726 - 772
RAM speed 323 - 462
2d Graphics 969 - 988
3d Graphics 2367 - 2768
Storage I/O 845 - 686
Database I/O 500 - 600

And My second test got total of 10686
 
Last edited:
  • Like
Reactions: beegee

nanoteam

Senior Member
Jan 3, 2013
273
143
07
hi devs use this .. just flash Zimage with this you can make flashable zip .. for all rom's without ramdisk .. it will extract ramdisk and build boot.img itself .. one zip for all rom's .. replace zimage and modules no need to ramdisk any more ... good luck

https://github.com/koush/AnyKernel
 
  • Like
Reactions: beegee

CoolDevelopment

Senior Member
Sep 25, 2013
998
1,715
Cologne
Total custom: 10451 - original: 11093
Multitask 2104 - 2136
Runtime 989 - 992
CPU Integer 942 - 966
CPU float point 686 - 723
Ram Operation 726 - 772
RAM speed 323 - 462
2d Graphics 969 - 988
3d Graphics 2367 - 2768
Storage I/O 845 - 686
Database I/O 500 - 600

And My second test got total of 10686

I got 11400 with interactive. Scary is not the fastest governor, but it has bettr battery life.

Sent from my GT-I9105P using XDA Premium 4 mobile app
 

CoolDevelopment

Senior Member
Sep 25, 2013
998
1,715
Cologne
hi devs use this .. just flash Zimage with this you can make flashable zip .. for all rom's without ramdisk .. it will extract ramdisk and build boot.img itself .. one zip for all rom's .. replace zimage and modules no need to ramdisk any more ... good luck

https://github.com/koush/AnyKernel

Nice, but I'm not sure if the kernel will work with stock rom

Sent from my GT-I9105P using XDA Premium 4 mobile app
 

Anemiq

Senior Member
Jan 10, 2014
87
15
Total custom: 10451 - original: 11093
Multitask 2104 - 2136
Runtime 989 - 992
CPU Integer 942 - 966
CPU float point 686 - 723
Ram Operation 726 - 772
RAM speed 323 - 462
2d Graphics 969 - 988
3d Graphics 2367 - 2768
Storage I/O 845 - 686
Database I/O 500 - 600

And My second test got total of 10686

I have 11604 with ONDEMAND, on NFC version.
 

Top Liked Posts