How to build Kernel from scratch - Android Q&A, Help & Troubleshooting

I want to build a kernel for Xiaomi Redmi 4A. But Xiaomi doesn't release the kernel source. It is an MSM8917 chipset device. Can anyone help me to build the kernel for this device?

Not without source. This is the reason developers and sites like xda condem and avoid this oem.

Related

Why Xiaomi Redmi Note 3 (Mediatek) is neglected?

While Snapdragon has CM14, Mediatek has only CM12.1. Why Redmi Note 3 (Mediatek) is left behind?
Well, MediaTek is known of very bad in terms of custom developing. They just rarely releases source code.
So Xiaomi also didn't release source code for hennessy yet. And I'm 100% sure they won't do it. Without that it's hard to make stable custom ROM, because devs can't build custom kernel.
Also there are many more people who have SD than MTK and more people=better community=more custom developing
as said by kubap, Mediatek and Nvidia devices (except that nexus 7) won't get their source code released so developers can't build any stable ROM from source, that's why you get ported or no roms.
And MTK Redmis are banned in India right now. Whole India has only Snapdragon RN3. Snapdragon edition is the most popular all over the world. So the developers are mainly from China.

Custom roms for Redmi Note 2

Hello,i noticed that there are very little amount of custom roms for Redmi Note 2 and no official support from any custom rom developer. Is there any specific reason and is it really hard to develop rom for this phone? Thanks for your answers!
Because Xiaomi doesn't provide Android update
Or kernel source for mtk devices currently
This is because Xiaomi (mostly redmi series phone)
Use a lot of clone/fake chips and parts on non-important parts on the phone.
Even mediatek released 6.0 source already,
The clone/fake chips doesn't have new driver And cannot pass Google CTS for Android update
This is why letv 1s can update and Redmi Note 2 currently not. About kernel source, mediatek release their source since 67xx series. But still need drivers for working. Unlike good chips, clone/fake chips only have one version of Proprietary driver and not update. So those drivers cannot patched into new kernel. We need to reserve engineering those driver binary and patch them. This is difficult.
Nofearnohappy do this already but it is incomplete
it is true?can you prove it?

nougat rom for nikel

Does anyone make a custom rom for redmi note 4 nikel based in android nougat without bugs ?
joead2010 said:
Does anyone make a custom rom for redmi note 4 nikel based in android nougat without bugs ?
Click to expand...
Click to collapse
No.
Unless Xiaomi/Mediatek release kernel source code, there will never be any custom roms with bugs.
p.s: You can't simple take MT6797 kernel source of other phone because each manufacturer have intergrated hundreds parts different although it have same SOC, but it will not work unless Xiaomi give CORRECT CONFIGURATION to build kernel source.

Need info about caf kernel please give about

Device Redmi note prime Gucci msm8916
Present Xiaomi has released kikat kernel
But android devs are less for this device present I am trying to build android n
But I have tried so many errors with kernel and my device is not booting
So present I have seen about caf kernel
But I don't have much information about caf kernel please tell how to use caf kernel sources
And please tell commits
Code Arora forums (caf) is the place where u can get drivers for the hardware. U can synchronise from its git same way u sync android sources

How to clone a kernel from CodeAurora?

CodeAurora lists lots of releases from Qualcomn in https://wiki.codeaurora.org/xwiki/bin/QAEP/release. `LA.UM.9.15.1.r1-05900-KAMORTA.0` or `bengal` is the codename used for the kernel in my Xiaomi Poco M3. However, how do I pick the kernel source for this release? Where is it? I cannot find it, I don't know how to clone it.
I tried compiling the official xiaomi kernel https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/lime-q-oss but it's broken. I applied some patches but there are lots of broken things, this kernel does not compile, and it's old.
Poco M3 is citrus
https://github.com/Uptownboys32/android_kernel_xiaomi_citrus
https://github.com/nathanchance/android-kernel-clang
aIecxs said:
Poco M3 is citrus
https://github.com/Uptownboys32/android_kernel_xiaomi_citrus
https://github.com/nathanchance/android-kernel-clang
Click to expand...
Click to collapse
yes but I don't want to clone a random kernel from some random place on github, I wanted one from codeaurora or xiaomi official repos
good luck fixing yourself - xiaomi always releases broken sources

Categories

Resources