Re: gptzfsboot problem on HP P410i Smart Array

From: Sergey Dyatko <sergey.dyatko_at_gmail.com>
Date: Tue, 19 Mar 2013 08:41:51 +0300
2012/8/20 Bjorn Larsson <bjwela_at_gmail.com>

> 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 = malloc(sizeof(struct dsk)); fix boot. Yesterday, avg_at_ proposed
patch:
Index: /usr/src/sys/boot/i386/zfsboot/zfsboot.c
===================================================================
--- /usr/src/sys/boot/i386/zfsboot/zfsboot.c    (revision 248421)
+++ /usr/src/sys/boot/i386/zfsboot/zfsboot.c    (working copy)
_at__at_ -302,6 +302,7 _at__at_
      * region in the SMAP, use the last 3MB of 'extended' memory as a
      * high heap candidate.
      */
+       high_heap_size = 0;
     if (bios_extmem >= HEAP_MIN && high_heap_size < HEAP_MIN) {
        high_heap_size = HEAP_MIN;
        high_heap_base = bios_extmem + 0x100000 - HEAP_MIN;

it works for me, without printf() :) Can you test it ?

> Best regards,
>
> Björn Larsson
>
>
> On Sun, Aug 19, 2012 at 6:41 PM, Andrey V. Elsukov <bu7cher_at_yandex.ru>
> wrote:
> >
> > On 19.08.2012 11:22, Bjorn Larsson wrote:
> > > We are having problems with gptzfsboot on a HP DL360 G7 using the P410i
> > > Smart Array Controller.
> > > I’ve some information on this in the archive on this mailing list that
> this
> > > has supposedly been fixed with revision 227400, by implementing the edd
> > > 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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Tue Mar 19 2013 - 04:41:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC