[KERNEL][L][STOCK][5.1.1]intersectRaven's Kernel - 20151018_20XX

Not open for further replies.
Search This thread
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    Development Goals:
    - stability
    - energy savings due to more efficient ARM algorithms
    - strictly no overclocking unless approved by the manufacturer or my source base integrates it (also, even if my source base integrates it, expect no support for it)
    - no undervolting as well unless the manufacturer approves it since it's relatively pointless IMHO...
    - all improvements should require MINIMAL user interaction (e.g. you don't need to do anything except flash the kernel or at the very least use SetCPU or the like to set fixed options)
    - stability

    *note: FAQ is at the 3rd post

    - some ramdisk cleanups for single image
    - enabled KSM and ZRAM swapping for increased memory flexibility

    - added in partial resume support for *hopefully* better battery life
    - tweak cubic algorithm just in case it's needed

    - added F2FS support (refer to 3rd post for MANUAL instructions on how to convert a partition to F2FS)

    - uploaded to personal site with updated compiler

    - tons of commits to improve power efficiency...just go to my GitHub... :p

    - added FIOPS IO scheduler and set it as default
    - set FS options NOATIME and NODIRATIME always
    - use 4k kernel stacks to save memory

    - first release for "back-to-basics" kernel
    - turned off a ton of debugging options to improve performance

    - upgraded compiler

    - fixed bootloop while charging

    - modified ramdisk to support wifi properly on v2 of LeeDroid's Urbane port

    - more backports for improved efficiency
    - changed kernel compression to XZ to make it even smaller
    - limited maximum CPU frequency to 1Ghz to lower power consumption for multi version since mpdecision keeps on using max frequency too much

    - additional IPI reduction commits
    - changed kernel compression to LZMA to make it smaller

    - reverted partial resume studies (seems to cause slowdowns somewhere but might also cause slightly more battery consumption)
    - comment some printouts which are annoying
    - kernel IPI improvements

    - minor improvements to reduce CPU load
    - WiFi tweak
    - rendering optimizations

    - added new feature for users of Urbane ROM which *might* also fix the bootup problem

    - added new image, wifi.multi.boot.img, which is multicore and with built-in wifi support so no need to flash Tasssadar's MOD when you upgrade the kernel (from an already modded ROM or from Urbane port)

    - back to usual local version tag
    - rebased to newly released 5.1.1 Lenok branch on AOSP with some additions from Bass branch for WiFi throughput and energy saving

    - compiled using GCC 5.1
    - special local version tag

    - modified panel to disable partial update since it seems to cause problems with current code (i.e. it disabled burn-in protection)
    - special local version tag

    - removed a useless setting in the ramdisk which might cause increased CPU utilization thus less battery life

    - just added a new flashable image, multi-core for those who want...strictly for testing for now...I won't be responsible if your device explodes or burns off your wrist or something... :D

    - modified configuration with changes in Bass
    - imported clock change for WiFi from Bass

    - has WiFi driver built-in waiting for ROM builders or modders to take advantage of
    *we have WiFi here!
    - first release for 5.1.1 based on Bass (Urbane) kernel source that was just released
    - rolled back previous changed as it increased battery consumption

    - ported one of my Kindle Fire modification which I just remembered could impact performance extremely well
    - still has SELinux enabled as stock ROM doesn't play well with it disabled

    - numerous backports from linux 4.0 for timer, scheduler and ARM

    - numerous backports from linux 4.0 for timer, mutex and slub functionality performance improvements

    - tweaked kernel settings according to imoseyon's findings

    - timer optimization

    - merged Motorola's lowmemorykiller tree modification
    - merged latest modifications to ondemand governor

    - uses updated Linaro toolchain
    - integrated 5.0.2 changes in the kernel level (previous change was on the ramdisk level)
    - some performance improvement commits

    - integrated changes for 5.0.2
    *since changes were minimal, this might still work for 5.0.1...do that at your own risk though... :p

    - cherry-picked a patch for fixing the randomly occuring kernel BUG OOPS in smp_send_reschedule

    - fully tickless kernel
    - adjust compiler tweaks even further
    - reduce panel power consumption

    - updated my compiler with 15.01 Linaro gcc release source
    - tweaked more compiler flags for maximum performance

    - first release with 2 kernels for single and dual core by default setup
    - first release using my own compiler
    - additional compiler flag optimizations
    - merged NVidia power efficiency patches together with a scheduler optimization

    - enabled 2 cores and set to ondemand with maximum frequency limited to 800Mhz
    - added several improvements from arter97's G Watch repo namely ARM instruction conversion to bx from mov pc, definition of L1 and L2 cache size for better compiler instruction generation and binder mutex change to real time for surfaceflinger improvement (in layman's term: graphics rendering improvement) :p

    - use compile time constants when possible for jiffies conversion
    - several BT and i2c voltage tweaks to lower power consumption

    - same features as before only for Lollipop

    - enabled partial frame updates to hopefully improve screen power consumption
    *not sure though since it might actually need ROM backing to work :confused:

    - added some filesystem optimizations
    - compiled using Linaro 4.9.3

    - initial public release
    - uses Linaro 4.9.2 for compilation
    - enable use of UDIV/SDIV ARM instructions
    - build-in byte-swap function
    - memutils optimizations
    - memcopy and string libraries now use glibc implementations
    - optimized copy_page functions for ARM

    Flash at your own risk. :)

    You can find my other kernels at:
    GitHub is at:

    XDA:DevDB Information
    intersectRaven's G Watch R Kernel, Kernel for the LG G Watch R

    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2015-02-22
    Last Updated 2015-02-22
    I'll be releasing a new kernel in a bit since Google finally released the 5.1.1 kernel sources for all devices. :)
    Thread closed due to me not wanting to comply with development council's command. Will be maintaining my kernels from my own site from now on. :fingers-crossed:
    I'm getting pretty excited over a recent modification I made. Might of course be nothing but still, this is the first time I saw the expected battery estimate go up from 2 days to 4. :p

    *just me dreaming

    1.) How do I flash this on my device?
    Use the "fastboot flash boot" command since I don't really have the time to support creation of a recovery flashable file. Optionally, you could also use the "fastboot boot" command to use the boot image temporarily which will reset to stock after a restart.
    *also, this device does not have a custom recovery *YET* as of the time of this thread's creation

    2.) How do I return to stock kernel?
    Use the "fastboot flash boot" command using the stock boot image I provided in another thread here. :)

    3.) Will you be releasing frequent updates?
    Right now I don't see anything else needed to improve this kernel as I am quite satisfied with it. You could post suggestions BUT they must have MINIMAL USER INTERACTION or will only seek to enable editing of certain values.

    4.) How do you verify that it flashed correctly?
    Well, if it booted after fastboot showed the "writing" dialog, then it should be ok already. If you're ultra paranoid that maybe fastboot is lying to you or the NSA doesn't want you to know that it didn't overwrite the stock kernel which contains their secret spy stuff that wants to know how frequently you exercise you could enter the ff. command through adb:

    cat /proc/version

    and the kernel should show #7 and intersectRaven there together with the date that the kernel was compiled which is what I use to indicate the release. :)

    5.) I see two files at the link above. What should I flash?
    In the site you'll see single.boot.img, dual.boot.img, multi.boot.img and wifi.multi.boot.img. This indicates how many cores are enabled by default upon boot and if it's wifi ROM ready. If you're a heavy user, you might want to go with dual.boot.img so that you have 2 cores available or maybe multi.boot.img so that it'll adjust to at most 4 cores WHEN NEEDED. If you just use your watch for notifications and want maximum power savings, use single.boot.img.

    6.) What about the wifi.multi.boot.img?
    This is mainly for an ALREADY MODDED ROM (by Tasssadar) OR the URBANE ROM. With this, when you flash you won't need to rerun the update.zip provided by Tasssadar. Again, ONLY RUN THIS ON AN ALREADY MODDED ROM. If you flash this then run Tasssadar's Mod, you WILL encounter errors.

    6.) If I flash the single boot image am I stuck forever with just one core being enabled?
    No. If your watch is rooted, you can enable a core (even all 4 if you wish) through adb. The boot images are merely separated for bootup default convenience.

    7.) How do you enable WiFi?
    Go here.

    8.) How do you convert a partition to F2FS?
    a.) Download the mkfs.f2fs file here.
    b.) Download a custom recovery somewhere and boot it.
    c.) Push mkfs.f2fs somewhere. (tested on /sbin directory)
    adb push mkfs.f2fs /sbin/
    d.) In adb, issue a mount command to find the partition you wish to format.
    *note, you can only format cache and userdata partitions and IF you choose to format the userdata, that's equivalent to a factory reset
    adb -> mount
    e.) Issue the ff. command replacing the X part with the partition you wish to format:
    mkfs.f2fs -l X
    e.g. mkfs.f2fs -l cache /dev/block/mmcblk0p20
    f.) Reboot. :)

    OR use this modified TWRP by lion567! :)