Skip to content

List of Petalinux Images

Image Definition

Image Name Description
Linux Kernel
image.bin The Linux kernel and root filesystem image in binary format
image.elf The Linux kernel and root filesystem image in ELF format
image.srec The Linux kernel and root filesystem image in SREC format
image.ub The Linux kernel and root filesystem image in U-Boot format (FIT). It maybe include device tree
linux.bin Binary image - kernel only, no filesystem
romfs.img The ROMFS image in binary format
U-Boot
u-boot.bin The U-Boot image in binary format
u-boot.srec The U-Boot image in SREC format
u-boot-s.bin The relocatable U-Boot image in binary format
u-boot-s.elf The relocatable U-Boot image in ELF format
u-boot-s.srec The relocatable U-Boot image in SREC format
ub.config.img U-Boot platform configuration script in binary format
Others
Image The generic Linux kernel binary image file. ← What is this?
uImage An image file that has a U-Boot wrapper (installed by the mkimage utility) that includes the OS type and loader information. In petalinux, it is image.ub.
zImage A compressed version of the Linux kernel image that is self-extracting.
vmlinux is the name of the Linux kernel executable

image.ub – uImage

Petalinux uses “mkimage” to create from “Image”.

mkimage -A arm64 -O linux -T kernel -C none -a $${kernel_loadaddr} -e $${kernel_loadaddr} -d "$(PROOT)/build/$(LINUX_KERNEL)/boot/Image" $(IMAGEROOT)/uImage

As Linux man page, the mkimage command is used to create images for use with the U-Boot boot loader.

As Xilinx Wiki, the Image file is the uncompressed kernel image and the zImage file is a compressed kernel image which will uncompress itself when it starts. If the mkimage utility is available in the build environment, linux-xlnx/arch/arm/boot/uImage will be created by wrapping zImage with a U-Boot header.

.bin vs .elf

From StackOverflow: What is the difference between ELF files and bin files?

https://stackoverflow.com/questions/2427011/what-is-the-difference-between-elf-files-and-bin-files/2427229

Bin file is raw data

Elf file has data and instructions to use this data

Back to top