From owner-freebsd-current@FreeBSD.ORG Mon Oct 24 12:27:55 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 AA4BC106566B; Mon, 24 Oct 2011 12:27:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 80FF28FC08; Mon, 24 Oct 2011 12:27:55 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 385F946B45; Mon, 24 Oct 2011 08:27:55 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C9E4C8A02E; Mon, 24 Oct 2011 08:27:54 -0400 (EDT) From: John Baldwin To: Andriy Gapon Date: Mon, 24 Oct 2011 08:18:43 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <4EA1E3D0.9000300@FreeBSD.org> <4EA1E60C.8040403@FreeBSD.org> In-Reply-To: <4EA1E60C.8040403@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201110240818.43938.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 24 Oct 2011 08:27:54 -0400 (EDT) Cc: Pavel Timofeev , freebsd-current@freebsd.org, Dennis Koegel Subject: Re: Fresh installed Freebsd 9 don't boot from hd 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: Mon, 24 Oct 2011 12:27:55 -0000 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 ' 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