gptzfsboot error using HP Smart Array P410i Controller
Andriy Gapon
avg at FreeBSD.org
Thu Oct 13 06:41:45 UTC 2011
on 13/10/2011 00:33 Christoph Hoffmann said the following:
> 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.
Can you try the latest code in head?
I've removed all the optimization/pessimization compiler flags for gpt/zfs boot
blocks that at times seemed to do more harm than good.
--
Andriy Gapon
More information about the freebsd-current
mailing list