[Kernel] WR2 [3.4.107] [KK] Wiko Rainbow / Micromax C2C A120 [S5501] - Micromax A120 Canvas 2 Colors

Custom kernel for Wiko Rainbow / Micromax C2C A120
(All S5501 clones)
Now both base versions (Wiko/Micromax)
Please read entire post
Code:
[COLOR="Red"][SIZE="4"][B]I or xda is not responsible for any kind of damage to your device. Please read entire post and use it at your own risk![/B][/SIZE][/COLOR]
This project was initiated by @SiddheshK15. Thanks mate.
I just decided to make my own version of the kernel even more customized.
Click to expand...
Click to collapse
Instructions:
Download your base version Micromax or Wiko
Make sure you downloading correct version,
put kernel zip into sd and install zip from recovery
Enjoy the kernel !!
Click to expand...
Click to collapse
Important!!
This kernel (wiko version) is tested on wiko base only
This kernel (mmx version) is tested on mmx base only
If you want to include this in your custom rom take Wiko/Micromax stock rom was base rom and port the desired rom. Abviously with credits for me. including link to the thread.
Click to expand...
Click to collapse
Changelog:
Added by me
WR2-V1.1
Update to 3.4.107
Sitch to HOTPLUG as default governor
Re-Enable some lcm drivers (This can help black screen bug)
Toolchain: Update to Linaro GCC 4.9.3-2015.03
Ramdisk: Re-Enable some services
ExFAT: Disable, need be supported on ROMs
HID: Remove keyboard/mouse support
Revert: LUNs to default
Add bootloader lock/unlock feature
WR2-V1.02
Reverted: mmc:disable crc for better performance <- for data safety- Thanks to @superdragon
WR2-V1.01
Fixed row scheduler + set as default
WR2-V1.0
New kernel WR2 GPL started from 0
Update to 3.4.106
Now MMX A120 variant (Check download version) Thanks to @mr-illusionist for testing
Added same features as WR-Kernel V2.3
F2FS Ready ( Need testing )
update script to detect if model is RAINBOW
Disabled frandom
New interactive build script + fixed
Update Dynamic Fsync to v1.5 by @faux123
VFP optimization tweaks
Build flags by @superdragon
Kill more log spam
OLD VERSION
V2.3
Update script to add init.d to ROM
Update script to detect if model is RAINBOW (If you are ROM porter pls pm)
Zram with kitkat battery fix
Now only ZRAM version (To enable need init.d script)
CFS Responsiveness Tweeks
VM MAX/VM MIN Tweaks
Disable PERF Control
Dynamic Management Of Dirty Page Writebacks MTK fixes
Kill TRACEPOINTS,PROFILING,PERF_EVENTS,STACKTRACE CRAP
FRANDOM Update
FRANDOM Enable now
ExFAT Update
Enable ExFAT DISCARD
Remove cpu-stress
Remove MTK_ETM
Enable ASMP
Optimize ARM RWSEM algorithm
Update RWSEM to Linux 3.10
Add ZEN/VR IO Schedulers
Fix CGROUP_BFQIO
Added weak clz/ctz functions
ext4: Add support for FIDTRIM
Added support for kernel mode NEON
Crypto: create generic version of ablk_helper
Moved VFP init to an earlier boot stage
Added toolchain to github
Update script to make flashable zip
V2.2
Upstream Update to Kernel 3.4.106
Dynamic management of dirty page writebacks
HID-Gadget: Testing Fixes
Added proc/config.gz support
Fixed LZ4
add overall stats for all available cores
MALI: GPU Optimization flags + Tweaks
pegasusq: tune for MT6582 devices
Disable more logging
remove xlog_logger from build
Revert LUNs to default
Ramdisk: Now Insecured by default
Ramdisk: Now adb runnable as root
Ramdisk: Now debuggable
V2.1
Update to latest Linaro Toolchain(4.9.3) Cortex-A7 Optimized (neon-vfpv4)
Set ZRAM size -> 20%
Now 2 kernel version: ZRAM & No ZRAM (for better battery life)
Selinux: switch enforcing -> permissive
binder.c: avoid binder crash and remove MTK stuff (For CM testing)
Introducing ThunderQuake Engine: Set vibrator intensity. Thanks to varun.chitre15 for making the driver
Disable more logging
android-keyboard-gadget support
LUN: increase the number of emulated USB devices 1 -> 3
V2
Upstream Update to Kernel 3.4.105
More I/O Scheduler: FIOPS; BFQ; SIO
Set default I/O Scheduler -> SIO
enable multicore scheduler
Patch for CD-ROM USB Emulation
exFAT support
Reduce gpu utilization timeout + fixes
Remove arm tracer support
mm: set readahead 256 kb
Optimize apply_slack()
TCP Tweaks (Improves network ping and output)
enabled ARCH_POWER
NOATIME and NODIRATIME by default
Kill logspam+++
set zram size to 25%
Compiler optimizations
LOAD_FREQ (4*HZ+61) avoids loadavg Moire
Allow SCHED_HRTICK
remove unnecessary atomic operations
Revert: Optimized mtk wifi driver (Battery Drain)
V1
Compiled with latest Linaro Toolchain(4.9.2) Cortex-A7 Optimized (neon-vfpv4)
Added init.d support into source
add patches from NVIDIA to improve power efficiency
ext4: speed up truncate/unlink by not using bforget() unless needed
LZ4 compression from linux kernel 3.19 rc2
Use LZ4 by defult for less boot-up time
Use LZ4 in crypto instead of LZO
mm: page-writeback: increase dirty ratios
reduce vfs cache pressure for better battery life
lib/int_sqrt.c: optimize square root algorithm
cut alarm spam
Add frandom(/dev/frandom) -Fast kernel number generator
CC_OPTIMIZE_MORE enabled
Improve the performance of memcpy and memmove (by kasperhettinga)
block: Allow 0ms deadline latency, increase the read speed
lib/decompressors: fix no limit output buffer length
Fixed linaro alias to "arm-eabi-"
Click to expand...
Click to collapse
Added by:@SiddheshK15
Added Governors
Added I/O scheduler
Default swappiness set to 60->15
Optimized mtk wifi driver (Battery Drain)
Increased check battery interval from 10 to 15s
Disabled Gentle Fair Sleepers for better UI performance
adjust dirty writeback for IO boost
Optimization for more free ram
Enabled aggressive multicore power savings
Disable crc for better performance
Entropy tweaks
Optimized slub
Hard Float optimizations
Undervolting
Optimize XZ compresion
Enhanced HW Composer
Dyanamic fsync by faux123
Don't build ZRAM (Fixed)
Governors added :
SMARTASS2
INTERACTIVEX
PEGASUSQ <-- Default
ZZMOOVE
LULZACTIVEQ
SAKURACTIVE
NIGHTMARE
CONSERVATIVE
I/O scheduler
row
Click to expand...
Click to collapse
Credits:
@ariafan
@varun.chitre15
@faux123
@superdragon
@SiddheshK15
@suribi
Many changes extracted from their jobs.
Downloads:
WR2-Kernel-V1.1-WIKO
WR2-Kernel-V1.1-MMX
WR2-Kernel-V1.02-WIKO-MIUIv6
Please Review My Kernel Here
Bugs report Here
Feature Requests Here
Kernel Version: 3.4.107
ROM Firmware Required (WIKO): ALPS.KK1.MP1.V2.10 / Wiko Rainbow Vxx
ROM Firmware Required (MMX) : S5501BP_MP_MMX_IN_10 / MMX KK FOTA
XDA:DevDB Information
WR2-Kernel, Kernel for all devices (see above for details)
Contributors
moonrotation
Source Code: https://github.com/Al3XKOoL/WR2-Kernel
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: V1.1
Stable Release Date: 2015-05-22
Current Beta Version: none
Created 2015-01-15
Last Updated 2015-06-02

Great. Keep up the great work and serve the community

Just tried your kernel. Its good.
However i would like to see the changelog. Update it soon buddy. And good work [emoji106]

