what is the difference between zImage (kernel) and boot.img

来源:互联网 发布:淘宝网店刷信誉平台 编辑:程序博客网 时间:2024/06/18 14:46
what is the difference between zImage (kernel) and boot.img? and question about 'fastboot boot'(的zImage(内核)和boot.img文件之间的区别是什么?关于“fastboot模式启动和问题')
另一个讨论也涉及此主题:
您是从一个标记为重复的主题重定向到这里的:
6 名作者发布了 8 个帖子
上一页 上一页
1
下一页 下一页
  
kenny
12-3-27
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
Hi. I am confused about the zImage and boot.img and how 'fastboot boot' works.. after I compiled the kernel, it generates the zImage.can I use the zImage to boot the phone?eg. 'fastboot boot zImage' or do I have to compile with the whole android sys
Hi.

I am confused about the zImage and boot.img and how 'fastboot boot' works..

after I compiled the kernel, it generates the zImage.
can I use the zImage to boot the phone?
eg. 'fastboot boot zImage'
or do I have to compile with the whole android system to create boot.img ?
what is the difference between zImage and boot.img?

thanks for your help!

显示删减掉的内容
嗨。

我感到困惑的zImage和boot.img文件,以及如何“fastboot模式启动”工程..

后,我编译的内核,它生成的zImage。
我可以使用的zImage手机开机的吗?
例如。 “fastboot模式引导的zImage'
还是我编译整个android系统创建的boot.img?
zImage和boot.img文件之间的区别是什么?

感谢您的帮助!

Jean-Baptiste Queru
12-3-28
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
boot.img contains a ramdisk image after the kernel, which becomes the root filesystem. I'm not sure which of the two is used by fastboot boot. JBQ
boot.img contains a ramdisk image after the kernel, which becomes the
root filesystem.

I'm not sure which of the two is used by fastboot boot.

JBQ

- 显示引用文字 -
On Mon, Mar 26, 2012 at 5:08 PM, kenny <ckh...@gmail.com> wrote:
> Hi.
>
> I am confused about the zImage and boot.img and how 'fastboot boot' works..
>
> after I compiled the kernel, it generates the zImage.
> can I use the zImage to boot the phone?
> eg. 'fastboot boot zImage'
> or do I have to compile with the whole android system to create boot.img ?
> what is the difference between zImage and boot.img?
>
> thanks for your help!
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

显示删减掉的内容
boot.img文件中包含的内核后,它成为一个ramdisk映像
根文件系统。

我不知道使用这两个fastboot模式引导。

JBQ

于2012年3月26日,星期一,5:08 PM,肯尼<ckh...@gmail.com>写道:
>您好。
>
我感到困惑的zImage和boot.img文件和如何fastboot模式启动的作品..
>
>后,我编译的内核,它生成的zImage。
>我可以使用的zImage启动手机?
>如。 “fastboot模式引导的zImage'
>还是我编译整个android系统创造的boot.img?
zImage和boot.img文件之间的区别是什么?
>
感谢您的帮助!
>
> -
>您收到此邮件是因为您订阅“的Andr​​oid
>建筑“的邮件列表。
>张贴到这个组,发送电子邮件至android-building@googlegroups.com的
要退订此论坛,请发送电子邮件至
> Android的建设+ unsub...@googlegroups.com
如需更多选项,请访问本组
> http://groups.google.com/group/android-building?hl=en

-
的Jean-Baptiste M.“JBQ”缺乳
软件工程师,谷歌Android开源项目。

问题直接发送到我有没有理由私营
可能会被忽略或转发到一个公共论坛,没有进一步的
警告。

ruZZ
12-3-28
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
You need to fastboot boot the boot.img. I'm not sure if there is a shortcut to create the boot.img, but once you've already compiled the system it's often one of the first things built in the next build so if you arent building often, just build wit
You need to fastboot boot the boot.img.

I'm not sure if there is a shortcut to create the boot.img, but once you've already compiled the system it's often one of the first things built in the next build so if you arent building often, just build with the system.

You will have to build once at least since you need to create the files which will be part of the initial ram file system image.

Interestingly, some systems beg to differ (samsung cough cough), and the initramfs is baked into the zImage. This actually makes it simpler since you use your usual kernel make system, just link it with a pre-built initramfs. They don't use fastboot though (samsung galaxy nexus does use fastboot though).

There are ways to unpack a pre-built boot.img, replace the zImage and re-pack, eg:

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images

Even if you don't use this method, glancing over it may be interesting.

显示删减掉的内容
你需要,fastboot模式引导boot.img文件。

我不知道,如果有一个快捷方式创建的boot.img,但一旦你已经编译系统,它往往是建立在未来建立这样的第一件事情之一,如果您arent建设往往只是建立与系统。

您将要兴建以来至少一次,你需要创建的文件,这将是初始RAM文件系统映像的一部分。

有趣的是,有些系统不能苟同(三星咳嗽),initramfs是烤成的zImage。这实际上使得它简单,因为你用你平常的内核系统,只需用一个预先构建的initramfs链接。他们不使用fastboot模式,但(三星GALAXY Nexus不使用fastboot模式虽然)。

有办法解压缩一个预建的的boot.img和更换的zImage和重新包装,例如:

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit的%2C_and_Re Pack_Boot_Images

瞥了它一眼,即使你不使用这种方法,可能会很有趣。

ogdobber
12-3-28
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
to fastboot you will need to have a boot.img (e.g. fastboot boot boot.img). to create search google for "mkbootimg"
to fastboot you will need to have a boot.img (e.g. fastboot boot
boot.img). to create search google for "mkbootimg"
- 显示引用文字 -

On Mar 26, 5:08 pm, kenny <ckh...@gmail.com> wrote:
> Hi.
>
> I am confused about the zImage and boot.img and how 'fastboot boot' works..
>
> after I compiled the kernel, it generates the zImage.
> can I use the zImage to boot the phone?
> eg. 'fastboot boot zImage'
> or do I have to compile with the whole android system to create boot.img ?
> what is the difference between zImage and boot.img?
>
> thanks for your help!
显示删减掉的内容
fastboot模式,你将需要有一个boot.img文件(例如fastboot模式启动
boot.img文件)。创建搜索谷歌为“mkbootimg”

在03月26日,5:08时,肯尼<ckh...@gmail.com>写道:
- 显示引用文字 -
>您好。
>
我感到困惑的zImage和boot.img文件和如何fastboot模式启动的作品..
>
>后,我编译的内核,它生成的zImage。
>我可以使用的zImage启动手机?
>如。 “fastboot模式引导的zImage'
>还是我编译整个android系统创造的boot.img?
zImage和boot.img文件之间的区别是什么?
>
感谢您的帮助!
Magnus Bäck
12-3-28
Re: [android-building] Re: what is the difference between zImage (kernel) and boot.img? and question about 'fastboot boot'
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
On Tuesday, March 27, 2012 at 15:00 EDT, ruZZ <ruz...@gmail.com> wrote:
On Tuesday, March 27, 2012 at 15:00 EDT,
ruZZ <ruz...@gmail.com> wrote:

> You need to fastboot boot the boot.img.

"fastboot boot zImage" should work fine if you just want to update the
kernel. IIRC, "fastboot boot" loads the supplied boot.img (or generates
one from a kernel ELF image and optionally the initramfs) into RAM and
reboots the device without touching the flash memory.

> I'm not sure if there is a shortcut to create the boot.img, but once
> you've already compiled the system it's often one of the first things
> built in the next build so if you arent building often, just build
> with the system.

make out/target/product/$TARGET_PRODUCT/boot.img

will build just boot.img (even from a clean build tree). Add -j option
to taste, obviously.

[...]

--
Magnus B�ck
ba...@google.com

显示删减掉的内容
周二,2012年3月27日美国东部时间15:00,
ruZZ <ruz...@gmail.com>写道:

>你需要,fastboot模式引导boot.img文件。

应该可以正常工作的,如果你只是想更新“的fastboot模式启动zImage的”
内核。 IIRC,的“fastboot模式启动”加载所提供的的boot.img文件(或产生
从内核ELF形象和可选的initramfs)到RAM
重新启动设备,而不触及闪存。

>我不知道如果有一个快捷方式创建的boot.img,但一旦
>您已经编译系统,它往往是一个的第一件事
>内置在未来的构建,所以如果你没有建立的时候,刚刚建立
>系统。

/目标/产品/ $ TARGET_PRODUCT / boot.img文件

将建立boot.img的(甚至是从一个干净的构建树)。添加-j选项
的味道,很明显。

[...]

-
马格努斯BI¿½CK
ba...@google.com

Mathew Says IdareYou
12-3-28
Re: [android-building] Re: what is the difference between zImage (kernel) and boot.img? and question about 'fastboot boot'
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
Just make bootimage works fine too

Just make bootimage works fine too

- 显示引用文字 -
On Mar 28, 2012 3:41 AM, "Magnus Bäck" <ba...@google.com> wrote:
- 显示引用文字 -
On Tuesday, March 27, 2012 at 15:00 EDT,
ruZZ <ruz...@gmail.com> wrote:

> You need to fastboot boot the boot.img.

"fastboot boot zImage" should work fine if you just want to update the
kernel. IIRC, "fastboot boot" loads the supplied boot.img (or generates
one from a kernel ELF image and optionally the initramfs) into RAM and
reboots the device without touching the flash memory.

> I'm not sure if there is a shortcut to create the boot.img, but once
> you've already compiled the system it's often one of the first things
> built in the next build so if you arent building often, just build
> with the system.

make out/target/product/$TARGET_PRODUCT/boot.img

will build just boot.img (even from a clean build tree). Add -j option
to taste, obviously.

[...]

--
Magnus Bäck
ba...@google.com


--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
显示删减掉的内容

只要bootimage工程没关系

于2012年3月28日3:41,“马格努斯返回”< ba...@google.com >写道:
- 显示引用文字 -
周二,2012年3月27日美国东部时间15:00,
ruZZ < ruz...@gmail.com >写道:

>你需要,fastboot模式引导boot.img文件。

应该可以正常工作的,如果你只是想更新“的fastboot模式启动zImage的”
内核。 IIRC,的“fastboot模式启动”加载所提供的的boot.img文件(或产生
从内核ELF形象和可选的initramfs)到RAM
重新启动设备,而不触及闪存。

>我不知道如果有一个快捷方式创建的boot.img,但一旦
>您已经编译系统,它往往是一个的第一件事
>内置在未来的构建,所以如果你没有建立的时候,刚刚建立
>系统。

/目标/产品/ $ TARGET_PRODUCT / boot.img文件

将建立boot.img的(甚至是从一个干净的构建树)。添加-j选项
的味道,很明显。

[...]

-
马格努斯返回
ba...@google.com

-
您收到此邮件是因为您订阅“Android大厦的”邮件列表。
要张贴到这个组,发送电子邮件至android-building@googlegroups.com的
要退订此论坛,请发送电子邮件至
android的建设+...@googlegroups.com
如需更多选项,请访问本组
http://groups.google.com/group/android-building?hl=en
kenny
12-3-28
Re: [android-building] Re: what is the difference between zImage (kernel) and boot.img? and question about 'fastboot boot'
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
Thanks for all the information! I have a few more questions: - when re-build whole android system with the my new 'kernel' image (everything else no change since last build), the following .img also get updated in addition to boot.img:boot.imgramdisk
Thanks for all the information!

I have a few more questions:

- when re-build whole android system with the my new 'kernel' image (everything else no change since last build),
the following .img also get updated in addition to boot.img:
boot.img
ramdisk-recovery.img
recovery.img
system.img

Do i need to flash those into the phone too in order to use my kernel?
or flashing only the boot.img is good enough?

- what is purpose ramdisk and rootfs? initramfs ?

Thanks!

显示删减掉的内容
感谢您的所有信息!

我有几个问题:

- 当我的新内核映像(一切没有改变自去年材)重新构建整个android系统,
以下IMG也得到更新,除了boot.img文件:
boot.img文件
ramdisk的recovery.img
recovery.img
的system.img

我需要刷新到手机才能使用我的内核吗?
或只闪烁的boot.img是不够好?

- 目的ramdisk和rootfs的是什么? initramfs的?

非常感谢!

ruZZ
12-3-28
Re: [android-building] Re: what is the difference between zImage (kernel) and boot.img? and question about 'fastboot boot'
其他收件人:
将帖子翻译为中文 由 Google 翻译 - 英文 ≫ 中文 -查看原帖
The boot.img alone is enough as long as it is compatible with the rest of your phone (if it already has the rest of your images on, it is. If it is the same android version without too many differences, it should be fine too). initramfs=ramdisdk=root
The boot.img alone is enough as long as it is compatible with the rest of your phone (if it already has the rest of your images on, it is. If it is the same android version without too many differences, it should be fine too).

initramfs=ramdisdk=rootfs.

It is a set of files used by the kernel to get the rest of the system going.

For example, it holds the start up scripts which mount the rest of the partitions, giving the phone access to the rest of the system folder, where the rest of android is, which then starts to load up.

The recovery works on a similar principle, but instead of loading android it loads a much simpler system which you can use to do other things on the phone, like backups and flashing other partitions.


-ruZZ.

P.S Thanks for the heads up on boot.img make shortcuts :)
- 显示引用文字 -



