UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 61130

PetaLinux - Uncompressing Kernel Image ... Error: inflate() returned -5 Message During Boot

Description

When booting my Linux system, it fails to boot with the following message:


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

resetting ...

Solution

When extracting the compressed Linux kernel image, UBOOT stores the compressed image in DDR as a buffer.  

If the compressed image is located in memory such that the buffer area and the location to which the image is decompressed overlap, the boot process will fail because the memory spaces collide.

This can be worked around by increasing the amount of space that the UBOOT bootm command may use for the extraction process.  

This can be accomplished by adding the following UBOOT configuration parameter to the UBOOT configuration header:

#define CONFIG_SYS_BOOTM_LEN <size>


Where <size> is equal to or larger than the size of the FIT image (eg, image.ub)

AR# 61130
Date Created 06/13/2014
Last Updated 07/31/2014
Status Active
Type General Article
Tools
  • PetaLinux