[U-Boot-Users] Uncompressing Kernel Image ... Error: inflate() returned -3

Hi All.
We are working with the development KIT from Atmel AT91RM9200DK and have problem when the U-Boot tries to uncompress the kernel Image.
We have done the following steps.
We started to configure the kernel with menuconfig and after that we run make dep and that was OK, then we performed the following sequence.
1. make Image 2. /usr/local/arm/2.95.3/bin/arm-linux-objcopy -O binary -S vmlinux linux.bin 3. gzip -v9 linux.bin 4. mkimage -A arm -O linux -C gzip -a 0x21000000 -e 0x21000000 -d linux.bin.gz uImage
Version of the programs. [root@localhost linux-2.4.19-rmk7]# /usr/local/arm/2.95.3/bin/arm-linux-objcopy -V GNU objcopy 2.11.2
[root@localhost linux-2.4.19-rmk7]# gzip -V gzip 1.3.3
mkimage version: 0.3.0-1
Printing from U-Boot
Uboot> tftp 21000000 uImage Eth_Init TFTP from server 192.168.1.10; our IP address is 192.168.1.19 Filename 'uImage'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################## done Bytes transferred = 754911 (b84df hex) Uboot> bootm ## Booting image at 21000000 ... Image Name: Image Type: ARM Linux Kernel Image (gzip compressed) Data Size: 754847 Bytes = 737.2 kB Load Address: 21000000 Entry Point: 21000000 Verifying Checksum ... OK Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover OK
Starting kernel ...
Best Regards Christian Darnell

In message F5469535E8DA624FBEACD82A15B6289F1ECEE8@knant37.europe.ad.flextronics.com you wrote:
We are working with the development KIT from Atmel AT91RM9200DK and have problem when the U-Boot tries to uncompress the kernel Image.
Pilot error.
- mkimage -A arm -O linux -C gzip -a 0x21000000 -e 0x21000000 -d
linux.bin.gz uImage
...
Uboot> tftp 21000000 uImage
As has been discussed many, many times before the download address CANNOT be the same as the load address, or U-Boot will overwrite the not-yet-uncompressed part of the image when it starts uncompressing.
GUNZIP ERROR - must RESET board to recover
You got what you asked for.
You must leave at least 1.5 ... 2 MB at the load address for the uncompressed image; try "tftp 21200000;bootm" instead.
Best regards,
Wolfgang Denk
participants (2)
-
Christian Darnell
-
Wolfgang Denk