This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: decompression error: incorrect gzip header



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 ...' 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]