如何获得用于Sony Xperia ZR的Android内核开发的mkbootimg?

最近,我得到了要在Ubuntu下编译的内核(有关详细信息,请参见my answer on Askubuntu),但我注意到〜/ 10.4.B.0.569 / kernel / README_Xperia文件提到了一些先决条件,例如

* ramdisk.img - root fs
* mkbootimg - boot.img generator

也是必需的.虽然我已经看到了一些有关如何创建ramdisk.img的指南,但还没有找到如何获取Sony Xperia ZR内核的mkbootimg的方法.

任何指针表示赞赏,谢谢!

编辑

这是一个有点旧的(2011)Sony tutorial on how to build kernels,不幸的是,这也没有解释如何获取ramdisk.img.对于mkbootimg,它说:

Now that we have all the parts we need to create a flashable file. The
next stop is to package the parts. To do this, you’ll need the program
mkbootimg, which is part of the standard Android tree. If you don’t feel
like compiling all of Android to get this tool, it is available to
download from various trusted sites on the Internet.

除了没有找到可从中下载mkbootimg的任何“官方”(例如Sony或Android / Google,在这种情况下我称之为“受信任”)网站之外,听起来应该可以从中构建(?)mkbootimg “标准Android树”.有人知道该怎么做吗?

也可以找到关于mkbootimg和ramdisk.img的类似信息here, with more recent Sony tutorial

*How to obtain these files is beyond the scope of this document, but note that they should match the phone model and the rest of the
software.

现在,如果可以从标准Android来源构建mkbootimg,那么这将如何“匹配手机型号”?

编辑2

XDA论坛上的该主题可能也有助于找到答案:[Tutorial] Kernel building instructions for Xperia devices,该设备具有section for Xperia Z, ZL, ZR, Tablet Z设备.

解决方法:

我找到了mkbootimg / mkbootfs的源代码

git clone https://android.googlesource.com/platform/system/core.git

我发现这些编译指令可以正常工作:

https://gist.github.com/jberkel/1087757

上一篇:OSS使用


下一篇:laravel7 搜索关键字标红及手机号,身份证号隐藏