Mi Mix (lithium) on LOS 19.1 with a newer (5.y) kernel possible? - Xiaomi Mi MIX Questions & Answers

Hi,
I am a mostly Linux person but I've never done with Android developpment.
I've had to patch the mainline Linux kernel on a few occasions and produce builds but that's about it.
I'm trying to assess the difficulty of the task of bringing LOS 19.1 to 'lithium'.
The last LOS kernel for lithium seems to be 3.18.124 but some people from postmarketOS seem to have ported the 5.18.z and 5.20.z kernels to the MSM8996pro cpu.
The first step, of course, would be to build LOS 18.1 on my own dev workstation...
Any ideas, coments, hints or prayers?
Build for lithium | LineageOS Wiki
wiki.lineageos.org
Qualcomm Snapdragon 820 Mainline / linux · GitLab
Staging area for Device Tree support and drivers for various Qualcomm Snapdragon 820/821 mobile devices
gitlab.com

Just noticed this post. I'm building android 13, I'll try with this kernel and see if it's possible. Thanks for letting me know this.

LineageOS 20 is available. Thanks to the kernel patches and more commits.

Related

[EOL] SmartPack-Lite [Kernel] [AOSP 7.x.x] [LOS-14.1] [kltexxx]

This Project is officially dead... If you wish to stay with my work, please consider to use the original SmartPack kernel which can be found here... Thanks to all of you for the great supports...
/* Introduction */
This is a lightweight edition of my own SmartPack Kernel which is presently available for LOS and AOSP based Nougat ROMs. This version of kernel is specially designed for enhancing the battery performance. If you are looking for a highly feature rich kernel, you might be disappointed with this.
Code:
DISCLAIMER!!
I am not responsible for any damage to your device. Everything you are doing on your device is on your own risk.
I only own kltelgt (Korean variant). Hence, kernels under the category 'kltekor' are only tested by myself.
Please note that flashing any custom Kernel including mine will void your warranty.
/* Presently supported devices */
Code:
klte: SM-G900F, SM-G900V, SM-S902L
kltekor: SM-G900K/L/S
kltedv: SM-G900I
klteduos: SM-G900FD, SM-G900MD
kltespr: SM-G900P
/* likely supported devices */
Any klte variant which is presently supported by LineageOS.
/* Features */
Build from latest Lineage OS source code.
Built using Google arm-eabi 4.9_r15 toolchain.
Anykernel for compatibility with maximum devices.
Linux Kernel version is updated to 3.4.113.
Flash and Forget (if you are okay with default settings)
Kernel tweaker app recommend: Offical Kernel Auditor/Kernel Adiutor-Mod.
Added features
CPU voltage control
USB fast charge
Faux sound
FRandom
The Ultra Kernel Samepage Merging (UKSM) feature
CPU input boost
Dynamic sync control 2.0
CPU Freq Gov: NIGHTMARE (Default), INTELLIDEMAND, INTELLIACTIVE, LIONHEART, & ZZMOVE.
CPU Hotplug: Intelli_Plug
IO schedulers: FIFO (Default), FIOPS, & SIO.
TCP congestion algorithms: Westwood (Default), reno, & cubic.
Removed features
Some features that I'm considered as not necessary are (will be) removed.​
/* Special note to ROM developers */
You are allowed to include my kernel in any ROMs. Feel free to contact me, if you need any assistance from my side.
/* Downloads */
kltekor
klte
klteduos
kltedv
kltespr
Old builds
If anyone like to get Kernel Adiutor-Mod in one click, you may use this recovery flash-able zip file (all the credits to its dev).
/* How to */
Code:
1. Go to recovery (TWRP recommend)
2. Flash Kernel
3. Wipe Cache/Dalvik Cache
4. Reboot and enjoy
/* Special note to Korean S5 users */
Flashing this kernel after AOSP/LOS based nougat ROMs originally build for the klte (SM-G900F) variant will allows the use of those ROMs on SM-G900S/K/L. Tested ROMs includes Resurrection Remix, AOKP, crDroid, Mokee, CosmicOS, VanirAOSP, Zephyr OS, Beanstalk, AospExtended etc.
/* Acknowledgements */
Code:
[URL="https://forum.xda-developers.com/member.php?u=2693412"]Haggertk[/URL] for LineageOS 14.X for Galaxy S5
[URL="https://forum.xda-developers.com/member.php?u=947981"]Lord Boeffla[/URL]
[URL="https://forum.xda-developers.com/member.php?u=4527059"]CrazyGamerGR[/URL]
[URL="https://forum.xda-developers.com/member.php?u=3292224"]franciscofranco[/URL]
[URL="https://forum.xda-developers.com/member.php?u=4800121"]Sultanxda[/URL]
[URL="http://forum.xda-developers.com/member.php?u=4544860"]osm0sis[/URL] for AnyKernel project
[URL="https://forum.xda-developers.com/member.php?u=4090196"]David 617[/URL]
[URL="https://www.facebook.com/groups/440242346171392/"]Our Korean Galaxy S5 Facebook group members[/URL]
Many other XDA developers
XDA:DevDB Information
SmartPack-Lite, Kernel for the Samsung Galaxy S5
Contributors
sunilpaulmathew
Source Code: https://github.com/SmartPack
Kernel Special Features:
Version Information
Status: No Longer Updated
Stable Release Date: 2017-03-27
Created 2017-03-27
Last Updated 2017-09-03
Chang-logs
18. August 16, 2017
Stable release: v9_r1
Changes: The source is fully re-based (since LOS kernel source is re-based by the development team). Some of the commits suggested by @Saber is included...
17. August 02, 2017
Stable release: v9
Changes: All the commits in the LOS source code till date. zzmove cpufreq gov is now updated to the latest version (credits: zanezam). Some recent commits in the fastcharge feature are reverted...
16. July 19, 2017
Maintenance update: v8_r2
Changes: All the commits in the LOS kernel source till date...
15. July 13, 2017
Stable release: v8_r1
Changes: Intelli_plug is added as a replacement to Zen_Decision. Sound control (my fav values) and Fast charge features are now enabled by default. All the commits in the LOS kernel source till date...
14. July 6, 2017
Stable release: v8
Changes: Linux kernel version is updated to 3.4.113. Few more updates to sound control.
13. June 27, 2017
Stable release: v7
Changes: Source code is merged with Samsung's latest source (thanks to @haggertk and LOS team). Sound control is updated to fix some issues with speaker sound (now it seems fully working). Toolchain is switched to Google's latest arm-eabi-4.9 r15.
12. June 21, 2017
Maintenance update: v6-r1
Changes: Nothing other than the recent LOS commits till today...
11. June 14, 2017
Stable release: v6
Faux sound is replaced by sound control (credits: franciscofranco). Linux kernel version update to 3.4.113 is temporarily reverted (now its 3.4.111) due to some issues.
10. June 8, 2017
Stable release: v5
Linux Kernel version is updated to 3.4.113. All the recent commits in the LOS source code till date.
9. June 1, 2017
Stable release: v4-r3
Source is fully re-based. USB fast charge is back (replaced charge level). Recent commits on the LOS source code till date.
8. May 24, 2017
Stable release: v4-r2
Changes includes the replacement of Mako hotplug with msm zen decision as well as all the LOS commits till date.
7. May 18, 2017
Maintenance update: v4-r1
Nothing other than latest LOS commits.
6. May 10, 2017
Stable release: v4
Linux Kernel version is updated to 3.4.111. All the commits in the LOS kernel source code until now.
5. May 03, 2017
Stable release: v3
Fast charging feature is now replaced with charge level interface (credits: Lord Boeffla).
All the recent changes in the LOS source code are included.
4. April 19, 2017
Maintenance update: v2-r2
Nothing other than the latest LOS commits.
3. April 15, 2017
Maintenance update: v2-r1
Nothing other than the latest LOS commits.
Support to new devices: kltespr and kltedv
No more separate build for kltevzw since LOS officially merge kltevzw with klte.
2. March 31, 2017
Stable release: v2
Nothing changed other than the latest LOS commits
1. March 27, 2017
Stable release: v1
Can this be flashed over the original smartpack kernel?
badassadism01 said:
Can this be flashed over the original smartpack kernel?
Click to expand...
Click to collapse
Sure... It will work...
to achieve a 100 undervolt : max cpu frequency should be set to 1958mhz and low to the users prefrence , the gov set to conservative , also idont know if you can use boeffla git and permission to add the options of determing the maximum amout of cores that can go online setting it to 3 cores max is perfect and reduce power since one of them wont be used , i dont think the rest affects it but what i will say is that the gpu needs a working gov and add 27mhz frequency so that it can idle at 27mhz with screen off.
working nice on new ressurection remix build
New builds are uploaded...
Code:
[B]March 31, 2017[/B]
Stable release: v2
Nothing changed other than the latest LOS commits.
For starters. THANK YOU! I dig this kernel....Second I have a few requests
1...Could you add MSM Hotplug from myfluxi
2...Could you add Maple and Zen to the IO Schedulers
The reason I ask if because I tune Mako to have all 4 active at all times as I feel it doesn't impact battery and it feels better with these settings for me...MSM it is more customization. Also I'd like to play with those schedulers. I know that you have Zen in the other kernel but I like the less is more approach to most things in my life....so this lite version suits me.
@sunil,
Trying the Kernel now what will be the major power savings is it the kernel itself or other areas?
HaRdC0r3 said:
For starters. THANK YOU! I dig this kernel....Second I have a few requests
1...Could you add MSM Hotplug from myfluxi
2...Could you add Maple and Zen to the IO Schedulers
The reason I ask if because I tune Mako to have all 4 active at all times as I feel it doesn't impact battery and it feels better with these settings for me...MSM it is more customization. Also I'd like to play with those schedulers. I know that you have Zen in the other kernel but I like the less is more approach to most things in my life....so this lite version suits me.
Click to expand...
Click to collapse
HI. I'll try to add those features to the full version of my kernel first and eventually here (depends on the success ). Thanks for the suggestions...
thaidroid said:
@sunil,
Trying the Kernel now what will be the major power savings is it the kernel itself or other areas?
Click to expand...
Click to collapse
A lot of things (they are cool stuffs, but not necessary) were actually removed from the original LOS Kernel. Further, minimal features are only implemented to reduce the kernel size as much as possible. So, the kernel itself will be the major power saving factor (I hope).
Would you want to add arch power saving to this kernel?
badassadism01 said:
Would you want to add arch power saving to this kernel?
Click to expand...
Click to collapse
any reference (xda thread, github etc) plz?
sunilpaulmathew said:
any reference (xda thread, github etc) plz?
Click to expand...
Click to collapse
I think crazygamer dev has implemented it in his kernel, tnough it's discontinued I think. https://github.com/CrazyGamerGR/CrazySuperKernel-CM14.1-KLTE-New-rebase
@sunil,
When I try to use another ROM together with this Kernel or your "BIG" version, everything seems fine with one exception.
Skype app always crashes. Ive tried with KLTE 14.1 (You get a lot more network options on G900S with the klte rom) and also Cosmic and crDroid.
Same result in all of them. Could you test if you have some spare time?
Also when I restore after trying I still get the app crash, to fix I do a restore and then immediately install ROM and Kernel on top/wipe dalvik and cache/Reboot and all is fine
thaidroid said:
@sunil,
When I try to use another ROM together with this Kernel or your "BIG" version, everything seems fine with one exception.
Skype app always crashes. Ive tried with KLTE 14.1 (You get a lot more network options on G900S with the klte rom) and also Cosmic and crDroid.
Same result in all of them. Could you test if you have some spare time?
Also when I restore after trying I still get the app crash, to fix I do a restore and then immediately install ROM and Kernel on top/wipe dalvik and cache/Reboot and all is fine
Click to expand...
Click to collapse
How abt this issue in stock kernel or any other custom kernel? Just to check the role of kernel in this issue...
sunilpaulmathew said:
How abt this issue in stock kernel or any other custom kernel? Just to check the role of kernel in this issue...
Click to expand...
Click to collapse
Sunil I can't test those things with stock Kernel(G900S)that's the reason I'm using your excellent kernel. I have asked and looked in the threads but there are no Skype issues regarding this posted.
thaidroid said:
Sunil I can't test those things with stock Kernel(G900S)that's the reason I'm using your excellent kernel. I have asked and looked in the threads but there are no Skype issues regarding this posted.
Click to expand...
Click to collapse
Okay... I understand the issue. I'm presently using LOS (kltekor version) without no skype issue. I will later test CRDroid and CosmicOS for skpye issue...
sunilpaulmathew said:
Okay... I understand the issue. I'm presently using LOS (kltekor version) without no skype issue. I will later test CRDroid and CosmicOS for skpye issue...
Click to expand...
Click to collapse
Just dirtyflash LOS klte with your kernel and see if Skype will work (everything else should work...I think)? You can then Reflash kltekor again with your kernel to get everything back to normal.
thaidroid said:
Just dirtyflash LOS klte with your kernel and see if Skype will work (everything else should work...I think)? You can then Reflash kltekor again with your kernel to get everything back to normal.
Click to expand...
Click to collapse
Sorry to disappoint you... I tried LOS klte build as well as cRDroid klte buids. As you said, skype is crashed in the case of both ROMs after dirty flash... and works fine with kltekor build. Absolutely no idea to solve the issue. Even don't know it's a fault of my Kernel or not...
Why did you remove interactive governor?

General [KERNEL] Kernel Source Released, let the undervolting, governor tweaks, 90 Hz and hardware mods begin

Kernel source for Rosemary Note 10s has been released Kernel: Xiaomi kernel changes for Redmi Note 10S Android R
Anybody already building custom kernels for rosemary, please post your development progress, be it broken, alpha or beta status.
Beta testers are welcome to participate in technical discussions and findings from other kernel sources for the widely popular Helio G95 processor
Please post your kernel configs to maximize battery savings including successful undervolts corresponding to each CPU and GPU frequency
Also post if you see any variations in hardware vendors like differences in fingerprint reader, or other hardware changes depending on region or hardware revision
GitHub - MiCode/Xiaomi_Kernel_OpenSource at rosemary-r-oss
Xiaomi Mobile Phone Kernel OpenSource. Contribute to MiCode/Xiaomi_Kernel_OpenSource development by creating an account on GitHub.
github.com

Question End of life of Redmi 9T's kernel

Mainline Linux Kernel 4.19 has EOF on 12-2024(support time may be extended, as has happened in the past) , but there is cip-project which extends the life of the LTS Kernel until 1-2029. Will maintainers of custom kernels merge commits from CIP project?
I would use this phone while it has up-to-datę Linux Kernel and OS.
The Linux Kernel Archives - Releases
www.kernel.org
civilinfrastructureplatform:start [Wiki]
wiki.linuxfoundation.org

Source code Leeco Cool1

Kernel sources are taken from LeEco Le2-S2 with the addition of drivers and dtb of our device, camera sources are from "android_kernel_nubia_msm8976-lineage-16.0"
Vendor is the basis of the LeEco Le2-S2 with the addition of our blobs and settings.
Device is the basis of LeEco Le2-S2 and something from Nubia Z17 mini.
#device
Sources of the latest device 10:
lineage-Q
Pixel-Q
Arrow-Q
I took the basis for DT here:
DT
#vendor
Sources of the latest vendor 10:
Vendor-Q
#kernel
Sources of the latest kernel 11:
Kernel-11
Sources and settings from this kernel:
Settings
Sources of the latest kernel 10:
Kernel-10
We look forward to many interesting developments​
Discussion
Big Thanks:
Ampir-nn

General [EOL] Minimal Device tree left as is for TWRP

Hey everyone,
I've tried to make TWRP for ibiza (XT2137-1) but I failed (maybe miserably) but I tried. I am leaving a device tree as is for ibiza on my github repo. If someone wants to thinker with it and maybe create functional recovery then it's up to you. I got my self working to begin this project for debugging Phh/TD GSI as for now Android 13 PE made by Mr. Ponces won't boot on ibiza, and I wanted to extract ramoops and ksmg but stock wouldn't allow me. So I am leaving this to community, maybe one or more people will turn this to something. The second version of device.mk was auto generated by twrpdtgen script and it was defaulted to omni config, so I tried to convert it to twrp config from caprip. I'll publish shortly kernel sources for ibiza.
GitHub - theh0riz0n/android_device_motorola_ibiza: Minimal device tree for Motorola G50 5G (ibiza)
Minimal device tree for Motorola G50 5G (ibiza). Contribute to theh0riz0n/android_device_motorola_ibiza development by creating an account on GitHub.
github.com
兄弟,等你成功

Categories

Resources