LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Bulding Android kernel from source: best way (https://www.linuxquestions.org/questions/linux-mobile-81/bulding-android-kernel-from-source-best-way-4175725801/)

KernelX 06-07-2023 11:38 AM

Bulding Android kernel from source: best way
 
Hello!
Nice to be here!

I have kernel (version 3.10). I need to delete a few built-in modules. Magiskboot didn`t help me. I see that only way to prevent built-in modules from download - build kernel from source.

I found in internet that this kernel
https://github.com/flar2/ElementalX-N5 is the best one.

I want to delete some modules and then make flashable zip or img from this code. There is so much articles in internet. Please, point me to working solutions!

Thank you!

KernelX 06-10-2023 11:38 AM

Thank you very much! Very helpful post. I will try to compile new kernel and follow your instruction.
You said, that "deleting built-in modules can be a bit tricky'. I know that in dekstop Linux I can use modprobe.d file with "install module bin/true".
Can I do something similar in android during boot - set bin/true or point unwanted driver to load in dev/null (setprop or something)? Maybe someday I will see that I need to prevent another one driver from loading. It will be easy to block this module in bash script in runtime or in init.d.

Is it possible?

KernelX 06-10-2023 11:45 AM

Is it right way for building the kernel from source?

building the kernel from source:

https://www.protechtraining.com/blog...roid-kernel-95


All times are GMT -5. The time now is 07:31 PM.