
Hello,
I have problem uncompressing the Kernel image by u-boot. It throws the message "GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover resetting ...".
I have compressed and created u-boot image of the linux kernel by the below commands:
arm-marvell-linux-gnueabi-objcopy -O binary vmlinux vmlinux.bin
gzip --best --force vmlinux.bin
u-boot/tools/mkimage -n 'Compressed kernel for Littleton' -A arm -O linux -T kernel -C gzip -a 0x80200000 -e 0x80208000 -d vmlinux.bin.gz vmlinux.ub
The file sizes were vmlinux - 5.7M vmlinux.bin - 3.1G vmlinux.bin.gz - 5.1M vmlinux.ub - 5.1M
After loading u-boot, from u-boot prompt I issued following commands to boot kernel
========================================================================= $ bdinfo arch_number = 0x0000056C env_t = 0x00000000 boot_params = 0x80000100 DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x04000000 ethaddr = 00:50:43:09:01:1C ip_addr = 10.100.144.42 baudrate = 115200 bps
$ tftpboot 83a00000 vmlinux.ub SMC91111: MAC 00:50:43:09:01:1c Using SMC91111-0 device TFTP from server 10.100.144.245; our IP address is 10.100.144.42 Filename 'vmlinux.ub'. Load address: 0x83a00000 Loading: T T #T ##################T ###########T #######T ############################ ######T #################################T ##################T ######## ##############################################T ########T ########### #################T ################################################ ####T ################################T ########################T ##### #################################T #### done Bytes transferred = 5303381 (50ec55 hex) $ bootm 83a00000 ## Booting kernel from Legacy Image at 83a00000 ... Image Name: Android Kernel 2.6.29 Created: 2010-06-22 5:38:19 UTC Image Type: ARM Linux Kernel Image (gzip compressed) Data Size: 5303317 Bytes = 5.1 MiB Load Address: 80200000 Entry Point: 80208000 Verifying Checksum ... OK Uncompressing Kernel Image ... SYS_BOOTM_LEN = 0x00800000 loadaddr = 0x80200000 imagestartaddr = 0x83A00040 imagelen = 0x0050EC15 inflate: allocated inflate: reset offset = 22 inflate: dynamic codes block inflate: table sizes ok inflate: code lengths ok inflate: codes ok Error: inflate() returned -5 inflate: end GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover resetting ... =====================================================================================
I have enabled verbose debug messages in u-boot/lib/zlib.c
Why BUF_ERROR is (ie. inflate() returned -5) thrown by the zlib? Please let me know what could be wrong.
I am working on Littleton board with PXA310 processor and 64MB DDR SDRAM.
Regards, Unnamalai
DISCLAIMER: -----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------