Thanks guis!! Now im testing upstream merge to kernel 3.4.69
Soon more updates

Kernel 3.4.105 - Beta Stage
I added link with Beta kernel 3.4.105 and more I/O Scheduler:
FIOPS
BFQ
SIO
Enjoy!!

Hi,
antutu says ca. 20400 , befor 20200. The device has a quick response, great ...
Looking forward.. Thx
Gesendet von meinem RAINBOW mit Tapatalk 2

Hi,
Thank you for this impresive kernel!
Two requests:
1) Can you include exFAT support for SD cards?
2) Can include this patch for CD-ROM USB Emulation? http://forum.xda-developers.com/showthread.php?t=2196707
Please, continue supporting custom kernels for Wiko

manos78 said:
Hi,
Thank you for this impresive kernel!
Two requests:
1) Can you include exFAT support for SD cards?
2) Can include this patch for CD-ROM USB Emulation? http://forum.xda-developers.com/showthread.php?t=2196707
Please, continue supporting custom kernels for Wiko
Click to expand...
Click to collapse
Thanks !! :good:
Please try exFAT on this test version. Waiting for report :fingers-crossed:

Hi,
I'll try the exFAT support when I reformat my current SDCard. However I can confirm that this beta kernel with exFAT support works and "cat /proc/filesystems" returns exfat.
Now, another suggestion: The ZRAM support in the Mediatek kernels is hardcoded in size. If you review the file "/kernel/drivers/staging/zram/zram_sysfs.c" you can note the comment "/* Fix disksize */". In the initialization is used the constant "default_disksize_perc_ram" that is fixed to 50% of RAM in the file "zram_drv.h". I suggest to change the default value to 25 (orignal value from Google developers). I can't understand why Mediatek has hardcoded this value. This creates the ZRAM totally useless!
Please, can you change this value and recompile the kernel?
Thank you!

manos78 said:
Hi,
I'll try the exFAT support when I reformat my current SDCard. However I can confirm that this beta kernel with exFAT support works and "cat /proc/filesystems" returns exfat.
Now, another suggestion: The ZRAM support in the Mediatek kernels is hardcoded in size. If you review the file "/kernel/drivers/staging/zram/zram_sysfs.c" you can note the comment "/* Fix disksize */". In the initialization is used the constant "default_disksize_perc_ram" that is fixed to 50% of RAM in the file "zram_drv.h". I suggest to change the default value to 25 (orignal value from Google developers). I can't understand why Mediatek has hardcoded this value. This creates the ZRAM totally useless!
Please, can you change this value and recompile the kernel?
Thank you!
Click to expand...
Click to collapse
Thanks for test!
Google maintains the same config. You can see here:
kernel/mediatek/+/android-4.4.4_r4/drivers/staging/zram/zram_drv.h
Also Siddhesh.K15 disable zram (battery drain). But I can make a test version.

Hi,
This repository has the MEDIATEK sources, from Mediatek, not Google or Wiko. So it's this company who has included this hardcoded size of ZRAM. My problem is that with 50% of 1GB RAM the ZRAM size is 512MB compressed (with 3:1 it's around 200MB of RAM). This is a lot of memory. I suggest to change this value to 25% of physical RAM, not 50% as now. It's only one line of code! If the user don't use ZRAM (disabled by default), nothing changes, but when s/he enables ZRAM, the new size will be more interesting. I feel Mediatek fixed the value thinking on devices with 512MB of RAM, not 1GB. Also, I'm sure that all devices with Android 4.4 and Mediatek CPUs have this "bug"!
I hope, someone in the future eliminates this restriction.
Regards!

manos78 said:
Hi,
This repository has the MEDIATEK sources, from Mediatek, not Google or Wiko. So it's this company who has included this hardcoded size of ZRAM. My problem is that with 50% of 1GB RAM the ZRAM size is 512MB compressed (with 3:1 it's around 200MB of RAM). This is a lot of memory. I suggest to change this value to 25% of physical RAM, not 50% as now. It's only one line of code! If the user don't use ZRAM (disabled by default), nothing changes, but when s/he enables ZRAM, the new size will be more interesting. I feel Mediatek fixed the value thinking on devices with 512MB of RAM, not 1GB. Also, I'm sure that all devices with Android 4.4 and Mediatek CPUs have this "bug"!
I hope, someone in the future eliminates this restriction.
Regards!
Click to expand...
Click to collapse
Changes have been established. Soon I send a version with zram enabled for you. Thank You.:good:

Wr-v2 final
V2 FINAL download link added​

moonrotation said:
V2 FINAL download link added​
Click to expand...
Click to collapse
going to test it soon :good: :fingers-crossed:

Hi,
Testing version WR-V2. First feeling: awesome! Very good! Thank you!
ZRAM at 25% it's great!
For DriveDroid patch: I can't select "Function Swtich in Android kernel". Are you sure that this version includes the patch and has cdrom support?
Thank you man!

manos78 said:
Hi,
Testing version WR-V2. First feeling: awesome! Very good! Thank you!
ZRAM at 25% it's great!
For DriveDroid patch: I can't select "Function Swtich in Android kernel". Are you sure that this version includes the patch and has cdrom support?
Thank you man!
Click to expand...
Click to collapse
Patch here:
https://github.com/Al3XKOoL/tinno82_S5501/commit/08765643d7ccab50e6d9f532bada4b7d7b372e9a
I test it soon.

moonrotation said:
Patch here:
https://github.com/Al3XKOoL/tinno82_S5501/commit/08765643d7ccab50e6d9f532bada4b7d7b372e9a
I test it soon.
Click to expand...
Click to collapse
YES, it's works! When I select an ISO or IMG in DriveDroid, now it's possible to select USB ro, USB rw and CDROM.
I continue testing ZRAM with different values.
Thank you!

manos78 said:
YES, it's works! When I select an ISO or IMG in DriveDroid, now it's possible to select USB ro, USB rw and CDROM.
I continue testing ZRAM with different values.
Thank you!
Click to expand...
Click to collapse
The kernel does not support zram now. Soon I will send a compiled version with zram support.
And if you are so kind you can test the battery consumption.
Thanks for testing.

manos78 said:
I continue testing ZRAM with different values....
Click to expand...
Click to collapse
Here zram version.

Hello everyone ... first of all I want to thank the author ... its fantastic ...
how can I disable the power saving multicore ??

Related

[ROM][LINARO] CyanogenMod 11 Modified Edition [09/09/14]

FEATURES:
- kernel build with Linaro 4.10
- ROM build with GCC 4.9.1
- optimized with JustArchy's modifications
- O3 flags
- GPU overclock up to 585 MHz
- CPU overclock up to 2 GHz / 2.3 GHz
- Undervolting/Overvolting support
- full F2FS support (tnx M1cha for help)
- USB fast charging
- Intelliplug along with Intelliactive and Intellidemand governors
- Thermal control
- SIO and FIOPS I/O governors
- DT2W and S2W
- "Snake Charmer"
- bunch of TCP congestions
- kernel side NEON support
- more to come soon
NOTES:
- Install this Play Store if you get distorted colors inside it
https://copy.com/SWPxZd3fp47KzOJU
- To take control over GPU and CPU install Trickster MOD and navigate to 'Specific' tab
- Further kernel release since 19/07/14 wont be compatible with ROMs not formated on F2FS
- If you are installing 20/07/14 or later build be sure to flash Philz recovery and use toggle button
INSTRUCTIONS:
- Download and flash Philz recovery
- Boot into it and navigate to Mounts and storage
- Press Toggle F2FS/ext4 migration
- Select format /system and then select F2FS
- If you are installing this ROM with F2FS support for first time do same for data partition to
- Flash ROM and gapps
FAQ
- Its not booting,what do I do?
First check if your /system partition is big enough,for now it needs to be at least 800 MB and if you are installing full Gapps aim at 900 MB,if its still not booting be sure /data partition is formated to f2fs.
- I get errors while flashing.
Download this repartition.sh (or flashable zip repartition.zip) and follow instructions here and dont forget to say tnx to M1cha
PARTITION TABLE:
/system0 - 900mb
/system1 - 10mb
/cache - 10mb
/data - 4.3gb
Click to expand...
Click to collapse
- Benchmarks are low and phone lags!
Underclock your GPU to 400 MHz or raise your Frequency (default 60 C) and Core (default 80 C) throttling temperature (you can do that via FauxClock or Trickster MOD app)
DOWNLOAD:
ROMS:
- https://copy.com/vcZKrSmZzL9ZP3Ou (19/07/14)
- https://copy.com/nj98l4LkXhc4wNhY (20/07/14)
- https://copy.com/jqwPKCfXxlKOy6Zl (24/07/14)
- https://copy.com/YwJBreNYkYvg7XWv (06/08/14) - (flash this after ROM otherwise it wont boot)
- http://www.mediafire.com/download/t1dwnmw6r9i17wn/cm-11-20140808-UNOFFICIAL-aries.zip (08/08/14)
- http://www.mediafire.com/?clcdm328kx588MHz (14/08/14)
- https://mega.co.nz/#!S1Zw3BpA!AWjS0...VYAWjS0aROoRarxhupMu6vmQt3jvptqZJVDalxOoD9JVY (18/08/14)
- https://mega.co.nz/#!HxZUlARY!KQ24nc1klj9d16hUq0H4WrE2b0bBKsAIs-lk7lp1tgg [27/08/14]
- https://mega.co.nz/#!m0J0nJ6b!-s87OyxYrwy1VrN1gVZZZ8uR21-glBUc_wRqM8D5Q64 [09/09/14]
KERNELS:
- https://copy.com/YBY1VKZVsCUgSv9f (19/07/14)
- https://copy.com/WImWRKQTbVEmU4JB (5/8/14)
- http://www.mediafire.com/download/4ywwgaxgt2abtg3/CM11-OC.zip (13/08/14)
- http://www.mediafire.com/download/ac3477u6d0kbjqf (15/08/14)
- http://www.mediafire.com/download/u8of429rgd5akrh (15/08/14) OC ULTIMATE
- https://mega.co.nz/#!20p0nYAa!seDqQvM-2tNF2Wu_1O96yVQOzt-sSSF1koqjAvaDRoA (18/08/14)
- https://mega.co.nz/#!6tAHAYqR!EK9I8KVF1c8fNSKvIaOXXpnTIP-VkyLsJpH3NEVFH0U (19/08/14)
- https://mega.co.nz/#!n5gUgSja!ryc6Tq61yRfJUabc4iaPCnminoP0VAFRTIPWHOrWNAU (28/08/14) - ext4
- https://mega.co.nz/#!utQGBbIK!8H6S2yZwz1hLrVJ3AE_AT0a16TAN4aXxDQqw3RoeIyI (28/08/14) - 2.3ghz
RECOVERY:
- https://copy.com/xZPPI2F9EFYkADEp (20/07/14) V1 (ext4)
- https://copy.com/gaksOrH94OR3fZWy (20/07/14) V2 (f2fs)
- https://copy.com/Xmd3PNVQL0sNFHFB (23/07/14) Philz (ext4/f2fs)
KERNEL SOURCE
https://github.com/XperianPro/cyanogen_modified_edition_aries (15/08/14)
CHANGELOG:
18/07/14
- initial release
19/07/14
- updated CM
- fixed bootloop
- added F2FS support (kernel side)
20/07/14
- updated CM
- added F2FS support (ROM and recovery side)
23/07/14
- ported latest Philz touch recovery with F2FS and ext4 support
24/07/14
- updated to latest CM
- fixed ART
- modified updater-script for easier user installation
25/07/14
- provided repartition.sh to allow users easier ROM installation
05/08/14
- updated kernel
- added USB fast charge
- compiled with Linaro 4.9.1
- Thermal control
- added bunch of intelli stuff (intelliactive,intelliplug...)
- added I/O governors SIO and FIOPS
06/08/14
- updated CM
- compiled ROM with 4.9.1 GCC toolchain
- updated kernel
08/08/14
- updated CM
- compiled kernel with Linaro 4.10 toolchain
- fixed boot issue
- added optimized dalvik and bionic libraries
- added Tap2Wake and Swipe2Wake (EXPERIMENTAL)
10/08/14
- added flashable repartitioning program (EXPERIMENTAL)
11/08/14
- minor updates to repartition.zip
13/08/14
- added CPU OC up to 2 GHz
- added GPU OC up to 585 MHz
14/08/14
- updated CM
- during boot max frequency is now 1728 MHz
- added "Snake Charmer"
15/08/14
- added overclock for MI2
- added ultimate OC version with overclock up to 2.3 GHz
- enabled DT2W and S2W again
18/08/14
- updated CM
- added kernel side NEON support
- added bunch of TCP congestions
- minor ARM optimizations
- tried to fix CPU frequency limit
18/08/14 - 2
- limited booting frequency to 1836 MHz
- disabled "Optimize for size" config
- fixed MI2 overclock
19/08/14
- modified frequency table a lot (see here)
- switched to ondemand as default governor
- minor tweaks
- fixed charging and some other battery issues
27/08/14
- updated CM
- minor enchantments to ART
- minor kernel update
28/08/14
- added kernel with ext4 support
- added kernel with 2.3 GHz support
09/09/14
- updated CM
- some minor tweaks to kernel
Click to expand...
Click to collapse
If you saw some cool kernel/ROM feature feel free to post it here and I will check it out.
If you like my work and you wish to donate click here.
Is it me or indellidemand doesn't work?Reboots phone.I'm using the ext4 kernel with CM11.
p.s. Nice to see you here guys
T3sla said:
Is it me or indellidemand doesn't work?Reboots phone.I'm using the ext4 kernel with CM11.
p.s. Nice to see you here guys
Click to expand...
Click to collapse
No it doesnt work with newest toolchain.
Any new version of your kernel coming, xperianPro?
oile said:
Any new version of your kernel coming, xperianPro?
Click to expand...
Click to collapse
I will see this Weekend.
hello,
could you upload your source to lastest revision? Thanks.
XperianPro said:
I will see this Weekend.
Click to expand...
Click to collapse
Please don't forget the ext4 version
s2w
Pls add function S2W in next build! Thank you. And maybe delete not work governors.
siropchik said:
Pls add function S2W in next build! Thank you. And maybe delete not work governors.
Click to expand...
Click to collapse
You can download older kernel versions to test them out but as I said numerous of times,its not stable and it gives problems to 99% percent of users (other 1% percent reported to work OK but they never complained to add S2W again)
@XperianPro
Hello, for my nexus 10's kernel I have added a sh script that at boots mount the partition according to which formatter has been used to format them.
Here is my script and my fstab. That way, you can make an universal kernel.
You just need to add this line into your init.target.rc
C:
exec /sbin/busybox sh /check_fs.sh
before
C:
mount_all /fstab.aries
Khaon said:
@XperianPro
Hello, for my nexus 10's kernel I have added a sh script that at boots mount the partition according to which formatter has been used to format them.
Here is my script and my fstab. That way, you can make an universal kernel.
You just need to add this line into your init.target.rc
C:
exec /sbin/busybox sh /check_fs.sh
before
C:
mount_all /fstab.aries
Click to expand...
Click to collapse
Thanks,I looked for universal but coudnt find one,hopefully yours will work
XperianPro said:
Thanks,I looked for universal but coudnt find one,hopefully yours will work
Click to expand...
Click to collapse
I assume that this script is only for f2fs\ext partition dual version problem.. but not for universal kernel (flash your kernel in miui/ moonlight roms for example)
paul89rulez said:
I assume that this script is only for f2fs\ext partition dual version problem.. but not for universal kernel (flash your kernel in miui/ moonlight roms for example)
Click to expand...
Click to collapse
Hope it is...
T3sla said:
Hope it is...
Click to expand...
Click to collapse
I will try to make anykernel version this weekend and with mounting issue fixed I think it will work great.
http://forum.xda-developers.com/showthread.php?t=2670512
Anykernel 2.0 maybe this will help..
Hi XperianPro
Where can I down gapps?
I flashed the one downloaded from here, but missing play market.
http://wiki.cyanogenmod.org/w/Gapps
20140606
droople said:
Hi XperianPro
Where can I down gapps?
I flashed the one downloaded from here, but missing play market.
http://wiki.cyanogenmod.org/w/Gapps
20140606
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2397942 try PA gapps. Do a clean install as flashing Gapps over another Gapps can cause lots of issues.
Sent from my Ice Cold M8. S-OFF.
pball52998 said:
http://forum.xda-developers.com/showthread.php?t=2397942 try PA gapps. Do a clean install as flashing Gapps over another Gapps can cause lots of issues.
Sent from my Ice Cold M8. S-OFF.
Click to expand...
Click to collapse
I wiped everything and reflashed cm11, and reflashed gapps, now everything is ok.:laugh:
droople said:
I wiped everything and reflashed cm11, and reflashed gapps, now everything is ok.:laugh:
Click to expand...
Click to collapse
Glad it worked!! :good:
Sent from my HTC One M8 Running Elix-R. S-OFF.
.
Thank you for your great work

