From owner-freebsd-current@FreeBSD.ORG Tue Mar 19 05:41:52 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C5515F42 for ; Tue, 19 Mar 2013 05:41:52 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-bk0-x230.google.com (mail-bk0-x230.google.com [IPv6:2a00:1450:4008:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 58F2E2EF for ; Tue, 19 Mar 2013 05:41:52 +0000 (UTC) Received: by mail-bk0-f48.google.com with SMTP id jf20so43789bkc.7 for ; Mon, 18 Mar 2013 22:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=yrx9dmpZ4YKwTPmYltMna5mW0KVxKRzuCV7JV6sa+3U=; b=fTKAxhYFHbwAo1e3D1Y3D07gxH2HpNut9DMpmq6fFi+YmNJPPdi8HZof5CA+NDG087 mJQLXiKP71pLn0sRP5MY3FM84ZrLJmHauuDnM8XLzjHbgcNhUHyvpoMYtyI8DUjsjTmm G5FIdDPnEZu71A4Cb+o+pSV6GAaARi2uIWga+Ei1tqucQplN6UKNilZohr8R4cI1rTsC DB5KxTfQkXR3Wn681lmm0OCBSoESGaJsODRuVWtK0LQYaUtnRL39SRqyM8m+R37WvLAV /WrE9JcLLvwYeLDVNNo4lQw/Bsr48l8tDxUSfENJDsPC39RVkpMF7hdABoDWPlYDSdPf WDKA== MIME-Version: 1.0 X-Received: by 10.205.39.3 with SMTP id tk3mr8097647bkb.113.1363671711336; Mon, 18 Mar 2013 22:41:51 -0700 (PDT) Received: by 10.204.16.144 with HTTP; Mon, 18 Mar 2013 22:41:51 -0700 (PDT) In-Reply-To: References: <50311741.3000204@yandex.ru> Date: Tue, 19 Mar 2013 08:41:51 +0300 Message-ID: Subject: Re: gptzfsboot problem on HP P410i Smart Array From: Sergey Dyatko To: Bjorn Larsson Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-current@freebsd.org 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: Tue, 19 Mar 2013 05:41:52 -0000 2012/8/20 Bjorn Larsson > Hi Andrey, > > We are installing freeBSD using ZFS as root filesystem using the GPT > method as described on the freeBSD ZFS wiki. We are creating a GPT > boot partition with the gptzfsboot program embedded and then a zroot > partition with the freeBSD binaries. This works well and boots on > every system we tested except HP P410i smart array systems. The > problem is that no disks are identified in gptzfsboot and the > following error code is displayed: > > gptzfsboot: error 1 lba 32 > gptzfsboot: error 1 lba 1 > > It appears that gptzfsboot is not identifying the drives properly. > However, when we insert a printf() command in main() in zfsboot.c to > troubleshoot the identification problem, the system boots perfectly > fine. > > This is a problem that I believe was fixed last year in 9-CURRENT by > implementing a proper struct for edd rather than using a char array > for BIOS communication. However, it doesn't seems to have fixed the on > the p410i smart arrays. > > I was faced with same problem on my laptop. Adding printf() into main() before dsk =3D malloc(sizeof(struct dsk)); fix boot. Yesterday, avg@ propos= ed patch: Index: /usr/src/sys/boot/i386/zfsboot/zfsboot.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/sys/boot/i386/zfsboot/zfsboot.c (revision 248421) +++ /usr/src/sys/boot/i386/zfsboot/zfsboot.c (working copy) @@ -302,6 +302,7 @@ * region in the SMAP, use the last 3MB of 'extended' memory as a * high heap candidate. */ + high_heap_size =3D 0; if (bios_extmem >=3D HEAP_MIN && high_heap_size < HEAP_MIN) { high_heap_size =3D HEAP_MIN; high_heap_base =3D bios_extmem + 0x100000 - HEAP_MIN; it works for me, without printf() :) Can you test it ? > Best regards, > > Bj=F6rn Larsson > > > On Sun, Aug 19, 2012 at 6:41 PM, Andrey V. Elsukov > wrote: > > > > On 19.08.2012 11:22, Bjorn Larsson wrote: > > > We are having problems with gptzfsboot on a HP DL360 G7 using the P41= 0i > > > Smart Array Controller. > > > I=92ve some information on this in the archive on this mailing list t= hat > this > > > has supposedly been fixed with revision 227400, by implementing the e= dd > > > data structure. > > > However we still see the same problem and by adding a printf() in > zfsboot.c > > > fixes the problem. > > > Please, let me know if anyone have seen this problem and if there is = a > fix > > > for it? > > > > Hi, > > > > what exactly do you have? > > > > -- > > WBR, Andrey V. Elsukov > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >