Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2011 08:18:43 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        Pavel Timofeev <timp87@gmail.com>, freebsd-current@freebsd.org, Dennis Koegel <dk@neveragain.de>
Subject:   Re: Fresh installed Freebsd 9 don't boot from hd
Message-ID:  <201110240818.43938.jhb@freebsd.org>
In-Reply-To: <4EA1E60C.8040403@FreeBSD.org>
References:  <CAAoTqftvv1t214Q9uWJR-Jug4GJEZshXyOr6uB_d19h2NV89XA@mail.gmail.com> <4EA1E3D0.9000300@FreeBSD.org> <4EA1E60C.8040403@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, October 21, 2011 5:37:16 pm Andriy Gapon wrote:
> on 22/10/2011 00:27 Andriy Gapon said the following:
> > on 21/10/2011 23:33 John Baldwin said the following:
> >> On Friday, October 21, 2011 4:58:51 am Dennis Koegel wrote:
> >>> On Thu, Oct 20, 2011 at 11:28:08AM +0400, Pavel Timofeev wrote:
> >>>> I used FreeBSD 9 amd64 on my HP Proliant DL360 G5 (smart array p400i 
> >> mirror)
> >>>> as test. [...]
> >>>> It was fresh install and I choose guided partitioning (GPT)
> >>>> But after reboot my server don't boot from hd.
> >>>
> >>> We have the same issue on a DL580 G7. Install runs fine, but when it's
> >>> time for the first boot, the bootcode emits a single '-' (where usually
> >>> it would be "spinning" for a moment while loading), hangs for about two
> >>> seconds, and then reboots.
> >>
> >> Working offline with Dennis, we found that changing the CFLAGS in 
> >> sys/boot/i386/gptboot/Makefile from "-O1" to "-Os -mrtd" (partially reverting 
> >> an earlier commit) fixed gptboot.  The next test for someone to do would be to 
> >> try just adding "-mrtd" and leaving "-O1" as-is to see if that fixes it.
> > 
> > Hmm, this is quite unexpected...  Do you have a hypothesis why not using -mrtd
> > could cause a problem (a miscompilation?) ?
> 
> I've just got one: maybe the trouble is caused by the sio_putc procedure in
> sys/boot/i386/btx/btx/btx.S.  It seems to be the only place in the boot code
> where 'ret <number>' instruction is explicitly used.
> 
> A litmus question: do those experiencing the trouble all have BTX_SERIAL defined?

No, they all have an HP machine.

> P.S. BTW, is BTX_SERIAL documented anywhere?

It is not, and I strongly doubt anyone has it enabled.  You can't use it with
boot2 for example due to size bloat.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110240818.43938.jhb>