FORUMS

[KERNEL][O/P/Q] xCG Kernel [Mar 30, 2020]

48 posts
Thanks Meter: 60
 
Post Reply Email Thread
Code:
/*
 * Your warranty is no longer valid.
 *
 * I am not responsible for bricked devices, dead SD cards, broken touchscreens,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this kernel
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
 */
This is a custom kernel for Redmi 5 designed for simplicity and stability along with few under-the-hood improvements.

Main features:
  • Merged linux-stable (upstream to Linux 3.18.140).
  • Merged f2fs-stable (upstreamed F2FS).
  • Merged latest compatible prima drivers (upstreamed Wi-Fi drivers).
  • Clean, optimized, and minimal imports of code for rosy (based on riva-o-oss branch).
  • Optimized prima drivers (reduced debugging and unnecessary wakelocks).
  • Optimized touchscreen drivers (fixed freezing and reduced debugging).
  • Compiled with GCC 9.2.0 & "O3" and all code warnings fixed.
  • Compiler tuned for Cortex-A53 (CPU optimization).
  • Miscellaneous GPU optimizations.
  • Memory optimizations.
  • Full F2FS support.
  • CRC toggle.
  • Sound control.
  • Vibration intensity control.
  • DriveDroid CD-ROM emulation support.
  • TTL fixation support.
  • Wireguard support.
  • Miscellaneous config improvements that are not listed here.

Information:
  • CAF tag LA.UM.8.6.r1-04000-89xx.0
  • CPU governors: [interactive], conservative, userspace, powersave, performance.
  • I/O schedulers: [cfq], noop, deadline.
  • TCP algorithms: [westwood], cubic, reno.
  • Compression algorithms: [lz4], lzo.
  • INITRD compression: [gzip].

Installation instructions:

With a recovery like TWRP:
  • Download the zip.
  • Flash it using the recovery's flash function.
  • You're done, enjoy!

With FKM (Franco Kernel Manager) app:
  • Open FKM > Flasher > click on "Import a kernel download configuration".
  • In the dialogue that appeared enter xCG's JSON link that you can find below (copy-paste it).
  • You're done, enjoy convenient access to everything latest!

