From owner-freebsd-current@FreeBSD.ORG Thu Jan 10 21:12:40 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 582866F4; Thu, 10 Jan 2013 21:12:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 34FC5947; Thu, 10 Jan 2013 21:12:40 +0000 (UTC) Received: from ralph.baldwin.cx (c-68-39-198-164.hsd1.de.comcast.net [68.39.198.164]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3C138B944; Thu, 10 Jan 2013 16:12:39 -0500 (EST) From: John Baldwin To: Palle Girgensohn Subject: Re: gptzfsboot error using HP Smart Array P410i Controller Date: Thu, 10 Jan 2013 12:15:48 -0500 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <4F4FECA4.10504@FreeBSD.org> <50EDF5C2.8020609@FreeBSD.org> In-Reply-To: <50EDF5C2.8020609@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201301101215.48510.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 10 Jan 2013 16:12:39 -0500 (EST) Cc: Christoph Hoffmann , freebsd-current@freebsd.org, Andriy Gapon , Bjorn Larsson , Julian Akehurst , Daniel Kalchev X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 10 Jan 2013 21:12:40 -0000 On Wednesday, January 09, 2013 05:57:06 PM Palle Girgensohn wrote: > Palle Girgensohn skrev: > > Hi! > > > > This is still happening with FreeBSD 9.0-RELEASE, as I have just > > discovered. The hack works like a charm, but seems kind of odd... :) > > > > Any progress in getting a "real" fix into the repository? Any risks > > with the hack - is it likely to believe that it will suddenly or > > sporadically fail? > > > > Cheers, Palle > > > > Christoph Hoffmann skrev: > >> Hello Daniel, > >> > >> Last time I checked up on the issue was on the 23rd of September, > >> it was not fixed then. I was able to to boot from drive 0x80 after > >> adding: > >> > >> *** zfsboot.c.orig Fri Sep 23 18:03:26 2011 --- zfsboot.c Fri Sep > >> 23 18:47:44 2011 *************** *** 459,464 **** --- 459,465 ---- > >> heap_end = (char *) PTOV(bios_basemem); } > >> > >> + printf("Hello! I am a hack.\n"); dsk = malloc(sizeof(struct > >> dsk)); dsk->drive = *(uint8_t *)PTOV(ARGS); dsk->type = dsk->drive > >> & DRV_HARD ? TYPE_AD : TYPE_FD; > >> > >> I am inclined to think that this is related to the way how we > >> compile this code, especially when run on the following particular > >> processor: > >> > >> 1 Processor(s) detected, 4 total cores enabled, Hyperthreading is > >> enabled Proc 1: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz QPI Speed: 5.8 > >> GT/s. > >> > >> > >> Regards, > >> > >> Christoph > >> > >> On Oct 11, 2011, at 3:16 PM, Daniel Kalchev wrote: > >>> Has this issue been resolved somehow? Sane method to build > >>> gptzfsboot that will run on HP's P410i? > > Hi, > > This is still happening with 9.2-RELEASE on a HP DL 380 G5: Presumably 9.1? > gptzfsboot: error 1 lba 32 > gptzfsboot: error 1 lba 1 > gptzfsboot: No ZFS pools located, can't boot > > Andriy suggested the latest sys/boot/i386/common/edd.h@243024 from head, > but unfortunately it makes no difference. > > The printf hack above still works fine though. Do you have avg's most recent commit to edd.h to pack various structures? I'm not sure that made it into 9.1. -- John Baldwin