From owner-freebsd-current@FreeBSD.ORG Tue Aug 16 15:21:44 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1ADF1065676 for ; Tue, 16 Aug 2011 15:21:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 880A18FC2A for ; Tue, 16 Aug 2011 15:21:44 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 2B3DA46B49; Tue, 16 Aug 2011 11:21:44 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id ABBF48A02E; Tue, 16 Aug 2011 11:21:43 -0400 (EDT) From: John Baldwin To: Christoph Hoffmann Date: Tue, 16 Aug 2011 11:20:51 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <201108160948.07719.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108161120.51761.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 16 Aug 2011 11:21:43 -0400 (EDT) Cc: freebsd-current@freebsd.org Subject: Re: gptzfsboot error using HP Smart Array P410i Controller X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 15:21:44 -0000 On Tuesday, August 16, 2011 10:41:50 am Christoph Hoffmann wrote: > Hello John, > > First with printf() before > dsk = malloc(sizeof(struct dsk)); > > Attempting Boot From CD-ROM > Attempting Boot From Hard Drive (C:) > 464: high_heap_size=0x300000; dsk=0x0; &bootinfo=0x8714 <--- the malloc() is next. > 474: high_heap_size=0x300000; dsk=0xdf325000; &bootinfo=0x8714 > probe_drive(): drive 0x80: type 0: unit 0: slice 1: part 0: > probe_drive(): drive 0x81: type 0: unit 1: slice 0: part 0: > > BTX loader 1.00 BTX version is 1.02 > Consoles: internal video/keyboard > BIOS drive A: is disk0 > BIOS drive C: is disk1 > BIOS drive D: is disk2 > > > and now without printf() at line 464 > > > Attempting Boot From CD-ROM > Attempting Boot From Hard Drive (C:) > 474: high_heap_size=0x300000; dsk=0xdf325000; &bootinfo=0x86b4 > probe_drive(): drive 0x0: type 0: unit 0: slice 0: part 0: > gptzfsboot: error 1 lba 32 > gptzfsboot: error 1 lba 1 > probe_drive(): drive 0x81: type 0: unit 1: slice 0: part 0: > gptzfsboot: No ZFS pools located, can't boot Hmm, so the entire 'dsk' structure gets zero'd it seems. What if you force high_heap_size to 0? -- John Baldwin