QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2509|回复: 4

怎么挂载内核的镜像zImage呢?

[复制链接]
发表于 2005-6-30 16:44:36 | 显示全部楼层 |阅读模式
怎么挂载内核的镜像zImage呢?或者说,从内核的镜像中如何获得make它的配置文件呢?
发表于 2005-7-7 18:14:10 | 显示全部楼层
zImage 在你的内核文件夹中的arch/i386/boot目录中
例如:
/usr/src/linux-2.6.12/arch/i386/boot
回复

使用道具 举报

 楼主| 发表于 2005-7-8 11:27:09 | 显示全部楼层
aklus,我知道编译的镜像在存在什么位置,sorry,是我表达的不够清楚。我的意思是,有没有什么方法,比如mount之类的,可以看到zImage内部的东西,主要是看生成这个镜像的配置文件。象根文件镜像root.cramfs,旧可以通过mount -o loop -t cramfs root.cramfs /mnt/rootcramfs看到内部的东西。因为有个正确的镜像是公司传给我的,可以在开发板上跑,但是自己编译的内核却不行,应该是配置的不正确。
回复

使用道具 举报

发表于 2005-7-8 13:28:51 | 显示全部楼层
看到也没有用,配置文件不会在里面的。现在的内核倒是有一个选项,选上以后,运行的时候,可以从/proc/config.tar.gz里看到配置文件。不过这个好像也解决不了你的问题。
ps:内核应该是压缩文件,先解压缩然后才能mount。上网查查看。
回复

使用道具 举报

发表于 2005-7-8 13:36:28 | 显示全部楼层
[svlug] bzImage?
Keith Owens [email protected]
Fri, 27 Aug 1999 17:45:03 -0700

    * Previous message: [svlug] bzImage?
    * Next message: [svlug] bzImage?
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Fri, 27 Aug 1999 17:08:35 -0700,
"Karsten M. Self" <[email protected]> wrote:
>'make bzImage' will create a kernel image file (the OS executable)
>compressed with the bzip algorithm.  This achieves better compression
>(though slower compression speeds) than the older gzip methods.
>Normally you'd be using 'make zImage' to create a (standard) compressed
>kernel.

FAQ alert!!  bzImage does *NOT* use bzip, it still uses gzip.  It just
uses a different loading sequence which allows bigger (b for bigger,
not bzip) kernels to be booted.  Alas not all hardware likes the
bzImage format which is why it is an option.

bzip is not used for kernels because it cannot decompress in place,
gzip can.  bunzip needs another area to uncompress into, not nice on
small machines.

网上查到的,用gunzip解压之后,直接用mount -o loop bzImage /mnt/tmp应该就能mount上了。(我没试过)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-5 02:19 , Processed in 0.058001 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表