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

[KERNEL] RebelKernel by RebelLion

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:
Upvote 0
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)
 
Upvote 0
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)
 
  • Like
Reactions: Deleted User
Upvote 0
Here you go https://pastebin.com/ubyKfJLu (hope i did it right)

Yes, thank you. Upon first skimming through and searching keywords all I can find is some issues with the pinctrl, which I have no idea about (yet). And I haven't seen this before so it may be specific to your device and setup. I'll see what I can find
 
  • Like
Reactions: Hikari Asagiri
Upvote 0
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
 
Upvote 0
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
 
  • Like
Reactions: Hikari Asagiri
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones