LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 06-07-2023, 11:38 AM   #1
KernelX
LQ Newbie
 
Registered: Jun 2023
Posts: 3

Rep: Reputation: 0
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!
 
Old 06-10-2023, 11:38 AM   #2
KernelX
LQ Newbie
 
Registered: Jun 2023
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 06-10-2023, 11:45 AM   #3
KernelX
LQ Newbie
 
Registered: Jun 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Is it right way for building the kernel from source?

building the kernel from source:

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulding of kernel 4.19.66 on Slack64-14.2 BerzinTehvs Slackware 6 08-31-2019 01:07 PM
bulding only a kernel and shell imagine_me2 Linux - Kernel 4 08-05-2010 05:51 AM
gonna start bulding lfs 6. advice needed liljhand Linux From Scratch 5 02-20-2005 01:34 PM
bulding a gcc toolchain with uclibc behmjose Programming 1 02-29-2004 09:54 PM
Bulding SMP file server artur Linux - General 3 04-17-2002 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration