Linux Kernel Version 4.9

wiktorek140

Senior Member
May 26, 2013
142
155
83
Radom
Linux Kernel 4.9 for Moto G5s​


As you guys already know, our Moto G5s has an ancient linux kernel (3.18.x) which is now EOL (end of life) from support from actual Linux Foundation. It's pretty much stuck there with no probable updates to it (can use the android 3.18 for updates, but I think that's pretty much soon to be deprecated).

I have been working on this kernel since the past months and finally managed to boot it on our Montana!

WARNING: THIS KERNEL IS STILL ALPHA AND SOME BUGS HAVE STILL NOT BEEN FIXED.​



I just wanted to share this kernel with the community!

What works:
  1. Boots
  2. Display
  3. Touch
  4. Storage
  5. Charger
  6. Battery Indication
  7. USB
  8. NFC
  9. Sensors
  10. Data transmission
  11. WiFi
  12. Bluetooth
  13. Tethering
  14. Fingerprint
  15. Fast charging

Bugs:
  1. Audio
  2. Vibrations
  3. Camera
  4. Flashlight
  5. Led diode
  6. SDcard


Want to try for yourself?
lineage-16.0-20200330-UNOFFICIAL-montana_49.zip
Required clean flash. First boot hang at black screen for ~5 min. Later start to work normal.

Huge Thanks to @m_vaisakh for helping me out with bugs and congratulations to him for booting 4.9 on Cedric

Leave a thanks if you like my work!
Buy me a Cup of Coffee or Beer here


XDA:DevDB Information
Linux Kernel Version 4.9, Kernel for the Moto G5S

Contributors
wiktorek140, m_vaisakh
Source Code: https://github.com/wiktorek140/msm-4.9

Kernel Special Features: Linux 4.9 kernel

Version Information
Status: Alpha

Created 2020-03-30
Last Updated 2020-03-30
 
Last edited:

jhonnyx

Senior Member
Oct 14, 2009
810
608
0
Buenos Aires
"kernel special features: 4.9 kernel"
Very creative, is this required?
That kernel is embedded with the zip image provided.
The OS image is tied to the compiled modules of this rom.

So, yes, you need this kernel that is provided with the OS zip to make it work. Don't try to zip another kernel over this zip image.
 

wiktorek140

Senior Member
May 26, 2013
142
155
83
Radom
That kernel is embedded with the zip image provided.
The OS image is tied to the compiled modules of this rom.

So, yes, you need this kernel that is provided with the OS zip to make it work. Don't try to zip another kernel over this zip image.
Yes, kernel is tied to this specyfic build. Its caused some API changes in 4.9 that conflict with regular builds
 

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
That kernel is embedded with the zip image provided.
The OS image is tied to the compiled modules of this rom.

So, yes, you need this kernel that is provided with the OS zip to make it work. Don't try to zip another kernel over this zip image.
Nah I meant in the description of the rom/custom kernel