• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[KERNEL] RebelKernel by RebelLion

RebelLion

Newbie
Introducing RebelKernel for all variants of the Moto E4 'perry' device. Upstreamed to the latest linux-stable 3.18 tag and loaded with features and optimizations. The aim of this kernel is to make the User Experience as smooth and efficient as possible, while also bringing in features like DoubleTap2Wake (DT2W), KCAL (advanced color control processing), and USB OTG that help bring this budget phone on par with mid-end devices.

A lot of testing has been done to get this kernel stable, however there is always a chance that flashing this kernel could leave something not working correctly. Please take logs (dmesg and ramoops) in this event and send them to me.

Features:
* Linux-stable: 3.18.63 -> 3.18.134
* F2FS Loopback Bug patched
* LZ4 Compression
* CPU Input Boost driver
* KCAL color control driver
* DT2W driver
* Boeffla Wakelock Blocker driver
* Wireguard Support
* XPad Rumble and LED support
* USB OTG Native support
* USB HID Keyboard support
* MHL HDMI support
* Cmdline flags removed to pass SafetyNet
* Toolchain: GCC 4.9.4 --> Linaro 7.4.1
* I/O Schedulers: Zen, Maple
* Governors: Electron, Zzmoove, Lionfish
* Hotplugs: Alucard
* GPU: Adreno Idler, Adreno Boost
* TCP: Westwood
* FSync On/Off
* Swappiness: 15
* VFS Cache Pressure: 10
* Drastically reduced logging overhead and spam
* Migrated many workqueues to Power Efficient WQs

Installation:

1) BACKUP. Always have a recent system backup when flashing anything.
2) Download the zip from the link below and flash from TWRP.
3) If you get bootloops or issues, please take kernel logs and logcats (if booted) and report back so I can address the issue.

Please give feedback. A lot of work is being put into this kernel so I hope it improves your experience.

Download:
Version: 2.1
https://mega.nz/#!A3R22QBI!j_z-LNNzIQtKyYdcHbEUNrbzws2-gggf_-IEqvyfrn0

Changes:
* Added MHL HDMI driver support

Source:
* Branch 'rebel'
https://github.com/RebelLion420/kernel_perry

Credits:
@squid2
@facuarmo
@jasonmerc

*** While donating is not required to use my work, it is certainly appreciated. Thanks in advance!
https://paypal.me/rebelliouslion
 
Last edited:
New Version in OP!
2.0

Changelog:
* Upgraded toolchain to 7.4.1, slight improvement to performance and stability
* Upstreamed to current latest Linux-stable version 3.18.134
* Loads of minor fixes and tweaks to various drivers, modules, and filesystems for slight improvements to performance stability, and power efficiency. Credits to FacuM on github for finds
 
Last edited:
New Version Released
2.1

Changelog:
  • Introduced init.rebel.rc, borrowed from @frap129's Electron Kernel. This tunes some of the kernel settings on boot to recommended values. First version, will be tested and/or modified
  • Modified fstab to enable Native USB OTG (hopefully). This needs to be tested as I am not able to at the moment
 
Been using the 1.1 version from telegram and I've noticed way better performance and battery life overall, will keep testing your new releases for sure
 
The download link is not working for me for the latest v2.2. I am only on v1 because that's all I can find a link for. The link here is the same as on xda. I found your git but I don't really want to compile from source. Thanks for your work by the way
 
The download link is not working for me for the latest v2.2. I am only on v1 because that's all I can find a link for. The link here is the same as on xda. I found your git but I don't really want to compile from source. Thanks for your work by the way

I've gotta get better with these links, I apologize. Its up now
 
I've gotta get better with these links, I apologize. Its up now
Thanks. Just to let you know xda only has up to v1. I have to charge my phone some and then I will flash it I have noticed battery life issues with v1 but hopefully they have been fixed
 
Flashing v2.2 only gave me constant bootloops, had to revert back to 2.1 to get my phone working again.. On stock rom atm, pretty weird

Only issue i've had with it so far is that ^ been getting a lot better performance and battery life on v2.1 tho, good work <3
 
Thanks. Just to let you know xda only has up to v1. I have to charge my phone some and then I will flash it I have noticed battery life issues with v1 but hopefully they have been fixed

Yeah that's for a reason, XDA had been giving some devs I know a hard time so I don't stay active on there anymore.

Flashing v2.2 only gave me constant bootloops, had to revert back to 2.1 to get my phone working again.. On stock rom atm, pretty weird

Only issue i've had with it so far is that ^ been getting a lot better performance and battery life on v2.1 tho, good work <3

Would you be able to get a log of that bootloop? Right after it loops to the black screen BEFORE the logo, boot it to TWRP and grab the console-ramoops from /sys/fs/pstore/ in the File Manager in Advanced.

P. S. You might have to count how long till it bootloops and then time the key combo right (VOL DOWN + PWR)
 
Yeah that's for a reason, XDA had been giving some devs I know a hard time so I don't stay active on there anymore.



Would you be able to get a log of that bootloop? Right after it loops to the black screen BEFORE the logo, boot it to TWRP and grab the console-ramoops from /sys/fs/pstore/ in the File Manager in Advanced.

P. S. You might have to count how long till it bootloops and then time the key combo right (VOL DOWN + PWR)
Here you go https://pastebin.com/ubyKfJLu (hope i did it right)
 
I noticed that under settings and about phone it says kernel 2.1. I flashed 2.2 though. I am not sure if it's a typo or not so I thought I would check. Also I can't seem to get out of usb charging mode and into mtp or USB mass storage mode. When I run a USB mass storage enabler app it says that my kernel does not have the drivers to support it. I also tried using drive Droid and I can't get it to change the USB mode either by trying different options manually. Twrp mtp works without a problem so I know it's not my cable or driver's in windows 10. When I try to change the USB mode from charging to anything else settings crashes on me. I think I might just do a backup with twrp and start over with a clean install and not run any tweak apps or scripts and see if it works. I took a snapshot of some of my device info from settings > about. Drive Droid is an awesome app and I would like to use it so I can have some bootable pc repair isos on hand if I need them. Also I have been thinking about making a usb otg cable that can also power a alfa USB wifi adapter I have for use with kali nethunter. Magisk looks like it has the drivers and stuff for that though. It is probably not your kernel but I just thought I would let you know in case it is. Thanks for your work again.
Screenshot_20190308-182526.png
 
I noticed that under settings and about phone it says kernel 2.1. I flashed 2.2 though. I am not sure if it's a typo or not so I thought I would check. Also I can't seem to get out of usb charging mode and into mtp or USB mass storage mode. When I run a USB mass storage enabler app it says that my kernel does not have the drivers to support it. I also tried using drive Droid and I can't get it to change the USB mode either by trying different options manually. Twrp mtp works without a problem so I know it's not my cable or driver's in windows 10. When I try to change the USB mode from charging to anything else settings crashes on me. I think I might just do a backup with twrp and start over with a clean install and not run any tweak apps or scripts and see if it works. I took a snapshot of some of my device info from settings &amp;amp;gt; about. Drive Droid is an awesome app and I would like to use it so I can have some bootable pc repair isos on hand if I need them. Also I have been thinking about making a usb otg cable that can also power a alfa USB wifi adapter I have for use with kali nethunter. Magisk looks like it has the drivers and stuff for that though. It is probably not your kernel but I just thought I would let you know in case it is. Thanks for your work again. View attachment 140288

As for the typo, I did re-upload 2.2 fixing that typo as I forgot to increment the version lol. As for your OTG issue, that may be the fstab I modified not letting you. I had some people saying OTG works, others saying it didn't so I tried to modify it myself based on others who did the same. I'm working on a newer version that addresses these issues and will post it soon
 
I was just wondering if you are still working on this. It would be cool to have kernel support for using otg with USB wifi adapters that support wireless injection. Magisk has firmware support for the supported cards but I think the kernel needs to have some things in it as well from what I have gathered.
 
Can someone please post a working link to the kernel .zip? Thank you. The OP's link on mega doesn't work, and I could really use the kernel.
 
Back
Top Bottom