J700P/j7ltespr [KERNEL]-[Touchwiz]-[6-10-17] Ani-kernel V0.4

This kernel will not be overloaded with tons of I/O and CPU schedulers and useless features. I will test and merge what works best and probably provide 1-2 different options on hotplugs.
Disclaimer: DO NOT FLASH THIS ON ANYTHING BUT J700P latest stock firmware.
It may not brick your device if you do because it uses the ramdisk on the device but it will definitely boot loop at the least.
Update 6-10-17
Version 0.4
Complete rebase. Now using Minz1's base with TONS of fixes from CAF and we are working on merging LTS point releases.
This is the result of I and Minz's work.
This release I was mostly working for stability and optimization again. I haven't merged in any I/O or CPU schedulers yet.
I don't have time to list the features so check git if your curious.
I updated the link to the new repo.
Download:
https://drive.google.com/file/d/0B22ZNBermHGrZjlnUmNFRl9JeW8/view?usp=drivesdk
Update 6-9-17
Version 0.3
Compiled with UberTC GCC 5.3
Stability fixes
Added intellli-thermal
Anyone have any feedback or suggestions/questions please feel free to comment.
Version 0.2
- SAMSUNG_RESTRICT_ROOTING disabled (I forgot to disable this on the first build). Root works fine now. SuperSU root would work anyway but works better now with no issues at all
- More low level optimizations. Check git for details. Faster, power efficient, etc.
- Compiled with UberTC 4.9 instead of the included arm-eabi 4.8 toolchain. Will be switching to a GCC 5.x or GCC 6.x UberTC or Linaro toolchain next build, or two.
- Dynamic Fsync.
- Powersuspend driver​.
- CPU frequencies can be changed and set permanently in kernel Adiutor.
- Kcal screen/color control.
- BFQ I/O scheduler.
- Random fixes here and there.
Check source for all changes.
Version 0.1
Default hotplug is mpdecision in-kernel replacement by fluxi
Download:
https://drive.google.com/file/d/0B22ZNBermHGrWEZoOHpLMTVGNEU/view?usp=drivesdk
Source:
https://github.com/animania260/android_kernel_samsung_msm8929/tree/staging
Big shout-out to Minz1. He helped me get the WiFi working (again) so otherwise this may not have even been possible. It was really kicking my ass.
Virgin mobile galaxy J727P
animania260 said:
This kernel will not be overloaded with tons of I/O and CPU schedulers and useless features. I will test and merge what works best and probably provide 1-2 different options on hotplugs.
Disclaimer: DO NOT FLASH THIS ON ANYTHING BUT J700P latest stock firmware.
It may not brick your device if you do because it uses the ramdisk on the device but it will definitely boot loop at the least.
Update 6-10-17
Version 0.4
Complete rebase. Now using Minz1's base with TONS of fixes from CAF and we are working on merging LTS point releases.
This is the result of I and Minz's work.
This release I was mostly working for stability and optimization again. I haven't merged in any I/O or CPU schedulers yet.
I don't have time to list the features so check git if your curious.
I updated the link to the new repo.
Download:
https://drive.google.com/file/d/0B22ZNBermHGrZjlnUmNFRl9JeW8/view?usp=drivesdk
Update 6-9-17
Version 0.3
Compiled with UberTC GCC 5.3
Stability fixes
Added intellli-thermal
Anyone have any feedback or suggestions/questions please feel free to comment.
Version 0.2
- SAMSUNG_RESTRICT_ROOTING disabled (I forgot to disable this on the first build). Root works fine now. SuperSU root would work anyway but works better now with no issues at all
- More low level optimizations. Check git for details. Faster, power efficient, etc.
- Compiled with UberTC 4.9 instead of the included arm-eabi 4.8 toolchain. Will be switching to a GCC 5.x or GCC 6.x UberTC or Linaro toolchain next build, or two.
- Dynamic Fsync.
- Powersuspend driver​.
- CPU frequencies can be changed and set permanently in kernel Adiutor.
- Kcal screen/color control.
- BFQ I/O scheduler.
- Random fixes here and there.
Check source for all changes.
Version 0.1
Default hotplug is mpdecision in-kernel replacement by fluxi
Download:
https://drive.google.com/file/d/0B22ZNBermHGrWEZoOHpLMTVGNEU/view?usp=drivesdk
Source:
https://github.com/animania260/android_kernel_samsung_msm8929/tree/staging
Big shout-out to Minz1. He helped me get the WiFi working (again) so otherwise this may not have even been possible. It was really kicking my ass.
Click to expand...
Click to collapse
Yes I tryd out vo.2 kernel on my old J700P work great gets a 10,000 in Quadrant standard with out any build prop tweaks nice job I'll try the v0.4 later and get back to you !

[Mi5S Plus][KERNEL][HMP/MIUI][Linux 3.18.31] Floppy Kernel [RC1.3][13/01/18]

