From owner-freebsd-current@FreeBSD.ORG Fri Aug 5 14:08: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 D168D1065670 for ; Fri, 5 Aug 2011 14:08:44 +0000 (UTC) (envelope-from christoph_hoffmann@me.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id B6BFF8FC0C for ; Fri, 5 Aug 2011 14:08:44 +0000 (UTC) MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Received: from tunnel2.sec101.ch ([62.2.44.114]) by asmtp025.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LPG00F1QKM4DT30@asmtp025.mac.com> for freebsd-current@freebsd.org; Fri, 05 Aug 2011 07:08:32 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-08-05_04:2011-08-05, 2011-08-05, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1108050085 From: Christoph Hoffmann In-reply-to: <9B42BCDF-43E3-4517-9972-47A8B539880F@me.com> Date: Fri, 05 Aug 2011 16:08:27 +0200 Content-transfer-encoding: quoted-printable Message-id: <3D9B1E72-385F-493A-A6B3-4684A2DB50E4@me.com> References: <491F5434-3EF2-40AF-B962-892046DB1D54@me.com> <201108050737.45418.jhb@freebsd.org> <9B42BCDF-43E3-4517-9972-47A8B539880F@me.com> To: Christoph Hoffmann X-Mailer: Apple Mail (2.1244.3) 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: Fri, 05 Aug 2011 14:08:44 -0000 Hello Everyone, Despite the BIOS information about the nonexistent floppy, the zfsboot.c = code=20 will prevent to boot from the first HDD if a floppy is given as a first = available device. The drive 0x0 (floppy) will be probed before the code below and an error = occurs: [=85] gptzfsboot: error 1 lba 32 = =20 gptzfsboot: error 1 lba 1 = =20 [=85] The continue statement will skip the rest of the iteration because =20 if ((i | DRV_HARD) =3D=3D *(uint8_t *)PTOV(ARGS))=20 is true if the drive equals 0x80. As a result we do not call = probe_drive() for this drive. Eliminating if ((i | DRV_HARD) =3D=3D *(uint8_t *)PTOV(ARGS)) =20 continue; would help. Any comments will be appreciated. Best Regards, Christoph i386/zfsboot/zfsboot.c int main(void) { =20 [=85] /* * Probe the rest of the drives that the bios knows about. This * will find any other available pools and it may fill in missing * vdevs for the boot pool. */ for (i =3D 0; i < *(unsigned char *)PTOV(BIOS_NUMDRIVES); i++) { if ((i | DRV_HARD) =3D=3D *(uint8_t *)PTOV(ARGS)) =20 continue; if (!int13probe(i | DRV_HARD)) break; [=85] probe_drive(dsk, NULL); } [=85] On Aug 5, 2011, at 1:47 PM, Christoph Hoffmann wrote: > Hello John, >=20 > No, I and not using clang. >=20 > My problem persists even I apply the patch.=20 >=20 > As a workaround I have to put OS on second LUN presented by the=20 > P410i Controller. >=20 > Regards, >=20 > Christoph >=20 > -- > Christoph Hoffmann >=20 >=20 > On Aug 5, 2011, at 1:37 PM, John Baldwin wrote: >=20 >> On Thursday, August 04, 2011 3:26:49 pm Christoph Hoffmann wrote: >>> Hello Everyone, >>>=20 >>> The system will successfully boot only if the OS installation is = laying on >>> the second drive or higher (0x81 and more). >>=20 >> Are you using clang? If so, you should try either using GCC or using = this=20 >> patch with clang as a workaround from the previous thread on zfsboot = issues: >>=20 >> Index: sys/boot/i386/zfsboot/Makefile >> =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 >> --- sys/boot/i386/zfsboot/Makefile (revision 224653) >> +++ sys/boot/i386/zfsboot/Makefile (working copy) >> @@ -20,7 +20,6 @@ >> -fomit-frame-pointer \ >> -fno-unit-at-a-time \ >> -mno-align-long-strings \ >> - -mrtd \ >> -DBOOT2 \ >> -DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ >> -DSIOFMT=3D${B2SIOFMT} \ >> Index: sys/boot/i386/gptzfsboot/Makefile >> =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 >> --- sys/boot/i386/gptzfsboot/Makefile (revision 224653) >> +++ sys/boot/i386/gptzfsboot/Makefile (working copy) >> @@ -22,7 +22,6 @@ >> -fomit-frame-pointer \ >> -fno-unit-at-a-time \ >> -mno-align-long-strings \ >> - -mrtd \ >> -DGPT -DBOOT2 \ >> -DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ >> -DSIOFMT=3D${B2SIOFMT} \ >>=20 >> --=20 >> John Baldwin >> _______________________________________________ >> 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" >=20 > _______________________________________________ > 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"