From owner-freebsd-current@FreeBSD.ORG Fri Oct 21 22:23:00 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 29E19106564A for ; Fri, 21 Oct 2011 22:23:00 +0000 (UTC) (envelope-from gsfr@stanford.edu) Received: from smtp.stanford.edu (smtp1.Stanford.EDU [171.67.219.81]) by mx1.freebsd.org (Postfix) with ESMTP id 0D35A8FC08 for ; Fri, 21 Oct 2011 22:22:59 +0000 (UTC) Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id D3221470488; Fri, 21 Oct 2011 15:22:59 -0700 (PDT) Received: from nimble.stanford.edu (nimble.Stanford.EDU [171.64.204.227]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: gsfr) by smtp.stanford.edu (Postfix) with ESMTPSA id 310834704FC; Fri, 21 Oct 2011 15:22:59 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Gunnar Schaefer In-Reply-To: <4EA1E60C.8040403@FreeBSD.org> Date: Fri, 21 Oct 2011 15:22:58 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1B6A6A46-C971-450D-A744-C325B2DA0B34@stanford.edu> References: <20111021085851.GA51368@neveragain.de> <201110211633.38764.jhb@freebsd.org> <4EA1E3D0.9000300@FreeBSD.org> <4EA1E60C.8040403@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1084) Cc: Pavel Timofeev , freebsd-current@FreeBSD.org, Dennis Koegel , John Baldwin 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 22:23:00 -0000 On Oct 21, 2011, at 2:37 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=20 >>> mirror) >>>>> as test. [...] >>>>> It was fresh install and I choose guided partitioning (GPT) >>>>> But after reboot my server don't boot from hd. >>>>=20 >>>> 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. >>>=20 >>> Working offline with Dennis, we found that changing the CFLAGS in=20 >>> sys/boot/i386/gptboot/Makefile from "-O1" to "-Os -mrtd" (partially = reverting=20 >>> an earlier commit) fixed gptboot. The next test for someone to do = would be to=20 >>> try just adding "-mrtd" and leaving "-O1" as-is to see if that fixes = it. >>=20 >> Hmm, this is quite unexpected... Do you have a hypothesis why not = using -mrtd >> could cause a problem (a miscompilation?) ? >=20 > 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. >=20 > A litmus question: do those experiencing the trouble all have = BTX_SERIAL defined? Not sure where BTX_SERIAL would be defined, but I'm seeing the problem = with the generic kernel. Does that answer your question? Also, how does this relate to my observation that my system boots in IDE = mode, but hangs in AHCI mode? > P.S. BTW, is BTX_SERIAL documented anywhere? >=20 > --=20 > Andriy Gapon > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"