|
发表于 2009-7-23 02:33:55
|
显示全部楼层
Post by 聚焦深空;2008584
吼吼,x86 机器,linux-2.6.30 果然没法去掉压缩选项。
找了之前的 linux-2.6.25.7,没有可选的压缩选择设置,一样只有 make bzImage。
如果没记错,很久以前用 make bzImage 生成压缩版内核是为了配合 1.44M 的可启动软盘、及可启动光盘,当时 x86 机器 内核大小启动过程还受 实模式 640K 限制,当时还有不压缩的编译方式。
久而久之,x86 环境下,用 make bzImage 编译内核成为习惯性动作,make Image,make zImage 消失了都没注意。
不过这是平台相关的,arm 下仍有非压缩的内核可选。
摘录 linux-2.6.30 内核编译命令 make arch=arm help , make arch=x86 help 如下:
- Architecture specific targets (arm):
- * zImage - Compressed kernel image (arch/arm/boot/zImage)
- Image - Uncompressed kernel image (arch/arm/boot/Image)
- * xipImage - XIP kernel image, if configured (arch/arm/boot/xipImage)
- uImage - U-Boot wrapped zImage
- bootpImage - Combined zImage and initial RAM disk
- (supply initrd image via make variable INITRD=<path>)
- install - Install uncompressed kernel
- zinstall - Install compressed kernel
- Install using (your) ~/bin/installkernel or
- (distribution) /sbin/installkernel or
- install to $(INSTALL_PATH) and run lilo
复制代码
- Architecture specific targets (x86):
- * bzImage - Compressed kernel image (arch/x86/boot/bzImage)
- install - Install kernel using
- (your) ~/bin/installkernel or
- (distribution) /sbin/installkernel or
- install to $(INSTALL_PATH) and run lilo
- fdimage - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)
- fdimage144 - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)
- fdimage288 - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)
- isoimage - Create a boot CD-ROM image (arch/x86/boot/image.iso)
- bzdisk/fdimage*/isoimage also accept:
- FDARGS="..." arguments for the booted kernel
- FDINITRD=file initrd for the booted kernel
复制代码
回到前面毁灭兄的问题,现在只有压缩的内核可选,x86 环境下,应该还是 gzip 压缩的内核启动快些,解压最快,只是体积不占优势。
我一直在 x86 环境下操作,真的忽略了其他平台,考虑真的不够全面,谢谢深空兄提示  |
|