From owner-freebsd-current@FreeBSD.ORG Tue Aug 16 13:50:53 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 23B821065672 for ; Tue, 16 Aug 2011 13:50:53 +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 EB2E18FC14 for ; Tue, 16 Aug 2011 13:50:52 +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 9220146B3C; Tue, 16 Aug 2011 09:50:52 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 359B08A03C; Tue, 16 Aug 2011 09:50:52 -0400 (EDT) From: John Baldwin To: Christoph Hoffmann Date: Tue, 16 Aug 2011 09:48:07 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <201108151212.07874.jhb@freebsd.org> <7BD5F062-A7B0-4D05-989F-F23C9353E7D8@me.com> In-Reply-To: <7BD5F062-A7B0-4D05-989F-F23C9353E7D8@me.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201108160948.07719.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 16 Aug 2011 09:50:52 -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 13:50:53 -0000 On Tuesday, August 16, 2011 9:14:08 am Christoph Hoffmann wrote: > Hello John, > > Thank you very much indeed for your reply. > > The pmbr.s passes the ARGS set to 0x900 to main() in zfsboot.c and > *(uint8_t *)PTOV(ARGS)) is 0x80. > > In zfsboot.c main(), before the line > bootinfo.bi_version = BOOTINFO_VERSION; > gets executed we still keep the right value of the dsk->drive and just after > the execution, the dsk->drive is equal to zero. > > Adding > printf("hello\n"); > before > dsk = malloc(sizeof(struct dsk)); > keeps the dsk->drive value assigned to 0x80 and the box will boot. > > Any comments will be appreciated. That is odd indeed. Can you print out a few things: 1) if high_heap_size is > 0 2) the value of 'dsk' and '&bootinfo' (try this both with a printf before the first call to malloc() and without). -- John Baldwin