How to build latest linux kernel for Android device?

1,870 views
Skip to first unread message

Ilya Kryukov

unread,
Mar 23, 2013, 4:42:17 PM3/23/13
to android...@googlegroups.com
Collegues, 
I wonder how to build latest linux kernel from https://www.kernel.org/ for Android device (for example Nexus7)?
I have:

The question is:
How can I build latest kernel using all described stuff (aosp source, kernel config, latest kernel)?

Thanks!
Ilya.

Jeremy Morales

unread,
Mar 23, 2013, 5:34:49 PM3/23/13
to android...@googlegroups.com
You don't want the kernel from kernel.org, you want it from Google's source


--
--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-kerne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ilya Kryukov

unread,
Mar 24, 2013, 4:23:32 AM3/24/13
to android...@googlegroups.com
Why? I heard, that since 3.3 version all android patches were merged to linux kernel mainline.

воскресенье, 24 марта 2013 г., 1:34:49 UTC+4 пользователь Giveen написал:

Emeric VIGIER

unread,
Mar 24, 2013, 9:32:49 AM3/24/13
to android...@googlegroups.com
Having generic android patches merged does not mean that your board (Nexus 7) and all its specific devices are supported by current kernel.
Google/Asus has probably not taken the time to clean and push everything to Linus yet.

Emeric

Ilya Kryukov

unread,
Mar 24, 2013, 9:38:47 AM3/24/13
to android...@googlegroups.com
Is there any method to merge vanilla kernel with existing?
What if I would to build android for x86 laptop? All device drivers are in linux kernel for this case.

воскресенье, 24 марта 2013 г., 17:32:49 UTC+4 пользователь m-ric написал:

Emeric VIGIER

unread,
Mar 24, 2013, 9:52:31 AM3/24/13
to android...@googlegroups.com
To begin, you'd better not to. You'll fall in having to debug problems that will take ages to debug.
First make sure you can find and build a kernel that works with your device.
It is easily achieved with the kernel tree provided by your SoC manufacturer (e.g. http://www.omappedia.com/wiki/LinuxOmapKernelGitTrees for OMAP).
For x86, I guess you'll find valuable info here.

When done, I would recommend you to make a list of the features, contained in most recent kernel versions, that you want on your device.
Isolate the patchsets associated and integrate them one by one. After each feature integration, verify that your kernel boots and that the feature is present and functional.

Emeric

Ilya Kryukov

unread,
Mar 24, 2013, 9:58:22 AM3/24/13
to android...@googlegroups.com
Thanks for helpful advice!

Ilya.

воскресенье, 24 марта 2013 г., 17:52:31 UTC+4 пользователь m-ric написал:

Thiago C. Santini

unread,
Mar 24, 2013, 9:44:34 AM3/24/13
to android...@googlegroups.com
What you could do, is checkout the correct kernel for your device from Google and merge 3.8.4 into it, but good luck with that. It's not usually easy, unless you are merging same version of Linux with the same version of Android.
On a side note, there is an experimental branch for 3.8, that may be easier to do so:

For the x86, you can check http://www.android-x86.org/
Atenciosamente / Kind Regards

Thiago Caberlon Santini
Computer Engineer - Federal University of Rio Grande do Sul

Website:   http://www.inf.ufrgs.br/~tcsantini/
PGP-Key: http://www.inf.ufrgs.br/~tcsantini/tcsantini.asc
Reply all
Reply to author
Forward
0 new messages