从源码构建android系统
在使用 Openmoko 手机 2 年后,我最近购买了三星 Galaxy Android 手机。
选择 Android 的原因之一是它是开源的。 我不想依赖手机制造商为我的手机提供更新。我想自己做。 现在我正处于研究阶段,是否值得花时间。所以问题如下:
我找到了一些从源代码构建 ROM 映像的教程。他们说 Android 构建脚本会在构建内核之前询问手机的品牌。这是否意味着所有手机特定的内容都由脚本处理,或者我必须做一些巫术才能将其刷新到我的手机上?
驱动程序。它们是如何处理的?它们是否作为二进制文件包含在源代码中并自动添加(问题 1),或者我是否必须剖析旧固件才能获取它们并放入我的构建中?我意识到这意味着模块/内核版本兼容性会出现一些问题。
是否有一些我不知道的事情会阻止我构建自定义固件或使其非常耗时?
我不害怕安装 SDK 和工具链,毕竟我是 Openmoko 的所有者。
I've recently purchased Samsung Galaxy Android phone after using Openmoko phone for 2 years.
One of the reasons for choosing Android was is that it's open sourced.
I don't want to depend on phone maker to provide updates for my phone. I'd like to do it myself.
Right now I'm in research stage if it's worth the time or not. So here are the questions:
I found some tutorials for building ROM images from source. They tell that Android build script will ask for make of the phone before building kernel. Does it mean that all the phone specific stuff is handled by the script or I will have to do some voodoo before I can flash it onto my phone?
Drivers. How are they handled? Are they included in the source as binaries and added automatically (question 1) or will I have to dissect old firmware to get them and put in my build? I realize that would mean some problems with module/kernel versions compatibility.
Is there is something I'm not aware of that would prevent me from building my custom firmware or make it very time-consuming?
I'm not afraid of installing SDK's and toolchains, after all I'm an Openmoko owner.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事情会比这稍微复杂一点。
即使面临所有这些障碍,一些有进取心的聪明人还是成功地创建了自定义“ROM”,将开源版本与手机上原始设备制造商安装的驱动程序混合在一起。CyanogenMod 是最著名的之一,可用于多种不同的 Android 设备,但遗憾的是三星 Galaxy 目前似乎并不是 Cyanogen 支持的设备之一。
我发现了一个旧的 链接到这里到在 Galaxy 上获取 root 并在其上加载自定义 ROM 的指南,但不幸的是,他们链接到的 ROM 似乎不再被积极维护。也许值得做一些更详尽的谷歌搜索,看看是否能找到任何人在 Galaxy 上进行积极的开发。
It's gonna be a little more complicated than that.
Even with all of those obstacles, some enterprising smart guys have managed to create custom "ROM's" that blend the OpenSource release with drivers ripped OEM install on the phone, etc. CyanogenMod is one of the best known and is available for several different Android devices, but unfortunately the Samsung Galaxy does not currently appear to be one of the device supported by Cyanogen.
I found an old link here to a guide to getting root on the Galaxy and loading a custom ROM on it, but unfortunately the ROM they link to doesn't seem to be actively maintained anymore. It might be worth doing some more exhaustive google searches to see if you can find anyone doing active development on the Galaxy.