From nobody@FreeBSD.org  Fri Jan  2 09:01:13 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 91A031065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jan 2009 09:01:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7DECC8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Jan 2009 09:01:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0291D1D040329
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 Jan 2009 09:01:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0291DiT040328;
	Fri, 2 Jan 2009 09:01:13 GMT
	(envelope-from nobody)
Message-Id: <200901020901.n0291DiT040328@www.freebsd.org>
Date: Fri, 2 Jan 2009 09:01:13 GMT
From: srinivas <srinivas.pnvs@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BTX-Halted - booting with SAS/SATA Controller
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         130110
>Category:       i386
>Synopsis:       [boot] BTX-Halted - booting with SAS/SATA Controller
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 02 09:10:03 UTC 2009
>Closed-Date:    
>Last-Modified:  Fri Jan 02 09:59:33 UTC 2009
>Originator:     srinivas
>Release:        FreeBSD-7.0 and FreeBSD-6.3
>Organization:
>Environment:
FreeBSD-7.0 i386, Free BSD-7.0 amd64 and Free BSD-6.3 i386, Free BSD-6.3 amd64
>Description:


Installing the Free BSD with SAS/SATA Controller upon rebooting gives
BTX-Halted problem. I have installed the Free BSD successfully without
SAS/SATA Controller. 

My Investigation on this.

It reached boot0 stage (i.e) it was able to read MBR and able to find
the bookable image in the drive.

And it displayed
	
      Default: F1

If I press enter, it tried to execute boot2 stage and it prints the error
BTX HALTEDwith some register information.

After pressing enter, it sent the following commands to BIOS service.

0x02  read  --- successful
0x03 -- write -- successful
0x02  read -- successful
0x41  extension check-- successful
0x42  extended read-- successful
0x41  extension check-- successful
0x42  extended read-- successful
0x41  extension check-- successful
0x42  extended read  -------------- when BIOS tried to execute this command, it prints error BTX halted 

Here,  We have OS loader code( Boot0 & boot2) at one side, which will
send BIOS service commands( as listed above) to BIOS services and BIOS
service tried to execute it, giving the response to OS loader code.
While executing the Boot2 code, it prints the error BTX halted. 

In this scenario, we did check the following things,
1.	stack corruption  --  no stack corruption
2.	command failed or not.  all the command was successful till that
	point.
3.	commands sent out by the OS loader code --- usual commands like
	0x02,0x41,0x42,....( except 0x03)



>How-To-Repeat:

>Fix:
I have no idea.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-i386 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Jan 2 09:58:15 UTC 2009 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130110 
>Unformatted:
