Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: TS-7200 16mb kernel image

Hi David -- what is 'cvs -z' lossage? :-)

I build the kernel image and then from /usr/src/distrib/evbarm/gzboot/gzimg, run:

   make  DESTDIR=/usr/src/obj/destdir.evbarm  MACHINE=evbarm

The output from make looks like this:

Populating gzimg_TS7200_wd0_flash_0x60e60000
rm -f gzimg_TS7200_wd0_flash_0x60e60000.kern.gz
gzip -9c /usr/src/sys/arch/evbarm/compile/obj/TS7200/netbsd-wd0.bin > gzimg_TS7200_wd0_flash_0x60e60000.kern.gz /usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbcat /usr/src/obj/destdir.evbarm/usr/mdec/gzboot_TS7200_0x60e60000.bin gzimg_TS7200_wd0_flash_0x60e60000.kern.gz > gzimg_TS7200_wd0_flash_0x60e60000
rm -f gzimg_TS7200_wd0_flash_0x60e60000.gz
gzip -9c gzimg_TS7200_wd0_flash_0x60e60000 > gzimg_TS7200_wd0_flash_0x60e60000.gz

Is this a problem with my version of gzip?

Thanks - Joel

From: "David Laight" <david%l8s.co.uk@localhost>
Sent: Tuesday, August 04, 2009 09:54
Cc: <idatum%comcast.net@localhost>; <port-arm%netbsd.org@localhost>
Subject: Re: TS-7200 16mb kernel image

On Tue, Aug 04, 2009 at 09:58:02AM +0200, Havard Eidnes wrote:
> Hi H?vard -- thanks for your help. I was able to create the kernel > image; > however I'm now stuck on booting the kernel. Here are the messages > during
> boot:
> RedBoot> g 0x60E60000
> >> NetBSD/TS7200 Gzip Boot, Revision 1.2
> >> (root@..., Mon Aug  3 17:32:57 PDT 2009)
> >> Load address: 0x200000
> Uncompressing image...FATAL: error -3 from zlib
> Does this indicate a checksum error?

It does appear to do so -- looking at the zlib(3) man page seems
to indicate so:

     #define Z_OK            0
     #define Z_STREAM_END    1
     #define Z_NEED_DICT     2
     #define Z_ERRNO        (-1)
     #define Z_STREAM_ERROR (-2)
     #define Z_DATA_ERROR   (-3)
     #define Z_MEM_ERROR    (-4)
     #define Z_BUF_ERROR    (-5)
     #define Z_VERSION_ERROR (-6)
     /* Return codes for the compression/decompression functions.
      * Negative values are errors,
      * positive values are used for special but normal events.

If this is a zlib fubar, it might be related to the 'cvs -z' lossage.


David Laight: david%l8s.co.uk@localhost

Home | Main Index | Thread Index | Old Index