FORUMS
Remove All Ads from XDA

[Kernel] WR2 [3.4.107] [KK] Wiko Rainbow / Micromax C2C A120 [S5501]

661 posts
Thanks Meter: 1,461
 
By Al3XKOoL, Inactive Recognized Developer on 15th January 2015, 09:01 PM
Post Reply Email Thread
Custom kernel for Wiko Rainbow / Micromax C2C A120
(All S5501 clones)

Now both base versions (Wiko/Micromax)

Please read entire post

Code:
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!
Quote:

This project was initiated by @SiddheshK15. Thanks mate.
I just decided to make my own version of the kernel even more customized.

Instructions:
Quote:

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 !!

Important!!
Quote:

  • 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.



Changelog:
Quote:

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-"


Quote:

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

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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-02-01-11-28-34.png
Views:	9740
Size:	127.3 KB
ID:	3161242   Click image for larger version

Name:	Screenshot_2015-02-12-09-08-12.png
Views:	9504
Size:	119.8 KB
ID:	3161925  
The Following 37 Users Say Thank You to Al3XKOoL For This Useful Post: [ View ] Gift Al3XKOoL Ad-Free
 
 
18th January 2015, 07:35 AM |#2  
Siddhesh.K15's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 695
 
More
Thumbs up
Great. Keep up the great work and serve the community
The Following 5 Users Say Thank You to Siddhesh.K15 For This Useful Post: [ View ] Gift Siddhesh.K15 Ad-Free
18th January 2015, 08:07 PM |#3  
mr-illusionist's Avatar
Senior Member
Flag Chandigarh
Thanks Meter: 665
 
More
Just tried your kernel. Its good.
However i would like to see the changelog. Update it soon buddy. And good work
The Following 3 Users Say Thank You to mr-illusionist For This Useful Post: [ View ] Gift mr-illusionist Ad-Free
19th January 2015, 07:20 PM |#4  
Al3XKOoL's Avatar
OP Inactive Recognized Developer
Flag Tenerife (Canary Islands, Spain)
Thanks Meter: 1,461
 
Donate to Me
More
Thanks guis!! Now im testing upstream merge to kernel 3.4.69

Soon more updates
The Following 3 Users Say Thank You to Al3XKOoL For This Useful Post: [ View ] Gift Al3XKOoL Ad-Free
20th January 2015, 04:21 PM |#5  
Al3XKOoL's Avatar
OP Inactive Recognized Developer
Flag Tenerife (Canary Islands, Spain)
Thanks Meter: 1,461
 
Donate to Me
More
Kernel 3.4.105 - Beta Stage
I added link with Beta kernel 3.4.105 and more I/O Scheduler:
  • FIOPS
  • BFQ
  • SIO

Enjoy!!
The Following 3 Users Say Thank You to Al3XKOoL For This Useful Post: [ View ] Gift Al3XKOoL Ad-Free
20th January 2015, 07:45 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Hi,
antutu says ca. 20400 , befor 20200. The device has a quick response, great ...

Looking forward.. Thx

Gesendet von meinem RAINBOW mit Tapatalk 2
21st January 2015, 10:30 AM |#7  
Senior Member
Thanks Meter: 296
 
More
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/show....php?t=2196707

Please, continue supporting custom kernels for Wiko
21st January 2015, 01:54 PM |#8  
Al3XKOoL's Avatar
OP Inactive Recognized Developer
Flag Tenerife (Canary Islands, Spain)
Thanks Meter: 1,461
 
Donate to Me
More
Quote:
Originally Posted by manos78

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/show....php?t=2196707

Please, continue supporting custom kernels for Wiko

Thanks !!

Please try exFAT on this test version. Waiting for report
22nd January 2015, 08:34 AM |#9  
Senior Member
Thanks Meter: 296
 
More
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!
22nd January 2015, 12:44 PM |#10  
Al3XKOoL's Avatar
OP Inactive Recognized Developer
Flag Tenerife (Canary Islands, Spain)
Thanks Meter: 1,461
 
Donate to Me
More
Quote:
Originally Posted by manos78

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!

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.
22nd January 2015, 03:45 PM |#11  
Senior Member
Thanks Meter: 296
 
More
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!
Post Reply Subscribe to Thread

Tags
micromax-a120

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes