[kernel][non-tmo][qcom][lp] leanKernel: minimalistic kernel v6.3 (tw), v5.2 (aosp)

Search This thread

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
leanKernel is not for everyone. My philosophy is to keep the kernel footprint as small as possible by trimming as much fat as possible, and at the same time keeping it stable, power efficient, and fast. You will find that it's lacking some of the bells and whistles of other custom kernels, so if you like features you came to the wrong thread. :)

The "warranty bit" message at boot is normal.

DOWNLOAD (flash in recovery)
[lollipop][touchwiz]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!110
[lollipop][aosp]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
[kitkat] n900t / n900w8 / n900v: http://1drv.ms/1pJPexn
[kitkat] other n900x devices: http://1drv.ms/1pXzyT1

PREREQUISITE
Working recovery (you can actually do this without recovery via flashbeta script)
Knox 0x1 :)

FEATURES
  • overclocked to 2.72Ghz, but max set to 2.2Ghz at boot
  • user custom undervolting
  • updated to latest 3.4 Linux (ie. 3.4.67)
  • interactiveX V4 (screen_off_maxfreq)
  • ondemandX (screen_off_maxfreq)
  • user adjustable panel temperature: -60 to 0, 0 is kernel default (via lkconfig & sysfs)
  • user adjustable panel colors: 0 to 4, 2 is kernel default (via lkconfig & sysfs)
  • lkconfig script (via terminal emulator, superuser required)
  • fix for purple hue/push at low brightness (via panel temperature or panel colors)
  • cpufreq modified to play better with thermal-engine
  • latest Linaro gcc 4.8 toolchain
  • built-in supersu and init.d support
  • fat trimmed and performance tweaks
  • interactive governor updated to latest android source (but ondemand left default)
  • outdated samsung code updated to later CodeAurora source (cpufreq, mdss, gpu, msm-bus, etc.)
  • cpufreq issues fixed
  • exfat support
  • ram console enabled for /proc/last_kmsg for kernel crash debugging

CONFIGURATION OPTIONS
Open Terminal Emulator, become superuser by typing "su" (without quotes), enter, and type "lkconfig" (without quotes), then enter:
Code:
shell@hltetmo:/ $ [B]su[/B]
root@hltetmo:/ # [B]lkconfig[/B]

leanKernel configurator
---
0) display current settings
1) panel temperature
2) panel color
3) set screen_off_maxfreq
4) panel brightness tweak

please enter a number (or press enter to exit): 2
Enter a number between 0 and 4 (2 is kernel default): 2
Turn off screen and back on (also will persist at boot)


leanKernel configurator
---
0) display current settings
1) panel temperature
2) panel color
3) set screen_off_maxfreq
4) panel brightness tweak

please enter a number (or press enter to exit): 0

current settings
----------------
1) panel temperature: -25
2) panel color: 2
3) screen off maxfreq: 1267200
4) panel brightness tweak (0 off, 1 on): 1

root@hltetmo:/ #
You can also use /data/data/leankernel (lkconfig writes to this dir) manually, or write to sysfs nodes directly.

CHANGELOG
Lollipop: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
Kitkat: https://github.com/imoseyon/leanKernel-note3/wiki/Kitkat-ChangeLog

Source: https://github.com/imoseyon/leanKernel-note3

If you want to donate, either donate to your favorite charity or use the link in my profile.
 
Last edited:

jaythenut

Senior Member
Sep 6, 2012
7,330
2,374
oops tells you how much i know lol. Let me download source and see how different it is. Gimme a day or two.

edit: or if you're brave flash it and let me know what happens ;)

let hope it is :D

im brave whats the worst that can happen ?

---------- Post added at 10:42 PM ---------- Previous post was at 10:30 PM ----------

ok took the plunge and its working im oc all the way running ok at the mo no bootloop :D
edit getting set warranty bit kernel on samsung slash screen
 
Last edited:

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
let hope it is :D

im brave whats the worst that can happen ?

---------- Post added at 10:42 PM ---------- Previous post was at 10:30 PM ----------

ok took the plunge and its working im oc all the way running ok at the mo no bootloop :D
edit getting set warranty bit kernel on samsung slash screen

Thanks for being the guinea pig - I've added 9005 to thread title.

warranty bit msg at boot is normal.
 

fryingpan0613

Senior Member
Jul 18, 2010
4,192
3,665
Central Florida
Google Pixel 6
Nice! You can never have too many kernels :)



Team PATB
Rats Of Anarchy
sigpic2757720_8.gif
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
I created a separate thread for t-mobile users here: http://xdaforums.com/showthread.php?t=2488233

I'll keep this one for 9005 folks.

Hi. as soon as I you verify the difference between N9005 and N900T source codes I will be you beta tester.
Well done mate

Man i tried downloading source from samsung three times and all three times it failed. Will try some more times tonight.

Great to see you over here. Any way to persuade you to look into the SM-N900 exynos source :D.

Thanks!

Hmm probably not.. Perhaps when I drop support for gnex (tuna).
 

DDRFAN

Senior Member
Oct 10, 2009
209
14
Toronto

alexander1995

Senior Member
May 30, 2012
136
32
Could you add support for korean version n900k n900s and n900l?

Sent from my SM-N900K using xda premium

---------- Post added at 11:27 AM ---------- Previous post was at 11:15 AM ----------

working fine on n900k except NFC

Sent from my SM-N9005 using xda premium
 
Last edited:

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,870
Mountain View, CA
Here's another beta update (0.4b): http://androtransfer.com/?developer=imoseyon&folder=hlte