On Wednesday, March 28, 2012 1:56:00 AM UTC+2, kenny wrote:
Thanks for all the information!

I have a few more questions:

- when re-build whole android system with the my new 'kernel' image (everything else no change since last build),
the following .img also get updated in addition to boot.img:
boot.img
ramdisk-recovery.img
recovery.img
system.img

Do i need to flash those into the phone too in order to use my kernel?
or flashing only the boot.img is good enough?

- what is purpose ramdisk and rootfs? initramfs ?

Thanks!

显示删减掉的内容
boot.img的仅仅是足够的,只要您的手机与其他兼容(如果它已经拥有其余的图像上,它是,如果是相同的Andr​​oid版本没有太多的差异,应该没事太)。

initramfs的ramdisdk = rootfs的。

它是一组内核所使用的文件系统的其余部分去。

例如,它持有挂载其余分区的启动脚本,给电话接入系统文件夹,其中智能机器人的其余部分,然后开始加载的其余部分。

恢复的工作原理类似的原则,但它加载,而不是加载android的一个简单得多的系统,你可以用在手机上做其他事情,如备份和闪烁的其他分区。


ruZZ。

PS感谢元首的boot.img快捷键:)



周三,2012年3月28日上午01时56分00秒UTC +2,肯尼写道:
感谢您的所有信息!

我有几个问题:

- 当我的新内核映像(一切没有改变自去年材)重新构建整个android系统,
以下IMG也得到更新,除了boot.img文件:
boot.img文件
ramdisk的recovery.img
recovery.img
的system.img

我需要刷新到手机才能使用我的内核吗?
或只闪烁的boot.img是不够好?

- 目的ramdisk和rootfs的是什么? initramfs的?

非常感谢!

原创粉丝点击