Subject: kern/20935: sys/lib/libz broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 03/29/2003 14:10:02
>Number:         20935
>Category:       kern
>Synopsis:       sys/lib/libz broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 29 14:11:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.6Q
>Organization:
Wasabi Systems, Inc.
>Environment:
	
	
System: NetBSD/evbarm on ADI BRH reference board
Architecture: arm
Machine: evbarm
>Description:
	gzboot is a standalone program used by NetBSD/evbarm which contains
	a gzip'd NetBSD kernel, much the way install kernels contain a
	ramdisk.  gzboot is then written to flash memory on the board, and
	when started, decompressed the NetBSD kernel from flash into RAM
	and jumps to it.

	The recent changes to sys/lib/libz have broken decompression
	of the kernel by the gzboot:

>How-To-Repeat:
	Attempt to use gzboot from March 29, 2003 sources.

>Fix:
	The problem goes away when the recent sys/lib/libz changes
	are backed out.
>Release-Note:
>Audit-Trail:
>Unformatted:
 	
 	
 >> NetBSD/ADI_BRH Gzip Boot, Revision 1.1
 >> (root@yeah-baby.shagadelic.org, Sat Mar 29 13:59:16 PST 2003)
 >> RAM 0xc0000000 - 0xc7ffffff, heap at 0xc7f00000
 >> Load address: 0xc0200000
 >> Image size: 797527
 Uncompressing image...FATAL: CRC checksum mismatch
 FATAL: error -3 from zlib