Differences between make image uimage and zimage
After the kernel is compiled (make), two files are generated, one image and one zimage. image is the kernel image file, and zimage is the kernel Image Compression file, the image size is about 4 m, while the zimage size is less than 2 m.
What is uimage? It is a uboot-specific image file. It is added with a 64-Byte "Header" before zimage, indicating the kernel version, loading location, generation time, size, and other information; it is no different from zimage after 0x40.
How to generate a uimage file? Find the mkimage file in the/tools directory of uboot and copy it to the/usr/local/bin directory. Then run make uimage in the kernel directory. If it succeeds, you can find the uimage file in the arch/ARM/boot/directory, which is 64 bytes larger than zimage.
In fact, it is an automatic and manual difference. With the uimage header description, U-boot will know the information of the corresponding image. If there is no header, You need to manually set those parameters.
U-boot U means "General.
Zimage is a common Compression Image File in ARM Linux. uimage is a dedicated image file for U-boot. It adds a "Header" with a length of 0x40 before zimage ", specifies the type, loading location, generation time, size, and other information of the image file. In other words, if the execution starts directly from the position 0x40 of uimage, zimage and uimage have no distinction. In addition, the linux2.4 kernel does not support uimage. The linux2.6 kernel supports many embedded systems, but uimage generation also needs to be configured.
Transfer http://el84.blog.163.com/blog/static/483438052008311861648/
VmlinuxThe most original kernel file compiled is not compressed.
ZimageIs a gzip compressed file in vmlinux.
BzimageBZ indicates "Big zimage", which is not compressed with Bzip2. The difference between the two is that zimage decompress the kernel to the low-end memory (the first 640 K), and bzimage decompress the kernel to the high-end memory (more than 1 MB ). If the kernel is small, zimage or bzimage will be used. If the kernel is large, bzimage will be used.
UimageU-boot-specific image file, which is added with a tag with a length of 0x40 before zimage.
VmlinuzIs a copy of The bzimage/zimage file or a link to bzimage/zimage.
InitrdIs short for "Initial ramdisk. It is usually used to temporarily boot the hardware to the State where the actual kernel vmlinuz can take over and continue the boot.
Romfs. IMG is a file system that can be compiled together with the kernel to form an independent and complete imgfile. After the kernel runs, it will automatically find the romfsi. Mg location in the imgfile. Romfs. IMG can also be separated from the kernel, so that after the kernel is loaded, the kernel will go to the specified address to find the mounted romfs. IMG. If romfs is not found at this time. IMG will report an error. Therefore, you must first set romfs. put IMG on the specified address.