Samsung code is a bit behind CodeAurora, especially the GPU code so I started updating them: gpu, row scheduler, msm cpufreq, etc. Will take a while to completely modernize everything I think. If you run into issues with 0.4b report it here and go back to 0.3b.

Edit: 0.4.2b is the latest - had to revert cpufreq updates due to some bootloops.
--

BTW, I get the feeling that the kernel will work without modification on most N900 variants. I will compare source on some of those to confirm soon.
 
Last edited:

Eddiemc

Senior Member
Mar 15, 2010
1,417
540
Here's another beta update (0.4b): http://androtransfer.com/?developer=imoseyon&folder=hlte

Samsung code is a bit behind CodeAurora, especially the GPU code so I started updating them: gpu, row scheduler, msm cpufreq, etc. Will take a while to completely modernize everything I think. If you run into issues with 0.4b report it here and go back to 0.3b.

Edit: 0.4.2b is the latest - had to revert cpufreq updates due to some bootloops.
--

BTW, I get the feeling that the kernel will work without modification on most N900 variants. I will compare source on some of those to confirm soon.

Thanks for doing this. Will test during the weekend. Exiting times ahead.. Jp is getting the device too.
Knox should not matter, the root scene have always broken warranty, except now it's just a little more definite due to the 0x1.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 239
    leanKernel is not for everyone. My philosophy is to keep the kernel footprint as small as possible by trimming as much fat as possible, and at the same time keeping it stable, power efficient, and fast. You will find that it's lacking some of the bells and whistles of other custom kernels, so if you like features you came to the wrong thread. :)

    The "warranty bit" message at boot is normal.

    DOWNLOAD (flash in recovery)
    [lollipop][touchwiz]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!110
    [lollipop][aosp]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
    [kitkat] n900t / n900w8 / n900v: http://1drv.ms/1pJPexn
    [kitkat] other n900x devices: http://1drv.ms/1pXzyT1

    PREREQUISITE
    Working recovery (you can actually do this without recovery via flashbeta script)
    Knox 0x1 :)

    FEATURES
    • overclocked to 2.72Ghz, but max set to 2.2Ghz at boot
    • user custom undervolting
    • updated to latest 3.4 Linux (ie. 3.4.67)
    • interactiveX V4 (screen_off_maxfreq)
    • ondemandX (screen_off_maxfreq)
    • user adjustable panel temperature: -60 to 0, 0 is kernel default (via lkconfig & sysfs)
    • user adjustable panel colors: 0 to 4, 2 is kernel default (via lkconfig & sysfs)
    • lkconfig script (via terminal emulator, superuser required)
    • fix for purple hue/push at low brightness (via panel temperature or panel colors)
    • cpufreq modified to play better with thermal-engine
    • latest Linaro gcc 4.8 toolchain
    • built-in supersu and init.d support
    • fat trimmed and performance tweaks
    • interactive governor updated to latest android source (but ondemand left default)
    • outdated samsung code updated to later CodeAurora source (cpufreq, mdss, gpu, msm-bus, etc.)
    • cpufreq issues fixed
    • exfat support
    • ram console enabled for /proc/last_kmsg for kernel crash debugging

    CONFIGURATION OPTIONS
    Open Terminal Emulator, become superuser by typing "su" (without quotes), enter, and type "lkconfig" (without quotes), then enter:
    Code:
    shell@hltetmo:/ $ [B]su[/B]
    root@hltetmo:/ # [B]lkconfig[/B]
    
    leanKernel configurator
    ---
    0) display current settings
    1) panel temperature
    2) panel color
    3) set screen_off_maxfreq
    4) panel brightness tweak
    
    please enter a number (or press enter to exit): 2
    Enter a number between 0 and 4 (2 is kernel default): 2
    Turn off screen and back on (also will persist at boot)
    
    
    leanKernel configurator
    ---
    0) display current settings
    1) panel temperature
    2) panel color
    3) set screen_off_maxfreq
    4) panel brightness tweak
    
    please enter a number (or press enter to exit): 0
    
    current settings
    ----------------
    1) panel temperature: -25
    2) panel color: 2
    3) screen off maxfreq: 1267200
    4) panel brightness tweak (0 off, 1 on): 1
    
    root@hltetmo:/ #
    You can also use /data/data/leankernel (lkconfig writes to this dir) manually, or write to sysfs nodes directly.

    CHANGELOG
    Lollipop: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
    Kitkat: https://github.com/imoseyon/leanKernel-note3/wiki/Kitkat-ChangeLog

    Source: https://github.com/imoseyon/leanKernel-note3

    If you want to donate, either donate to your favorite charity or use the link in my profile.
    35
    v2.5 is up: https://github.com/imoseyon/leanKernel-note3/wiki/Kitkat-ChangeLog

    Just a maintenance release.

    At this point the kernel is pretty mature, IMO. Usually at this point I move onto another device and start active development there (while maintaining older devices) but I've been so happy with my Note 3 I'm not buying another device for the foreseeable future.

    ----

    Those of you having reboot issues on v2.4.1 go back to v2.3 and see if the reboots go away? The last_kmsg that was attached above seems to indicate that the reboot is not kernel induced but that doesn't always mean that kernel is not at fault.
    33
    v3.5 is up: https://github.com/imoseyon/leanKernel-note3/wiki/Kitkat-ChangeLog

    Doesn't have NG2 update incorporated yet. I'll be testing those changes soon.