Date: Thu, 13 Oct 2011 09:41:34 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Christoph Hoffmann <christoph_hoffmann@me.com> Cc: freebsd-current@FreeBSD.org, Daniel Kalchev <daniel@digsys.bg> Subject: Re: gptzfsboot error using HP Smart Array P410i Controller Message-ID: <4E96881E.5020505@FreeBSD.org> In-Reply-To: <BEB27F13-B0E0-4FDA-9F6F-1BF06B967076@me.com> References: <E040B3A9-9B62-4545-ADC9-5CE3A9217024@me.com> <DA5CE78B-5AAB-4DFC-B9EE-BFCF45AFC16F@me.com> <9B96176A-7550-4B60-8F4D-0B667EEF7A15@me.com> <201108161515.50127.jhb@freebsd.org> <23B6937F-F261-4DC4-9168-96720251C98D@me.com> <4E502F2F.50209@FreeBSD.org> <B35B0D02-915F-400D-B033-21E0DD02B3D4@me.com> <9FAB808F-E5D4-4B93-9D5F-BAE025930273@me.com> <4E944197.7050803@digsys.bg> <BEB27F13-B0E0-4FDA-9F6F-1BF06B967076@me.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E96881E.5020505>