Recommended ROMs to use with xCG:
Downloads:
  • Latest zip: v3.7.0 (https://github.com/mscalindt/xcg-rosy/releases/download/v3.7.0/xCG-3.7.0-ROSY-Q-20200330.zip)
  • Changelog: Here (https://forum.xda-developers.com/showpost.php?p=80798487&postcount=2)
  • TG group: Here (https://t.me/xcgkernel)
  • List of all releases: Here (https://github.com/mscalindt/xcg-rosy/releases)
  • FKM JSON link: https://raw.githubusercontent.com/mscalindt/xcg-rosy/fkm-updater/xcg.json

Credits:
XDA:DevDB Information
xCG, Kernel for the Xiaomi Redmi 5

Contributors
mscalindt
Source Code: https://github.com/mscalindt/xcg-rosy

Kernel Special Features: Fixed touchscreen randomly freezing or misbehaving.

Version Information
Status: Stable
Current Stable Version: 3.7.0
Stable Release Date: 2020-03-30

Created 2019-11-05
Last Updated 2020-03-30
The Following 10 Users Say Thank You to mscalindt For This Useful Post: [ View ] Gift mscalindt Ad-Free
5th November 2019, 11:29 PM |#2  
mscalindt's Avatar
OP Member
Thanks Meter: 60
 
More
Changelog:

v3.7.0 (March 30, 2020):
- Wireguard version 0.0.20200318
- Reimported Xiaomi's sound changes to potentially fix any odd sound problems.
- Fixed Xiaomi's broken (on source level) Goodix netlink driver.
- Fixed duplicate flashlight driver probing.
- Disabled CAF's "power aware driver".
- Unlocked CPU min/max freq.
- Now using "O3" level of GCC optimization.
- Miscellaneous fixes.

v3.6.0 (March 11, 2020):
- Optimized memory consumption.
- Miscellaneous small config changes.

Old changelogs:
v3.5.0 (March 6, 2020):
- CAF tag LA.UM.8.6.r1-04000-89xx.0
- Removed more hard-coded debugging in rosy's touchscreen drivers.
- Removed PPR (per process reclaim), another broken meme from Qualcomm.
- Removed even more debugging in the kernel.
- Disabled KSM (kernel samepage merging).
- Switched back to the usual type of workqueues (bound).
- Miscellaneous fixes and improvements.

v3.4.1 (February 28, 2020):
- Fixed SD card issue.

v3.4.0 (February 27, 2020):
- Wireguard version 0.0.20200215
- Enabled CPUSETS.
- Enabled boosting for CFS tasks.
- Enabled power-efficient workqueue mode.
- Disabled many configs unrelated to rosy.
- Disabled some debug & profiling configs.
- Removed useless dtbs that get appended to the dtb kernel img.
- Removed "adaptive LMK" feature, it is awfully misconfiguring OOM parameters.
- Increased dmesg log size to 256 KB.
- Support for CPU boosting on migration of important threads (known as CPU boost).
- Miscellaneous small config optimizations.

v3.3.1 (February 13, 2020):
- Reduced debugging in prima.
- Disabled ZSWAP.
- Disabled ZCACHE.

v3.3.0 (February 3, 2020):
- Upstreamed prima drivers.
- Miscellaneous DTS changes.
- Miscellaneous touchscreen changes.
- Disabled host ARP offloading in prima.
- Enabled KSM (kernel samepage merging).
- Enabled "front swap".
- Enabled "ZSWAP".

v3.2.0 (January 30, 2020):
- Merged CAF tag LA.UM.8.6.r1-03400-89xx.0

v3.1.3 (January 29, 2020):
- Fixed low sound.

v3.1.2 (January 27, 2020):
- Removed slmk and reverted back to default lmk.
- Wireguard support.

v3.1.1 (January 26, 2020):
- Fixed Magisk not opening/working.

v3.1.0 (January 25, 2020):
- Compiled with GCC 9.2.0 and all code warnings fixed!
- The upstream to 3.18.140 is now based only on linux-stable.
- Now using "Simple LMK" instead of the defalt LMK.
- Vibration intensity control.
- Disabled SELinux audit again.

v3.0.1 (January 19, 2020):
- Fixed animation lag.

v3.0.0 (January 19, 2020):
- Merged android-3.18 (Google's upstreamed 3.18 kernel branch).
- Enabled SELinux audit again.
- Misc small fixes and improvements.
- Rosy's code is now fully based on rosy's latest kernel (riva-o-oss).
- The kernel is now compatible with all ROMs/trees (fixed camera & flashlight).
- Flashing Magisk to keep root after kernel zip flash is not required anymore!

v2.7.1 (January 4, 2020):
- Disabled SELinux audit.

v2.7.0 (January 1, 2020):
- Merged android-3.18 (upstream).
- Miscellaneous improvements.

v2.6.0 (December 23, 2019):
- Merged android-3.18 (upstream).
- Further fixed hotspot issues (fixed no internet).
- Fixed some memory leaks.
- Reduced debugging.
- Optimized several subsystems of the kernel.
- Explicitly defined LZ4 as the default algorithm for ZRAM.

v2.5.0 (December 14, 2019):
- Merged android-3.18 (upstream).
- Fixed hotspot issues.
- CAF tag LA.UM.8.6.r1-02900-89xx.0

v2.4.1 (December 6, 2019):
- Fixed camera issues for specific rosy devices.
- Merged android-3.18 (upstream).

v2.4 (December 2, 2019):
- Some internal changes.
- Merged android-3.18 (upstream).

v2.3.1 (November 21, 2019):
- Added support for TTL fixation.

v2.3 (November 19, 2019):
- CAF tag LA.UM.8.6.r1-02600-89xx.0
- Merged android-3.18 (upstream).
- Updated prima (Wi-Fi) drivers.
- Updated base (small performance and battery improvements to rosy's code).

v2.2 (November 4, 2019):
- Further updated code for rosy.
- Changed default GPU value to 216 MHz.
- Upstreamed to Linux 3.18.140, upstreamed F2FS, etc.

v2.1 (October 26, 2019):
- Removed OnDemand governor.
- Upstreamed CAF tag to LA.UM.8.6.r1-02300-89xx.0
- Updated code for rosy.

v2.0 (October 20, 2019):
- Updated code for rosy.
- Upstreamed CAF tag to LA.UM.8.6.r1-01900-89xx.0
- Dropped NTFS read-write support.

v1.2 (September 15, 2019):
- Added DriveDroid CD-ROM emulation support.

v1.1 (September 14, 2019):
- Upstreamed F2FS.
- Added sound control.

v1.0 (September 11, 2019):
- Initial release.
The Following 6 Users Say Thank You to mscalindt For This Useful Post: [ View ] Gift mscalindt Ad-Free
6th November 2019, 03:27 AM |#3  
Member
Flag Semarang
Thanks Meter: 18
 
More
Nice work bruhh.. keep it update 😁
The Following User Says Thank You to Danisp For This Useful Post: [ View ] Gift Danisp Ad-Free
6th November 2019, 07:04 AM |#4  
Senior Member
Thanks Meter: 70
 
More
Cool! I'm gonna test it in LOS 17 baunilla
The Following User Says Thank You to Manosdocpap For This Useful Post: [ View ] Gift Manosdocpap Ad-Free
12th November 2019, 08:40 AM |#5  
Junior Member
Thanks Meter: 9
 
More
Install only on compatible device/tree for rosy.. I see LOS mentioned but is it compatible with PixelExperience too?
12th November 2019, 08:42 AM |#6  
mscalindt's Avatar
OP Member
Thanks Meter: 60
 
More
Quote:
Originally Posted by Arsenious

Install only on compatible device/tree for rosy.. I see LOS mentioned but is it compatible with PixelExperience too?

No.
The Following User Says Thank You to mscalindt For This Useful Post: [ View ] Gift mscalindt Ad-Free
14th November 2019, 04:00 AM |#7  
Member
Flag Semarang
Thanks Meter: 18
 
More
Bro, did you have telegram channel/group for this kernel ??
14th November 2019, 07:23 AM |#8  
mscalindt's Avatar
OP Member
Thanks Meter: 60
 
More
Quote:
Originally Posted by Danisp

Bro, did you have telegram channel/group for this kernel ??

Yes, join the TG group if you want - https://t.me/xcgkernel
The Following 3 Users Say Thank You to mscalindt For This Useful Post: [ View ] Gift mscalindt Ad-Free
14th November 2019, 12:50 PM |#9  
Junior Member
Thanks Meter: 1
 
Donate to Me
More
How to root redmi5 global? Miui 11 updated thanks
16th November 2019, 06:50 PM |#10  
Dasemu's Avatar
Junior Member
Flag Gijón
Thanks Meter: 1
 
Donate to Me
More
Quote:
Originally Posted by jeeeu94

How to root redmi5 global? Miui 11 updated thanks

With magisk, loke in miui10
Download MiUnlock, unlock bootloader and download XioMiTool v2 from internet and follow the instructions and the program will do everything

If you want to do it yourself you just unlock bootloader with mi blocker and download 1.Minimal ADB and Fastboot
2. Twrp.img for ROSY. (Redmi 5) be sure you download the redmi 5 img

Plugin your phone in pc and go in your pc to C:/program files (x86)/minimal ADB and Fastboot and move (or copy) the twrp img in that folder and open command (press windows key and type CMD) in the black screen (if you have never stay in cmd don't scare, is the old way to use the computers, and the actual way in linux )
Type cd C:/program files (x86)/minimal ADB and Fastboot and then pick your phone.
Hold the volume down and power button at same time for 4-6 seconds.
You will see something like FASTBOOT, and a rabbit with an android.
Plug in the phone in pc and in the PC type

Fastboot flash recovery twrp-rosy-3.3.0-0.img (or how is your twrp.img called) and wait 30 seconds
The terminal will tell u something and when it put '' finished " close your terminal and in your phone hold volume up button and power button at same time.

The phone will restart and show you something about TWRP, you are finishing

Reboot System (there is a button for that in twrp) and in android install Magisk manager.apk from internet.

You will see 2 install buttons, press the first and press install

It will download a 5.8 Mb zip press in the notification and open with "copy to..." and copy to SD.

Reboot in twrp (hold up and power again) and tap in install zip, select magisk zip and magisk su binary will be instaled in your phone.
When finished reboot system and open magisk manager and you will see that magisk is installed. Now u have root
If you want to use supersu do the same but instead of flash magisk zip, flash supe su zip. I recommend magisk. As you can see eZ

Happy mod dude!!
The Following User Says Thank You to Dasemu For This Useful Post: [ View ] Gift Dasemu Ad-Free
19th November 2019, 05:12 PM |#11  
mscalindt's Avatar
OP Member
Thanks Meter: 60
 
More
New build (v2.3)!
The Following 3 Users Say Thank You to mscalindt For This Useful Post: [ View ] Gift mscalindt Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes