Mi 9T Pro Kernel Development - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Hi,
since I started to get knowledge about kernel building, I have some question which I didn't find myself.
There are many kernel sources like the official raphael source, which is 2 years old.
The CAF from Code Aurora.
The existing kernel like Immensity.
What is the right choice to start with kernel building?
I tried to build all of the source codes available for raphael, but they are failing.
I tried google toolchain but switched to proton clang since gnucc has been deprecated by googles toolchain.
I red the how-to from Nathan Chance, many forum posts, Google's Android Building Page, Arch Linux wiki pages, the CodeAurora FAQ and Infos and much more, but I can't help myself.
I am using Arch Linux but trying out Ubuntu now, to see if it makes a difference.
I appreciate any help, links, messages, posts.
Is there any chance that a (kernel) dev is helping me out?

Related

Guys i just got my X-perfomance to play around. What should i do with it?

i got it as a secondary device for cheap price. any ideas on playing around with the software or else?
On ROM development
Alvin Owen said:
i got it as a secondary device for cheap price. any ideas on playing around with the software or else?
Click to expand...
Click to collapse
Hello,
always a pleasure to have an enthusiast joining the ranks.
You may want to check out the ROM development (the whole platform OR a kernel alone). Some links for you to start with
[Sony Open Device Project](https://developer.sony.com/develop/open-devices/) - this would be the starting point for anyone wishing to deal with the Android software; provides the guides for building full fledged AOSP and mainline kernel
[Sony Xperia developers Github](https://github.com/sonyxperiadev) - the repository for all the code necessary for AOSP and kernel; it is a "wiki" for further development steps; issues are discussed in [https://github.com/sonyxperiadev/bug_tracker]
[Sony AOSP builds with some additions](https://github.com/SonyAosp) - the AOSP code repository with forked sources from XperiaDev Github and with some additions that make the builds more usable (TWRP as a default recovery, OpenGApps already included, etc.); a great resource for a deeper dive into the intricacies of the building-from-source flow; can be used to compare with the barebone AOSP from the official XperiaDev and learn some insights
[LineageOS Wiki](https://wiki.lineageos.org/) - an enthusiast may want to build a Lineage OS instance for the device on his own, the wiki is a great start.
You also might want to get familiar with the followings as a references:
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763 - an XDA complete guide to AOSP building
https://forum.xda-developers.com/general/xda-university/literature-reading-getting-aosp-t3268211 - a collection of references for further insights
https://review.lineageos.org - LineageOS Gerrit platform for a better understanding of the build flow from the perspective of commits
https://github.com/omnirom/Docs/blob/master/Porting_Omni_To_Your_Device.md - a guide to porting an OmniROM to a given device; may be used as another reference to better understand the buidling flow
https://www.aicp-rom.com/ - AICP project home; another source of information for AOSP porting
https://github.com/AndroPlus-org - a reference for kernel development
Happy coding!

Choosing source trees for Android 10 ROM development

Hi guys,
I'm trying to build an AOSP Custom ROM based on Android 10 and some cherry-picking for My Motorola one power(chef). For that, I need some answers.
Can I use the source tree from other ROM developers (like this one ) without making any changes. At the end of the linked thread, you can find the Device tree, Kernel tree, Vendor tree.
Can I use Motorola kernel found here
I'm new to ROM development btw new to programming too
I meant source tree means Device tree, Kernel tree, Vendor tree.
Help me in this I'm circling various thread for the last two days

Moto G9 Plus kernel compiling

Hi all
I have problem in compiling kernel source for Moto G9 Plus. There are apparently 2 versions of kernel source for Moto G9 Plus. There is one source in this link that 's the stock kernel (company released kernel ver. 4.14.117) and the other source that 's released by the experts community in this link.
I can build the community released kernel source, easily through clang or gcc but I can build the stock kernel neither by clang nor gcc (aosp or my host ubuntu or gcc-linaro versions) and I face with different types of errors consecutively (related to compiler version or configuration and code syntax)!
The main question and ambiguity for me is that if it is possible for a company to release a source code, erroneous and buggy or it can be built with a special compiler config or version or under a specific condition?!
Thanks in advance
Sapper Morton said:
The latest tag is available here:
GitHub - MotorolaMobilityLLC/kernel-msm at MMI-QPAS30.19-Q3-32-50-5
Linux Kernel for Motorola devices using MSM-based chipset - GitHub - MotorolaMobilityLLC/kernel-msm at MMI-QPAS30.19-Q3-32-50-5
github.com
As for the compiling errors; audio drivers, wlan and etc, are not included in that repository, you should included yourself:
https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-audio-kernel
https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qcacld-3.0
About the Toolchain, you got that right, usually OEMs will use the default compiler that's matching the release tag.
The custom tree you linked in has these and more resolved; not to blame Motorola or Lenovo, but CAF itself, so a learning curve is necessary.
Click to expand...
Click to collapse
Thanks for your help
but now another question is how can we understand which additional source (just like above two other sources you mentioned alongside the original source) is needed when we want to compile a kernel source?
hi
I have compiled stock kernel of Moto G9 Plus (odessa) based on the tutorial on this link successfully. when I replace the stock kernel (in boot.img) with the new compiled one (Image.gz), the phone has no problem in boot process but it's touch screen does not work and I can not login to the OS. can anyone help me to understand the issue and help to fix the problem?
note:
I know 3 commits (1, 2, 3) is needed to solve the issue about working the core kernel (kernel modules not compiled and not integrated with the core) correctly with kernel modules existing inside the OS from before (thanks @erfanoabdi for explanations and the commits!)
deheshjou said:
hi
I have compiled stock kernel of Moto G9 Plus (odessa) based on the tutorial on this link successfully. when I replace the stock kernel (in boot.img) with the new compiled one (Image.gz), the phone has no problem in boot process but it's touch screen does not work and I can not login to the OS. can anyone help me to understand the issue and help to fix the problem?
note:
I know 3 commits (1, 2, 3) is needed to solve the issue about working the core kernel (kernel modules not compiled and not integrated with the core) correctly with kernel modules existing inside the OS from before (thanks @erfanoabdi for explanations and the commits!)
Click to expand...
Click to collapse
Hi, just curious how your kernel worked out? Is there any chance you are planning on sharing your work? This device could really benefit from a good custom kernel for stock sdcardfs A11, and one for asop(A11&A12) roms.

Question [Request] Building a certain ROM

Firstly, I Apologize in advance. I know this might sound ungrateful to those who have already built so many cutom roms for this device. But let me ask those whoever read this nonetheless.
Some of you might know Paranoid Android or better known as AOSPA. I think this ROM deserve more love for our device, with how much love developers put behind this project. Not to mention the history behind it. It doesn't mean other roms are bad or something. I've been searching for the latest build but only found the abandoned one. I don't have the knowledge or the gear to build one.
So I ask you, kindly who might read this and have the required knowledge. Would you mind take your time and check the sources of said rom? If it tickles your fancy, I would be grateful if you could build it as well. By the way, the ROM is based on CAF.
These are the sources of said ROM
AOSPA
Team Paranoid Android. AOSPA has 489 repositories available. Follow their code on GitHub.
github.com
Paranoid Android Project
Download center | Paranoid Android
aospa.pages.dev
Thank you.

General Open Source Kernel Xiaomi Redmi Note 11 (Nfc) spes/spesn - Petition

Hello everyone,
I wanted to bring your attention to an important petition I recently came across. The petition is calling for the Android kernel to be made open source, which would allow more people to learn and modify its source code.
The Android kernel is the core of the Android operating system, responsible for managing all processes and enabling hardware and software to interact smoothly. While much of Android is already open source, the kernel remains proprietary.
By making the Android kernel open source, we can accelerate technological progress and expand accessibility to technology for all. This would also enable developers to contribute to the kernel and create custom versions of Android that better suit their needs.
I strongly support this petition and encourage you to do the same. If you want to read more or sign the petition, please visit the petition website at here. Thank you for reading and let's work together to make technology more accessible to everyone.
Best regards,
ratabb
Often problems come from group admins who don't have the vision to develop the group.
Like chickens in their coop, so their brains can't be used to think about everything outside the coop.
It is very confusing how such a person can be an admin in a group.
Petition Updated: Half Source Kernel • https://chng.it/4gv8QqYV
ratabb said:
Petition Updated: Half Source Kernel • https://chng.it/4gv8QqYV
Click to expand...
Click to collapse
and then no kernel
How can the device operate if there is no kernel?
We are talking about Petition sources kernel.
Kernel sources Released but its Android R
GitHub - MiCode/Xiaomi_Kernel_OpenSource at spes-r-oss
Xiaomi Mobile Phone Kernel OpenSource. Contribute to MiCode/Xiaomi_Kernel_OpenSource development by creating an account on GitHub.
github.com
Manosdocpap said:
Kernel sources Released but its Android R
GitHub - MiCode/Xiaomi_Kernel_OpenSource at spes-r-oss
Xiaomi Mobile Phone Kernel OpenSource. Contribute to MiCode/Xiaomi_Kernel_OpenSource development by creating an account on GitHub.
github.com
Click to expand...
Click to collapse
So this won't work on Android 12 and 13?

Categories

Resources