Moto G9 Plus kernel compiling - Moto G9 Plus Questions & Answers

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.

Related

Help me with compiling Nougat from the latest OSS sources

Hi to everyone
I have been trying to make a Nougat OS out from the OSS sources but I have lots of issues
The main issue is that when it tries to repo init the source from the OnePlus, it says 404 not found. It works though with the Google sources just fine
Any help or ready build will be appriciated
PS The main reason that I want the OSS build is to prove that it is more optimized than the actual OOS

I need help compliling a custom LineageOS kernel for the oneplus 3t

Hello. I am trying to compile the lineageos 14.1 kernel with support for nethunter features such as packet injection and external wireless support for the Oneplus 3t. To do this, of course I need to enable features in the kernel through menuconfig. I am building on builduntu (https://forum.xda-developers.com/showthread.php?t=2585828) and the rom builds succesfully when I run the build process without touching the configuration in any way - just cloning the repository and then running brunch oneplus3 to build the whole rom. As soon as I try to copy the kernel defconfig and run make menuconfig without changing any options, the build fails forever. I followed the online guides precisely and verified on the lineage irc that the defconfig that I was copying was correct. But I didn't find anything online specifically about configuring a Oneplus 3t kernel and then compiling it. Was anyone on XDA able to build a configured lineageos kernel for the Oneplus 3t? If so, can you please share how you did it? I would be very grateful.
Can anyone help? I just need to know how to save and edit a proper defconfig. I was never able to even copy the defconfig in a way that wouldn't break everything. If you configured the LineageOS kernel for any reason, your shell history of commands for configuring it will be really helpful.

[ALL][Kernel][9.0][EAS][AOSP] Tachyon Kernel

What is a Tachyon?
Wikipedia calls it a "hypothetical" particle that most scientists claim doesn't exist.
That is what this kernel is: A kernel for Treble, something Motorola claims they never will release for our device.
Why upstream?
Well, DirtyUnicorns put it best on G+ : https://plus.google.com/+DirtyUnicornsOfficial/posts/2MpHCwKqh5J
This kernel will stay updated to the latest upstream from Linux-stable tree maintained by @nathanchance on git for msm
What is EAS?
Energy Aware Scheduler is a scheduler that knows how much energy is used on each frequency and how much power it uses to give best power/performance ratio. This kernel is slowly getting updated to the latest EAS patches from Linaro.org. For more information, check the below link.
https://www.linaro.org/blog/energy-aware-scheduling-eas-project/
Features:
Upstream kernel from source
Edits to avoid Safetynet/CTS (If you have root, it will fail signature check inherently without SUhide or Magisk hide)
Built With the Latest Clang for Android with Linaro as the cross compiler
OC GPU (changed 710 MHz to 750 MHz)
Same Adrenoboost tweaks as the Pixel 2 ElementalX kernel.
Wakelock fixes by Boeffla
EAS implementation (still work in progress)
Bugs/Issues:
hit and miss on MotoMods
Download:
Google Drive
Instructions:
Download ZIP to phone
Boot to TWRP.
Flash and follow prompts in Aroma
If you need to flash any GSI zips to boot your GSI, flash them again.
Reflash root if you want root.
Version Information
Status: Beta
Current Stable Version:
Stable Release Date:
Created 2019-02-06
Last Updated 2019-02-06
Source: https://github.com/Uzephi/Nash_AOSP
Git Branch: o9x-tachyon
Compiler: Clang 8.x.x
Cross Compiler: Linaro 7.x
Branch: Android 9.0.y
Kernel Version: 4.4.y
defconfig: nash_defconfig
Credits: @joemossjr - for collaborating and getting this working and debugging w/ me to get the best possible experience for our community. @invisiblek for all the work he's done for our device tree @npjohnson for his work on our device tree. @erfanoabdi for his amazing work getting treble running and his other work on our device.
Thanks and Mentions:
@Lord Boeffla for his wakelock code. @nathanchance for the assistance and amazing guides and keeping msm-8998 up to date with linux-stable @jbats for keeping up to date with linux-stable for me to merge into this kernel.
@flar2 for his work on our chipset, msm8998
All other developers shown in commit history.
(Quoted from Nathan Chance)
A note about donations
Quite a few people have asked to donate to me in the past and I have turned them down. I am not in this for the money, this is my hobby, something I truly enjoy. If you truly want to donate to something (it is not expected in the slightest), I recommend an entity like the Open Source Initiative, the Free Software Foundation, XDA, or any one of the people I have thanked in the OP. Additionally, you are free to copy any and all of my work; the only thing I request is that you not ask for donations as well (though I can't really enforce this lol). Thank you.
Changelog:
08/14/2018:
Initial release
02/06/2019:
Rebase for Pie
EAS Progress:
Schedutil is a form of EAS. I am currently working on fixing it to get it more in line with how smooth EAS runs on the Pixel. (yes, that means Energy Aware has always been in the AOSP kernels, we just never talked about it. Now that I am updating it to the lastest from Linaro, I am being open about it).
Known issues: GSIs don't work.
Hey there Uzephi. This is for the latest 8/14 build of lineage, right? Because after flashing, I'm stuck on the lineage splash screen.
fossiltkm said:
Hey there Uzephi. This is for the latest 8/14 build of lineage, right? Because after flashing, I'm stuck on the lineage splash screen.
Click to expand...
Click to collapse
Apparently the Tamien vibrator changes haven't been merged yet and are still in Gerrit. I am reverting and will release the fixed kernel in about half an hour.
Updated. same Download link, will now work with Lineage Official that released today. (old build worked on test-keys on 0808)
Uzephi said:
)
Click to expand...
Click to collapse
hi mate, so basically this kernel is not for stock rom right?
thanks
ilovemeow said:
hi mate, so basically this kernel is not for stock rom right?
thanks
Click to expand...
Click to collapse
It's only for Treble. The kernel mounts vendor, so even DU won't boot it.
4.4.148 updated, pushed, and uploaded to Drive. No other changes
sorry for my stupidity, but which roms are actually compatible with this kernel?
Debuffer said:
sorry for my stupidity, but which roms are actually compatible with this kernel?
Click to expand...
Click to collapse
Any ROM built for the Z2 force that is treble enabled. Currently running into a no boot with GSI images and working on fixing that. Currently I think that's only Lineage officials built after 08/14. I don't know if DU has gone treble yet.
link updated to 4.4.150. added back CRC as well. Still no verification if that fixed GSI boot issues
anyone else have screen flip recovery issues after flashing this? everytime my recov screen does a 180 no matter if its twrp, lineage rec, etc
jasperbastianrain said:
anyone else have screen flip recovery issues after flashing this? everytime my recov screen does a 180 no matter if its twrp, lineage rec, etc
Click to expand...
Click to collapse
Its a known issue. Stock lineage kernel does this as well. Best thing to do is just boot twrp.
Edit: 4.4.152 merged and Gdrive updated.
4.4.153 has no changes for us. I merged just to be in line with linux-stable but not releasing a build.
Uzephi said:
Its a known issue. Stock lineage kernel does this as well. Best thing to do is just boot twrp.
Edit: 4.4.152 merged and Gdrive updated.
Click to expand...
Click to collapse
I've only had this issue with this kernel, every other kernel I've tried stock or custom have all been able to load twrp correctly. For some reason though I haven't been able to flash any ROMs with the newest twrp, I always have to use 3.2.2.1 official or the 3.2.2.1 for treble.
Updated to 4.4.154. If you are having issues with TWRP, try flashing the installer after the kernel, I haven't had an issue doing it this way.
will this work with Lineage Unofficial builds??
blake .l said:
will this work with Lineage Unofficial builds??
Click to expand...
Click to collapse
Yes

[KERNEL][8.1-9.0] MiPa Kernel [POLLUX/POLLUX_WINDY][2020-10-07]

​kernel by palaych​Features:
Compile with toolchain Linaro 7.5.0
OC/UC CPU/GPU, Voltage CPU
Add more CPU governors
Add support sdFAT and others filesystem
Add support fast charger (usb-charger)
Add Sound Control
Fsync on/off support.
Add UKSM
Lmk Adj Rbtree
And others optimization for battery/performance
AnyKernel2 by osm0sis
Installation:
Flash in TWRP recovery.
Reboot
Tuning apps:
Kernel Adiutor
Download:
AndroidFileHost
If you like my work, you can buy me Сoffee
​
Credits:
CaHbKaUp
Daedroza
cyberwalkman
XDA:DevDB Information
MiPa, Kernel for the Sony Xperia Tablet Z
Contributors
palaych
Source Code: https://github.com/palaych/android_kernel_sony_apq8064
Version Information
Status: Stable
Current Stable Version: 4.0
Stable Release Date: 2019-04-25
Reserved
Reserved
this is very nice! i wonder why i am the first after 3 days to write something :/
just what i need it, i will give it a try!
very smooth and customizable kernel for lineageOS oreo based custom ROMs.
Very Nice kernel. A lot of customizations!
Thanks and keep the great work! ?
Hi Palaych,
Thanks for this kernel!
Any plan to make it available for Xperia Z (Yuga) as well?
Seb
Can someone please tell me what the highest clock rate is with this
kernel of CPU and GPU?
veryjo said:
Can someone please tell me what the highest clock rate is with this
kernel of CPU and GPU?
Click to expand...
Click to collapse
1728Mhz CPU & 487 Mhz GPU is the limit.
Thanks for the information.
I have the kernel installed. I would like to increase the limit of GPU and CPU.
Want to play games with the tablet.
I can test it at my own risk, then we participate
all of them?
I think for the developer it is a "5 minute project" to increase the limits.
Then each user can decide for himself which limit he uses.
Use app like Kernel Adiutor to set clocks whatever you want withing specified limits.
P.S Though with overclock you'll get only monstrous battery disharge, but no suffucient performance boost. This 6 year old tablet is not for gaming....
Hello Palaych,
Thanks again for this kernel that makes my xperia tablet z running smooth and fast (10% to 20% faster without compromising battery capacity).
I would like to install this kernel in my xperia z (smartphone) but I don't really know what to modify to make it compatible. It is the same hardware. Only differences are a bigger screen, a bigger battery capacity, IR remote and no vibrator for xperia tablet z. Other components are strictly the same (CPU, GPU, RAM, ...).
Can you please help me by compiling MiPa kernel to make it compatible with my xperia z (yuga)?
If you're out of time to do so, could you please tell me what modifications to do? (If you have any documentation on how to build a kernel for xperia z, I am also interested in).
Thanks.
Android 5.1.1 to this 8.1 Installation Process
Hi,
I am really new and do not know how to install custom ROM to my Tablet Z SGP311. Is there any instruction how step by step process i can install the ROM?
Thanks
MiPa Kernel 2019-12-07​
Merge last LineageOS repo changes
Cleanup tree
Some optimize
Support AOSP Oreo and Pie (tested on last official LineageOS 15.1 and unofficial 16.0)
Download:
pollux: https://www.androidfilehost.com/?fid=4349826312261681319
pollux_windy: https://www.androidfilehost.com/?fid=4349826312261681320
can you pull request and see if lineage os maintainer will merge some of these patches into the main kernel? it's a bit pain in the butt to check the topic for update and flash it everytime lineage os gets an update
miss_barfin said:
can you pull request and see if lineage os maintainer will merge some of these patches into the main kernel? it's a bit pain in the butt to check the topic for update and flash it everytime lineage os gets an update
Click to expand...
Click to collapse
You can try, but some changes just can be merged in LOS, due to their policy.
quick noob question (never flashed a custom kernel before):
I'm currently running the unofficial lineageOS 16 ROM. If I now flash this kernel here, and then later onflash an update of the entire ROM: is it correct to assuem that I would then have to flash the kernel again after the ROM is updated?
Rootk1t said:
You can try, but some changes just can be merged in LOS, due to their policy.
Click to expand...
Click to collapse
i did it it but i'm not sure if they'll accept it
but my xda account is limited and i can't post the link here but it's there in their github page
it also has some conflicts with main branch

Mi 9T Pro Kernel Development

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?

Categories

Resources