[Mi5S Plus][KERNEL][HMP/MIUI][Linux 3.18.31] Floppy Kernel [RC1.3][13/01/18]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Floppy is kernel for all custom rom based on LineageOS 14.1, 15.1 and Miui , support the Xiaomi Mi5S Plus
Code:
#include <disclaimer.h>
* Your warranty is now void. *
* No guaranteed this'll explode your device, be careful, follow the instructions ! *
*don't point at me if your alarm dies after flashing this kernel ! *
Based on Linux Kernel 3.18.31
Based on LineageOS Kernel
GCC Linaro 7.2.1, UBERTC 8.0, SaberMod 7.0 and Google 4.9
Governors: Impulse, Despair, Zzmove, Darkness, Blu_active, ElementalX, Interactive, Conservative, Ondemand, Powersave, Lionheart, Userspace, Bioshock, Alucard, Hyper, Wheatley, Nightmare, Dancedance, Adaptive, Pegasusq, Chill, Cafactive and Performance.
I/O Schedulers: Noop, Deadline, Cfq, Fiops, Bfq, Zen, Sio, Sioplus, Maple and Tripndroid.
Compiled with -Os
Full Linaro Optimizations ON
Optimized Parameters from L Speed @Paget96
Google Snappy Algorithm
ARM RWSEM Algorithm
Charge Control module - credits : xNombre
Wireless adapter (LIB80211, RTL8180, RTL8187, MAC80211, EEPROM: LEGACY, MAX6875, 93CX6, 93XX46)
Spectrum support
Kexec HardBoot support
Wireguard
Kernel Samepage Merging (KSM)
Dynamic File Sync and Asynchronous FIle Sync - credits : andip71 | Francisco Franco
Passing SafetyNet
[*] Frandom - Entropy Generator
USB OTG NTFS r/w Support
SYSInterface Gentle Fair Sleepers
[*] Some CFLAGS optimizations
Performance enhancements
OC Slimbus frequencies to provide better sound quality
Lazyplug - credits : arter97 | frap129
Backlight Dimmer
Arch Power saving - credits : kirananto | Cl3Kener
Adreno Idler- credits : arter97 | yarpiin
[*] Intelli-Thermal v3.0 - credits : faux123
Support f2fs, exfat, ntfs filesystem
Quick WakeUp Driver and power suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin | Francisco Franco
Support cpu boost, cpu input boost and fingerprint boost
MDSS color control (Kcal v2) - credits : flar2 | andip71
Sysfs interface to Enable/Disable CRC - credits : whyorean
[*] Sysfs interface CPU Vdd levels
Boeffla wl blocker v1.1.0: sensor_ind, msm_hsic_host, wlan_rx, wlan_ctrl, wlan, ipa, qcom rx and more - credits : Francisco Franco | andip71
Vibration Control Intensity
TCP Congestion Algorithms: Westwood (default), Reno, Bic, Highspeed, Hybla, HTCP, Vegas, Scalable, Lp, Yeah and Illinois.
And much more!
First time:
Reboot to recovery
Flash FloppyKernel.zip
Flash magisk (optional to get root)
Wipe cache e dalvik cache
Reboot
Update the kernel:
Reboot to recovery
Flash FloppyKernel.zip
Wipe cache e dalvik cache
Reboot
Coming from another kernel:
Reboot to recovery
Flash your ROM
Flash FloppyKernel.zip
Flash magisk (optional to get root)
Wipe cache e dalvik cache
Reboot
Floppykernel
FloppyKernel's Autonomous Builds
FloppyTeam
FloppyReleases
Donate here, if you like my work!!!
LineageOS
Mi5Devs
@GreekDragon
XDA:DevDB Information
FloppyKernel, Kernel for the Xiaomi Mi 5s Plus
Contributors
Jonas Cardoso, InsideMuz
Source Code: https://github.com/JonasCardoso/android_kernel_xiaomi_msm8996
Kernel Special Features: A magical support, I am all day here, reading the publications of the posts, ready to help in any doubt (unless you have not read the OP that contains the information that you need).
Version Information
Status: Stable
Current Stable Version: RC1.3
Stable Release Date: 2018-01-13
Created 2017-12-22
Last Updated 2018-08-20
RC1 - 28/11/2017
Changes from source "LineageOS/android_kernel_xiaomi_msm8996"
kernel: support for GCC 5, 6 and 7
cpufreq: added new governor
block: added new iosched
filesystem: add NTFS r/w support
power : power_suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin
sched: Add SysInterface for GENTLE_FAIR_SLEEPERS
int_sqrt: Improve 3x faster integer sqrt
sync: Dynamic Sync Control 2.0
fs: Async I/O latency to a ssd greatly increased, 34% gain (Creds: kl…
include: Set 1024KB as Max Read ahead - more performance now
thermal : intelli-Thermal v3.0
ASoC: wcd9335: Sound control
msm8996: all variants same clock
staging: Google Snappy
Power : Add Quick WakeUp Driver
cmdline: Safetynet
fs: add exfat support
cpufreq: show cpu voltages via sysfs 009a6c0
cpufreq: Add CPU Input Boost Driver : SultanXDA
cpufreq: cpu-boost: Optimizations
fs: Dynamic Sync Control 2.0 and MDSS color control
drivers: Slimbus Overclock
gemini: Enable All TCP Congestion Algorithms
OC : Standard MSM8996 Frequency CPU | GPU
devfreq : Add Adreno Idler
cpufreq: add fingerprintboost and lazyplug
drivers: intelli-Thermal v3.0
version: floppykernel RC1
RC1.1 - 10/12/2017
SoundControl: fixed speaker \o/
ramdisk: add tweaks on init.floppy.rc
char: disabled frandom
gemini: enabled ksm
gcc: support gcc 7.x and 8.0 (Linaro and UBERTC)
zip-creator: add spectrum support
drivers: misc: implement usb fast charge mode
version: floppykernel RC1.1 62e569c
zip-creator: delete zip build 8ae3d63
RC1.2 - 27/12/2017
android: binder
ALSA: compress: Add DSD format support for ALSA
ALSA: compress: Add APTX format support in ALSA
firmware: Update synaptic
firmware: Update fte8716
spectrum: don't change clock cpu
kernel: added support to lithium
kernel: added support to natrium
kernel: added support to scorpio
msm8996: Overclocking frequencies
msm: qdsp6v2: Allow 320K AAC encoding
Add Kexec HardBoot Support
Revert "drivers: intelli-Thermal v3.0"
Merge tag 'LA.UM.5.5.r1-06400-8x96.0' into HEAD
drivers: staging: Update qcacld-2.0 driver
version: floppykernel rc1.2
build.sh: update device.prop
defconfig: CPU and GPU more battery-friendly
wakeup: More Wakelocks
RC1.3 - 13/01/2018
zip-creator: update AnyKernel2
build.sh: update device.prop
defconfig: CPU and GPU more battery-friendly
zip-creator: update AnyKernel Setup
wakeup: More Wakelocks
msm: mdss: kcal: Add KCAL support for post processing control [v2] 6b40a22
zram: LZ4 after LZ0
block: Add Maple I/O Scheduler
zip-creator: Patch to remove dm-verity
gcc8: fix warnings
defconfig: Wireless Adapter
net/wireguard: add wireguard importer
zip-creator: device check
dtbTool: now dtbTool will be built
travis: GitHub Release
zip-creator: update patchs
boeffla_wl_blocker: update to wakelock blocker driver v1.1.0 3efdcbf
defconfig: enable lazyplug a9785fe
defconfig: enable adreno idler a5d0558
cpufreq : Add Chill CPU Governor - credits : Joe Maples (@frap129) 6d26826
cpufreq: Add CAF-Active Governer - credits : Jean-Pierre Rasquin 4ba764b
version: floppykernel rc1.3 34479b6
travis: deploy in lineage-14.1 branch e5f4308
Frequently asked questions
Q: Will this conflict with any mod I'm using?
A: As long as it doesn't have any entropy related stuff, its okay. Since the kernel already comes with an inbuilt entropy generator, it will conflict with the ones from mod, causing a poor, stuttered performance!
Q: Deep Sleep isnt working for me, Google Services causing wake-locks, what to do?
A: Go to settings, Privacy, Privacy Guard, All apps, long press Google Services, and deny/disable wake-locks! (Thanks to @Paget96 for the solution)
Q: Which version should I flash?
A: Flash kernel with toolchain that you prefer.
Q: What is the difference between the UBERTC, Linaro, SaberMod and Google toolchain? Which one is the best?
A: It's a good read on the toolchain UBERTC you are wanting to know more about it, this for Linaro, this for SaberMod and this for Google.
Q: What is the difference between the HMP and Miui kernel?
A: Miui folder is for miui roms -> xiaomi.eu, MiuiBR and other derivatives from miui official. HMP folder is for aosp rom and derivatives -> Aosp, Lineage and other derivatives from aosp
Q: Is your kernel secure?
A: You MAY face some issues, but it's safe! My cell phone has not exploded yet.
Q: WiFi doesnt work for me.
A: Reflash ROM and Kernel.
Q: What application can I use to configure the kernel?
A: Use Spectrum, and if you have enough knowledge of what to modify or do in the application use together Kernel Adiutor.
Q: Can I use the kernel source in my ROM?
A: If you want to use my kernel in your ROM, just put my name in the credit, just like I did.
Q: Does your kernel support writing to the NTFS file system?
A: Yeeh, you can use flash drives and HD with NTFS via OTG.
Q: My cpu clock is locked with any governor.
A: Just disable the thermal control in the kernel temperature settings.
Q: I have problems with your kernel.
A: Take a logcat and kmesg, this website and this video should help you
Q: Why does my magisk and root disappear after installing your kernel?
A: The kernel script makes changes that directly interfere with both, reinstall the magisk that it will function normally, follow this installation line always: FloppyKernel -> Magisk -> Reboot system.
Q: Does your kernel support Miui ROM?
A: Yes, support was added in "RC1.2".
Q: Why did your kernel go straight to "RC1.2"?
A: Because it is based on the FloppyKernel for MI5, which is already in RC1.2.
Q: What is the "Battery" profile in the spectrum?
A: Based on Project Zhana & X.A.N.A was made for trying to be as efficient as possible without compromising the performance. Thanks to the discovery on Voltages used by our SD820 I could make a profile that utilizes more the BIG cluster. My first attempt was to move ALL the load to the BIG cluster, it was against anything that I have learned about little. BIG CPU but I tried, it turned really good at first, low usage was just amazing... But on more usage things didn't go that good. So what I did it was to give a twist to things, but not such twist. It kind of works like Nameless and Shotgun, Mostafa Wael and I worked the same idea. #LITTLE cluster will be running on low-mid frequencies but delivers full performance when is needed. # BIG Cluster will help LITTLE ease Load, but in a great way than before. Things can be done faster and more efficient giving us profit in form of battery. It should run smooth on all scenarios, but you guys tell me. You can easily get around 7~9 hours SOT for 24 hours even more If you don't play game. This will, of course, may vary, but it will definitely be better.
Q: What is the "Balanced" profile in the spectrum?
A: Based on GhostPepper was made to uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life. Really well-defined clock speed escalation for a good battery and performance.
Q: What is the "Performance" profile in the spectrum?
A: Based on FusionP this profile brings a more "agressive" way to scale frequencies. It will scale frequencies sooner(regarding load values from cpu) and will use more the big cluster to provide more performance doing the tasks on hands. Battery should not take a big hit but using heavy demanding tasks you can expect a higher drain.
Q: What is the "Gaming" profile in the spectrum?
A: Based on Burnout PR5, this profile's main goal is to provide absolute maximum performance when needed, but lies low quite well. You see, some times I see the CPU hitting some of the high freqs of 1190 while making something as simple as watching YouTube or playing some spotify tracks needlessly, and sometimes I feel it is a bit slower than it should be in things like brute multitasking. Most profiles do aim at bringing a mid-ground to rest on. But with the sensible words of one of my favourite idols Jeremy Clarkson, he says 'Power solves everything' and right he is. By eliminating the mid freqs of the Little cluster and efficiently using some specific frequency steps, you get some power savings by staying on lower freqs as much as possible, and even on brutal tasks you get the job done faster as well, since the CPU will give you all the power to finish the job as fast as it can, and hit back to idle faster.
Q: I want more information about your spectrum profiles.
A: Read this thread.
Q: I want more information about governors, I/O Scheduler, Hotplug, TCP Algorithms and other things.
A: Read this thread.
wifi no work
kuto232 said:
wifi no work
Click to expand...
Click to collapse
I need log and some info
1 - what rom you are using?
2 - what kernel version?
kuto232 said:
wifi no work
Click to expand...
Click to collapse
about viperOS wifi does not work with any kernel:crying::crying:
---------- Post added at 12:44 AM ---------- Previous post was at 12:42 AM ----------
Jonas Cardoso said:
I need log and some info
1 - what rom you are using?
2 - what kernel version?
Click to expand...
Click to collapse
viperOS
I also do not know which is the ideal one or if it is only for miui
kuto232 said:
about viperOS wifi does not work with any kernel:crying::crying:
---------- Post added at 12:44 AM ---------- Previous post was at 12:42 AM ----------
viperOS
I also do not know which is the ideal one or if it is only for miui
Click to expand...
Click to collapse
Which version did you install? HMP or Miui? Linaro, Ubertc, Sabermod or Google?
Jonas Cardoso said:
Which version did you install? HMP or Miui? Linaro, Ubertc, Sabermod or Google?
Click to expand...
Click to collapse
all ... it is necessary twrp 3.2.0 I have the 3.0.2
kuto232 said:
all ... it is necessary twrp 3.2.0 I have the 3.0.2
Click to expand...
Click to collapse
You installed miui version first? In zip have modules for wifi which are for roms miui
Jonas Cardoso said:
You installed miui version first? In zip have modules for wifi which are for roms miui
Click to expand...
Click to collapse
no, I do not come from miui it took a long time without using that rom
kuto232 said:
no, I do not come from miui it took a long time without using that rom
Click to expand...
Click to collapse
Can you test if in lineage 14.1 works wifi?
Jonas Cardoso said:
Can you test if in lineage 14.1 works wifi?
Click to expand...
Click to collapse
ok then I commented, any kernel should serve?
kuto232 said:
ok then I commented, any kernel should serve?
Click to expand...
Click to collapse
Use Linaro-HMP
Jonas Cardoso said:
Use Linaro-HMP
Click to expand...
Click to collapse
no work,it does not work, it searches but it does not find in lineage 14.1
I am on lineage which one should i flash?
walkwitmeinhel said:
I am on lineage which one should i flash?
Click to expand...
Click to collapse
UBERTC - Linaro - Google -SaberMod --HMP
Jonas Cardoso said:
UBERTC - Linaro - Google -SaberMod --HMP
Click to expand...
Click to collapse
I am confused bro in that option which one
walkwitmeinhel said:
I am confused bro in that option which one
Click to expand...
Click to collapse
Linaro-HMP
I flashed your kernel linaro and working like charm everything working for me using lineagee 14.1 ..Thanks you dev for development of this device kernel
Thank you for your kernel. Do you consider adding ROW I/O scheduler?
https://groups.google.com/forum/m/#!topic/bfq-iosched/x9bkvdwUoYQ
Sent from my Xiaomi MI 5s Plus using XDA Labs

[KERNEL]-[STOCK-AOSP]-[Treble/non-Treble]-[Gabriel]-[Stweak]-20180713

Gabriel Kernel for Stock MIUI and AOSP Based Roms
Telegram Channel​
GLOBAL OPTIONS:
Kernel support both MIUI/AOSP
Kernel Supports both Clang & GCC Compilers
Kernel updated up to 3.18.115 build.
Kernel updated up to CAF-LA.UM.6.6.r1-09000-89xx.0
Kernel include advanced binder driver from main line 4.10.y kernel.
Kernel include advanced KSM driver (UKSM, operate with selectable cpu governor/usage).
Kernel has enabled crypto ARM64 CRC32 hw accelerated module and its friends.
Kernel operate in 300HZ
Kernel include Enhanced TCP methods
Kernel include latest F2FS driver for 3.18.y
Kernel include ZEN,NOOP,BFQ,DEADLINE,CFQ,FIOPS,FIFO,ROW,SIO,MAPLE I/O govs tuned for SSD.
Kernel includes Impulse, Cultivation, Lionfish, Interactive, Conservative, Ondemand, Performance CPU GOVS.
Kernel default CPU GOV is patched and tuned Interactive.
Kernel support FSYNC mode for FS. (Off at Screen-On & will be On at Screen-Off)
Kernel support thermal driver tuning.
Kernel includes updated EXFAT drivers.
Kernel includes support for Haptic Feedback (vibrate) tuning (more/less)
Kernel include boost to I/O by mounting partitions with optimized flags.
Kernel has enabled process-reclaim (moving apps to zram without killing them).
Kernel support lz4 compression for zram and max 8 core streams.
Kernel will add advanced busybox binary in /sbin/busybox
Kernel will set power-saving config at Screen-Off and back to normal at Screen-On
Kernel will stop logging drivers at Screen-Off and back to normal at Screen-On
Kernel include state-notifer to say system-state to io/governors to save power.
Kernel has disabled some debugging options to improve the system performance.
Kernel 9.0
*Upstream to 3.18.115
*Merge CAF tag LA.UM.6.6.r1-09000-89xx.0
*Merge Prima Wlan CAF tag LA.UM.6.6.r1-08600-89xx.0
*Merge latest Code update to f2fs
*merge massive update to power, irq, kernel scheduler from msm 4.2.y & 4.4.y
*Merge massive update to cpu driver from msm 4.4.y (cpu 8998/snapdragon 835)
*Merge update to cpuidle from msm 4.4.y
*Merge update to devfreq from msm 4.4.y
*Merge certificate handling from msm 4.4.y
*Merge update to printk from msm 4.4.y
*Merge DTS eagle sound
*Merge update to wireguard
*Merge official charger/battery driver
*Merge few kernel improvement from pixel 2 & sony experia devices
*Merge fix to offline charging led
*Removed VDSO32 (32bit Driver)
*Introducing gabriel/gabriel-plus governor with idle load treshold & timing (based on pixel 2 p-preview interactive Governor)
*Overclock little cluster up to 1.26 MHz
*Overclock gpu up to 575 MHz
*Introduce init process fixer
*Introduce charger current limiter
*Fixed battery stats
*Fixed clock flag no rate cache
*Patch key layout at flashing time
*Add sd card deferred resume (save power wile not using)
*Add target os detector to kernel flasher (anykernel2)
*Treble and non-treble builds combined into one kernel package (AOSP)
*Disable clock scaling for msm sdhci
*Kernel package signed
*Run fstrim at flashing time
*Show kernel version as banner at flashing time
*Add clang support
*Busybox update to latest code changes
*Few improvements in stweak options
*Fixed gpu governor & frequency set
*Fixed setting per governor profile
*Add gabriel memory config
*Reworked profiles
note:
*Compiled with Dragontc 7.0
Kernel 8.0
*Upstream to 3.18.105
*Merge CAF tag LA.UM.6.6.r1-07400-89xx.0
*Merge Prima Wlan CAF tag LA.UM.6.6.r1-07400-89xx.0
*Merge latest Code update to f2fs
*Stweak has control over Performance Daemon
*All Profiles will reset at 1st boot
*Build with 3 different toolchain in 2 different library support (bionic & glibc like past) & 3 different optimization support!
*Gnu gccs compiled by me with latest stable libs & bins
*The regular build like previous builds has no extra character to it's package name (built with hz300 & linaro 7.3 & ofast & graphite gcc flags)
*H3 : Hz300 & o2 & no grapgite flag
*H1 : Hz100 & o2 & no grapgite flag
*B : Bionic toolchain
*7.3 & 6.4 : Gnu gcc 7.3.0 & 6.4.0
*Hz 100 should keeps more battery backup
*You may get better battery backup with Hz100 & gcc 6.4.0
Kernel 7.0
*Kernel Codes Compiled with new Linaro GCC 7.3.1 2018.03(compiled by me)
*Merge Kernel tag CAF-LA.UM.6.6.r1-07200-89xx.0
*Kernel has Reduced "Screen ON" delay (affect on fp unlock)
*Implement Finger Print Boost (boost availalbe cores on fp unlock)
*Kernel has been Disabled Debug Kernel
*Merge Codes Update to Kernel Scheduler
*Merge CPU, CPU_STATS, CPU_IDLE from mainline 4.2.y & 4.4.y
*Merge Interactive & Conservative gov family, Ondemand from mainline 4.4.y
*Remove Lionfish gov
*Kernel Overclocked LITTLE Cluster to 1.34 MHz
*Merge Led driver from Xiaomi Official Source
*Kernel with Official Drivers not Supported for Now
*Stweak has Control over CPUSET
*Stweak has Control over Fingerprint Boost
*Stweak has a Module to Restore Kcal parameters at "Screen ON" state (fix MIUI kcal/panel bug)
Kernel 6.0
*Kernel Updated to 3.18.102
*Kernel Codes Compiled with new Linaro GCC 7.2.1 2018.01(compiled by me)
*Merge Kernel tag CAF-LA.UM.6.6.r1-06700-89xx.0
*Merge Prima WLAN tag CAF LA.UM.6.6.r1-06700-89xx.0
*Merge Codes to ARM64, RCU, Kernel Core & Scheduler Driver from main line 4.4.y
*Merge VDSO32 (32bit Driver) from main line 4.4.y (compiled with GCC Linaro ARM32 7.2.1)
*Busybox Updated to Latest Code Changes (compiled by me)
*Kernel has MIUI F2FS Support & Dtiver Updated to Latest Code Changes
*Kernel codes compiled with Ofast & Graphite Optimization Flags
*Kernel has USB HID gadget suport
*Merge CPU Governor Alucard, Darkness, Nightmare, Chill, Relaxed
*Merge update to SDCARDFS
*Kernel has CPU & GPU Underclock/Overclock
*Kernel Boot UP With Stock CPU Frequencies
*Kernel Flasher will Backup Current Boot (kernel image & ramdisk) and Modules for MIUI Rom in case of Restoring/Uninstalling the Kernel to Previous one
*Add Adreno-Idler support
*Add Stweak Support
*Stweak has 7 Predifined Profile
*Stweak has Control over big.LITTLE Clusters Control
*Stweak has Control over Awake & Suspend state for CPU, GPU, HMP,I/O Scheduler, UKSM, etc
*Stweak has Per Cluster & Governor Profiling
*Stweak has F2FS Searching Boost option
*Stweak has Advance Memory Control options
*Stweak has Auto Clear Ram Cache Switch (affect on multitasking/Performance)
*Stweak has Control over ZRAM & SWAP Disk
*Stweak has Control over WIFI, init.d, ADB, Sound, Battery, Dmesg state
*Stweak has Control over ROM's MIN/MAX backlight value
note:
*Kernel Uploaded into 2 Separate Build with Official & UNOfficial Drivers
*Official Build Has More CPU Overclock Steps
*Official Build Can't Mount OTG Drive at This Time
*To Convert EXT4 to F2FS Follow this Instruction
Kernel 5.0
*Kernel Updated to 3.18.93
*Kernel Codes Compiled with new GNU GCC 7.3.0 (compiled by me)
*Busybox Updated to Latest Code Changes (compiled by me)
*Implement Adreno Idler
*Add 100 & 160 MHz GPU Frequencies
*Adreno Idler & GPU Clock Tuned for Power Saving
*Implement Force Fast Charge (disabled by default)
*Merge Updates to CFQ IO-Scheduler
*Merge Update to BFQ IO-Scheduler (v8r12)
*Merge Updates to Interactive Governor
*Inject SQLITE3 Bin to Rom for DB-Optimization (needs command/script, attached to this post)
*Remove Code Changes to Touchscreen Driver (initial fix for dt2w issue)
*Kernel Boot Script run FSTRIM at Boot
*Fix & Tune Core Control (4 cores online 2 big+ 2 LITTLE)
Kernel 4.0
*Enable 19 MHz GPU Frequency
*Implement Kcal Colour Control (works with non-stock roms)
*Implement Backlight Dimmer
*Different LMK & Zram Config for 2/3/4 GiB Ram Variants
*Cortex Keeps 4 (2 big & 2 Little) Cores online at Sleep State
*Merge MDSS Codes to Avoid Underrun Risk while Changing Clock & Bandwidth
Kernel 3.0
*Merge Advance Zram & Zsmalloc driver from main line 4.6.y
*New Zram driver has 2 new Compression algorithm (lzo, lz4, [lz4hc, deflate])
*New Zram driver has Per-CPU Compression Streams
*New Zram driver use Crypto Compression API
*Merge Workqueue driver from main line 4.4.y
*Merge Random driver from main line 4.4.y
*Implement Sound Control
*Implement FRandom
*Merge update to IPA
*Fix Boot Script Failure with Magisk 15.3
*Tune Interactive Gov
*Merge update to Bitmap Lib
*Merge update to Kgsl, Devfreq, ARM64 & Kernel Scheduler
*Simplified Cortex Script for While Leaving the Sleep State
Kernel 2.0
*Upstream to 3.18.92
*Implement Boeffla wakeock-blocker v1.1.0
*Implement DT2W/S2W
*Cpuset disabled
*Merge update to Kernel Scheduler
*Merge update to RCU (how drivers talks to kernel)
*Disabled extended HMP drivers, use Generic HMP and related drivers
*Merge fixes for high load average and queuing works on power-efficient workqueue
*Merge fixes to led-flashlight
*Merge fixes to Battery/Charger
*Merge IPA fixes from caf-tag LA.UM.5.6.r1-05400-89xx.0 (internet packet accelerator)
*Merge fixes to Xiaomi Colour and Contrast
*Entropy Tweaks at Startup
*Separated to 2 Builds for MIUI and AOSP Based Roms
*Selinux is Permissive for Oreo and Enforcing for Nougat
Kernel 1.0
*All options in the global options list
*Selinux is in enforcing mode, so won't boot current oreo rom.
*Software CRC control is Off
*Doesn't support F2FS for Stock Rom at this time but AOSP.
*Doesn't support LCD Gestures, D2W,D2S,S2S
Instruction
if you came from a custom kernel, please restore your rom's stock kernel then flash.
as always, unlocked bootloader and flash in twrp
Flash at you own Risk !
There is a file named "build.log" in kernel zip file
that says which branch i used for build process.
Download Folder
AFH directory,beta & stable builds
Global Credits!
noyer for kernel source
rainforce279
dorimanx
asiier
sonicron
Cyanogen/LineAge/Code Aurora for many kernel mods
To all my sources in GITHUB!
XDA:DevDB Information
Gabriel Kernel, Kernel for the Xiaomi Redmi 4X
Contributors
mostafaz
Source Code: https://github.com/mostafa-z/Gabriel_msm8940_mi-redmi4x
Version Information
Status: Testing
Created 2018-01-17
Last Updated 2018-01-17
does this support double tap to wake.?
AmirulR said:
does this support double tap to wake.?
Click to expand...
Click to collapse
no, i'll mention
can i use this kernel for Nitrogen OS 8.1 ?
Bang Onik said:
can i use this kernel for Nitrogen OS 8.1 ?
Click to expand...
Click to collapse
I think oreo works with permissive selinux for now. No its enforcing
Wooow ? . . features are awsome but Nougat outdated dude can u plzz make it for Oreo there is no custom kernel supported oreo so plzz look intoit (is any way to change selinux to perm on ur kernel zip??)
Jazakallah brother.
Will it work on MIUI along with VoLTE...?
Because kernels work on MIUI but breaks VoLTE, is it fixed in your kernel?
Ramakrishnan ? said:
Wooow ? . . features are awsome but Nougat outdated dude can u plzz make it for Oreo there is no custom kernel supported oreo so plzz look intoit (is any way to change selinux to perm on ur kernel zip??)
Click to expand...
Click to collapse
After boot yes but it should be native. I mean i dont think so. If u flashed oreo and selinux is permussive so u can wait for next release please
Ali_Waris said:
Jazakallah brother.
Will it work on MIUI along with VoLTE...?
Because kernels work on MIUI but breaks VoLTE, is it fixed in your kernel?
Click to expand...
Click to collapse
Thanks
I don't have it. Cant prove
Does it support in oreo
[email protected] said:
Does it support in oreo
Click to expand...
Click to collapse
Sorry. Won't
Im new to xiaomi
Dont have oreo yet
mostafaz said:
Thanks
I don't have it. Cant prove
Click to expand...
Click to collapse
Which ROM are you currently using? Can you suggest a ROM that works fine with your kernel?
mostafaz said:
Sorry. Won't
Im new to xiaomi
Dont have oreo yet
Click to expand...
Click to collapse
OK.... But nice work dev.......
Ali_Waris said:
Which ROM are you currently using? Can you suggest a ROM that works fine with your kernel?
Click to expand...
Click to collapse
Im with stock 9.1.1.0 global
I just checked aosp boot and dmesg.
mostafaz said:
Im with stock 9.1.1.0 global
I just checked aosp boot and dmesg.
Click to expand...
Click to collapse
If you are on miui global with this kernel, can you please confirm whether VoLTE works on not? (If by any chance you can verify it with a JIO sim, please.)
Ali_Waris said:
If you are on miui global with this kernel, can you please confirm whether VoLTE works on not? (If by any chance you can verify it with a JIO sim, please.)
Click to expand...
Click to collapse
My provider newly have it but i dont have it
Wait some for others
Do I need to reflash my rom to make it work?
Jazakallah my friend
Will test later
Sent from my Redmi 4X using Tapatalk
Kecoe said:
Do I need to reflash my rom to make it work?
Click to expand...
Click to collapse
Stock or AOSP? Both nougat works. No need to do anything. Flash kernel & root method. Done
I'll share for oreo later
Please make a variant with permissive selinux for oreo, and overclocked GPU will be great feature.
I have flash it and my wifi is not working even i flash the wifi fix.. Btw good kernel :good:

[KERNEL] [10.0] [SIRIUS] [EAS] [F2FS SUPPORT] Jancok Kernel [15/03/2020]

Jancok Kernel is a custom kernel for MI 8 SE a.k.a Sirius which has a lot of features comparing to stock kernel. Our goal is to bring stability and best performance. Don't ask xyz features, if the kernel itself is stable AF, I'll add more features ASAP.
CAUTION: I AIN'T RESPONSIBLE IN ANYTHING IF SOMETHING GOES WRONG!
Features:
- Add maple iosched
- Enable maple by default
- Remove 10 ms CPU idle latency unvote timeout
- Only apply pm_qos to the CPU servicing Ufs Interrupts
- Set idle time out to 64ms
- Add sound control
- Don't copy fence names by default
- Disable adreno driver logging
- Add NEON accelerated XOR implementation
- Do not collect I/O statistics
- Add KLAPSE v5
- Add TTL support
- Disabled some gov
- F2FS support
- Build with latest clang version
- EAS
- And many others
Bugs:
- For MIUI-based ROM, flashlight on setting tile and internet indicator do not work ATM.
MOD EDIT: Telegram link removed, please read the STICKY!
Contributor:
- Icecream
- Solidv
- My beloved testers :good:
Kernel Tree:
https://github.com/1cecreamm/kernel_xiaomi_sirius
Jancok Kernel V-1.1
Changelog:
- Added fsync on/off support
- blk: Disable IO_STAT completely
- Enabled advanced TCP
- Set westwood by default
- Don't require auditing
- Don't allocate memory for logging
- Implement usb fast charge mode
- Only compile adreno 6xx driver
- Relax adreno spin idle tight loop
- Add wireguard importer
- set the vm_dirty_ratio to 40
- Apply EAS tunings
Download: MOD EDIT: Link removed
Very good news
Jancok Kernel V-1.4
Changelog:
- Finally, the error message on AOSP-based ROM after reboot is fixed
- Add anxiety I/O sched
- Kill opening/closing instance logspam
- Keep dirty pages in ram for at least 120 sec
- Enable NTFS & F2FS
- Increase ratelimit pages value
- Improve Internet connection
- Increase vmstat interval
Download: MOD EDIT: Link removed
Jancok Kernel V-1.8
Changelog:
- Merge to 4.9.213
- Disable fsync by default
Download: MOD EDIT: Link removed
can I install on Xiaomi.eu?
Kikuchiex said:
can I install on Xiaomi.eu?
Click to expand...
Click to collapse
Yes, you can. But, you'll face bugs that already mentioned on OP
Jancok Kernel V-2.1
Changelog:
- Introducing sLMK
- Support sdFAT exFAT
- Added back KCAL
- Default readahead 64kb
Download:
MOD EDIT: Telegram link removed, please read the STICKY!
dimasyudha said:
Jancok Kernel V-2.1
Changelog:
- Introducing sLMK
- Support sdFAT exFAT
- Added back KCAL
- Default readahead 64kb
Download:
MOD EDIT: Telegram link removed, please read the STICKY!
Click to expand...
Click to collapse
Is link dead?
AsusZenFone3Deluxe said:
Is link dead?
Click to expand...
Click to collapse
Here we go
MOD EDIT: Telegram link removed, please read the STICKY! [/url]
Thread closed
Requested by OP, cause he is not the developer and no further updates by the original developer.
strongst
Forum Moderator

Categories

Resources