android中的boot.img文件是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21173628/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is boot.img file in android?
提问by Foad Rezek
I am building the android source code and getting new system.img . I try to flash the new system.img on a device and I see that I need another file called boot.img. What is this file ? what is used for ? how can I get it for my device?
我正在构建 android 源代码并获取新的 system.img 。我尝试在设备上刷新新的 system.img,我发现我需要另一个名为 boot.img 的文件。这个文件是什么?用于什么?我怎样才能为我的设备获得它?
回答by rcbevans
boot.img contains the kernel and ramdisk, critical files necessary to load the device before the filesystem can be mounted. You have to generate the boot.img yourself using mkbootimg, a tool provided by AOSP.
boot.img 包含内核和 ramdisk,这是在挂载文件系统之前加载设备所必需的关键文件。您必须使用 AOSP 提供的工具 mkbootimg 自己生成 boot.img。
All the details you need are available at thisxda-developers thread.
您需要的所有详细信息都可以在此xda-developers 线程中找到。
Thisgoogle discussion thread may also be useful
这个谷歌讨论线程也可能有用