问题描述
我试图找出4件事:
-
在什么对应? Linux内核标记?
What do the branches in https://android.googlesource.com/kernel/common/+refs correspond to ? Linux kernel tags ?
如何内核/通用
=http://source.android.com/source/building-kernels.html相对=nofollow>设备内核库(内核/
)?构建指令以 /设备/ * / * /内核
prebuilt,我不知道他们是如何适应的文件太多
How is kernel/common
related to the device kernel repositories (kernel/
) ? The build instructions refer to /device/*/*/kernel
prebuilt files that I am not sure how they fit in too
什么是的?看上去是空的空白
What is the repo at Kernel-Projects ? Looks empty as the void
如何映射的Android内核版本的API版本(请参阅但它是过时的)
How are mapped android kernel versions to API releases (found this but it is outdated) ?
我知道混帐,为什么主分支。我想AP preciate链接到官方的文档/论坛或到源代码树(S)。
I know about git and why is the master branch empty. I would appreciate links to official docs/forums or to some thorough guide of the source tree(s).
相关报道:<一href=\"http://stackoverflow.com/questions/10510433/kernel-sources-for-android-4-0-ice-cream-sandwich?rq=1\">Kernel对于Android 4.0的源 - Ice Cream Sandwich的
修改
内核的树木的显然是:
kernel/common Common Android Kernel Tree
kernel/exynos
kernel/goldfish
kernel/lk
kernel/msm Kernel tree for Qualcomm chipsets
kernel/omap
kernel/samsung Kernel tree for Samsung systems on Android.
kernel/tegra
页面让我在这个方向 - 遗憾的是它没有更新自2011年 - 开始的讨论,并希望有人会志愿者。在同一页面中我得出的结论是,内核/ LK
回购是引导程序。
The page here got me in this direction - unfortunately it is not updated since 2011 - started a discussion and hopefully someone will volunteer. From the same page I came to the conclusion that the kernel/lk
repo is "a bootloader".
编辑2
我刚刚发现老版本的内核可以在这里找到:的
I just found out that older kernels can be found here : https://www.codeaurora.org/cgit/quic/la/kernel/common/refs/heads
推荐答案
我会尽力给予一些指导方针,它很难回答你所有的问题。
I'll try to give some guidelines as its hard to answer all your questions.
谷歌不关心你编译内核,他们投入大量的努力,使其在许多方面难以与此相反。
Google doesn't care about you compiling the kernel, on the contrary they invest large efforts to make it difficult in many ways.
好消息是,内核的开源许可证,你其实可以下载并编译它。
The good news is that kernel has open source license and you can actually download and compile it.
所以,你在哪里找到产生一个真正的设备上工作code内核源代码?
在设备制造商:
Ex.Samsung设备 - 看,例如在I9500,你会发现银河S4的来源
So where do you find kernel sources that produce a working code on a real device?At the device manufacturer:Ex.Samsung devices - http://opensource.samsung.com/ Look for example at I9500 and you will find the sources of Galaxy S4
芯片组制造商:
- 的Exynos - 三星的芯片组
- 金鱼 - 模拟器设备
- MSM - 高通芯片组
- OMAP - 德州仪器TI芯片组
- 的Tegra - Nvidia的芯片组
- BCM - 的Broadcom芯片组
和有更多
他们的客户是设备制造商,内核树通常不特定的设备兼容,但一系列的芯片组产品,开发人员修改,使其在设备上运行。
例如:高通发布的内核到www codeaurora.org及其客户(三星,HTC,LG,中国的OEM ..)使用code从那里
Their customers are the device manufacturers, and the kernel trees usually not compatible to a specific device, but to a range of chipset products which the developers modify and make it work on the device.For example: Qualcomm publishes their kernel to www.codeaurora.org and its customers (Samsung,HTC,LG,Chinese OEM..) use the code from there.
约2:许多设备仓库配备了prebuilt内核各种原因(例如,如果设备制造商没有发布源),那么你就可以编译整个ROM没有编译内核 - 这就是较差的选项。
about 2.: Many device repositories come with a prebuilt kernel for various of reasons(For example if the device manufacturer is not publishing the sources), then you can compile the whole ROM without compiling a kernel - That is an inferior option.
3:不知道那是什么。
about 3.: No idea what that is.
有关4.:Some有3.4+的软糖及以上。使用3.0+ ICS和2.X通常是GB。然而,也有不少不一致的内核开发者从更新的内核回港专用的驱动程序,导致运行JB,甚至奇巧2.X。
about 4.:Some have 3.4+ for jellybean and up. ICS using 3.0+ and 2.X is usually GB. However, there are many inconsistency as kernel developers back-port specific drivers from newer kernels and result in 2.X running JB and even KitKat.
这篇关于Android的内核库混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!