From owner-freebsd-current@FreeBSD.ORG Fri Oct 21 21:37:20 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 42ECE1065670; Fri, 21 Oct 2011 21:37:20 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5B7028FC0C; Fri, 21 Oct 2011 21:37:19 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA14785; Sat, 22 Oct 2011 00:37:17 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1RHMmD-000MzV-1r; Sat, 22 Oct 2011 00:37:17 +0300 Message-ID: <4EA1E60C.8040403@FreeBSD.org> Date: Sat, 22 Oct 2011 00:37:16 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111002 Thunderbird/7.0.1 MIME-Version: 1.0 To: John Baldwin , Dennis Koegel , Pavel Timofeev References: <20111021085851.GA51368@neveragain.de> <201110211633.38764.jhb@freebsd.org> <4EA1E3D0.9000300@FreeBSD.org> In-Reply-To: <4EA1E3D0.9000300@FreeBSD.org> X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org 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: Fri, 21 Oct 2011 21:37:20 -0000 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? P.S. BTW, is BTX_SERIAL documented anywhere? -- Andriy Gapon