This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: decompression error: incorrect gzip header
- To: wyeepeng at dso dot org dot sg
- Subject: RE: [ECOS] decompression error: incorrect gzip header
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Thu, 23 Aug 2001 05:50:56 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 23-Aug-2001 wyeepeng@dso.org.sg wrote:
> Hi,
>
> This is what I got after I executed:
> "lo -r -d -b 0x100000 /zImage"
> from the redboot of my ipaq to get the kernel thru tftp from my host pc.
> The zImage is a custom built kernel.
>
> I used "make zImage" to create the kernel.
>
> My gzip version is 1.3 (dated 1999-12-21) and my cross compile toolchain is
> from handhelds.org. arm-elf-gcc version 2.95.2.
>
> Is is becos of version conflicts?
>
> Can anyone help?
Yes - don't use the "-d" flag with zImage format kernels. A kernel
in that format has it's own uncompression code builtin.
If you want to use RedBoot's compression code, and save some 18KB in
the resuling image IIRC, then just do this:
% make Image
% gzip arch/arm/boot/Image >/tftpboot/vmlinuz
Then you can 'load -d vmlinuz ...'