AR# 61332


PetaLinux - Decompress Error Handing Off Between UBOOT and Linux Kernel


When booting an embedded Linux system built with PetaLinux, the following message is displayed when handing off between UBOOT and the Linux kernel:


Uncompressing Kernel Image ... Error: inflate() returned -5 GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover


PetaLinux builds FIT images (image.ub) which contain the Linux kernel, device tree, and root filesystem. 

As the FIT image size increases UBOOT might not be able to decompress the FIT image in the amount of memory allocated for this operation. 

The size of the GUNZIP area can be increased by setting the CONFIG_SYS_BOOTM_LEN variable in the UBOOT configuration header (<PETALINUX_PROJ_DIR>/subsystems/linux/configs/u-boot/platform-top.h).  

The maximum allowable size for this variable is defined in the common header for the CPU architecture of your target system (Zynq -

AR# 61332
Date 07/01/2014
Status Active
Type General Article
People Also Viewed