首先要感谢一下这个帖子,给了我一点启发。
http://blog.csdn.net/pottichu/archive/2009/06/11/4261150.aspx
后来又发现个国外的帖子
http://book.opensourceproject.org.cn/embedded/embeddedprime/opensource/0136130550/ch05lev1sec1.html
make -f scripts/Makefile.build obj=arch/arm/boot MACHINE=arch/arm/mach-s3c6400/ arch/arm/boot/zImage
先是将vmlinux的某些段去掉了,生成了Image,比如.comment。
arm-linux-objcopy -O binary -R .note -R .note.gnu.build-id -R .comment -S vmlinux arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
然后用gzip压缩Image,成为piggy.gz。
gzip -f -9 < arch/arm/boot/compressed/../Image > arch/arm/boot/compressed/piggy.gz
GZIP arch/a