diary 发表于 2005-6-30 16:44:36

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

怎么挂载内核的镜像zImage呢?或者说,从内核的镜像中如何获得make它的配置文件呢?

aklus 发表于 2005-7-7 18:14:10

zImage 在你的内核文件夹中的arch/i386/boot目录中
例如:
/usr/src/linux-2.6.12/arch/i386/boot

diary 发表于 2005-7-8 11:27:09

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

dukeduan 发表于 2005-7-8 13:28:51

看到也没有用,配置文件不会在里面的。现在的内核倒是有一个选项,选上以后,运行的时候,可以从/proc/config.tar.gz里看到配置文件。不过这个好像也解决不了你的问题。
ps:内核应该是压缩文件,先解压缩然后才能mount。上网查查看。

dukeduan 发表于 2005-7-8 13:36:28


bzImage?
Keith Owens [email protected]
Fri, 27 Aug 1999 17:45:03 -0700

    * Previous message: bzImage?
    * Next message: 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上了。(我没试过)
页: [1]
查看完整版本: 怎么挂载内核的镜像zImage呢?