Date: Tue, 22 Nov 2011 22:07:52 -0500 From: John Nielsen <lists@jnielsen.net> To: John Baldwin <jhb@freebsd.org> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: loader crash / BTX halted on 9.0-RC2 DVD with AMD pseudo-RAID Message-ID: <929879BF-521C-43A1-8D63-DF2B04B6D013@jnielsen.net> In-Reply-To: <201111221026.23015.jhb@freebsd.org> References: <848DEEC1-570F-43F8-B432-A34F81014CD0@jnielsen.net> <201111221026.23015.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 22, 2011, at 10:26 AM, John Baldwin <jhb@freebsd.org> wrote: > On Monday, November 21, 2011 1:45:36 pm John Nielsen wrote: >> This weekend I downloaded the Freebsd 9.0 RC2 amd64 ISO image and burned i= t=20 > to a DVD. I have a computer that currently runs Windows 7 but I plan to=20= > install FreeBSD on it in the near future so I booted it up from the DVD to= =20 > check the hardware/driver status. Much to my dismay, the boot loader crash= ed=20 > right away (register dump followed by "BTX halted") and the computer=20 > immediately rebooted. I took a video with my phone so I could capture the=20= > crash message, screenshot here: >>=20 >> http://picpaste.com/pics/BTXcrash.1321899682.jpg >>=20 >> I then tried tweaking a few BIOS settings and found that turning off the=20= > built-in pseudo-RAID allowed the DVD to boot normally. I changed the SATA t= ype=20 > from "RAID" to "AHCI". Fortunately I plan to use the controller in AHCI mo= de=20 > for the FreeBSD installation so this won't end up being a problem for me, b= ut=20 > I still thought it was worth reporting. >=20 > Hmmm, so this is odd. It died with an Invalid TSS exception on the iret=20= > instruction at the end of the return-from-real-mode trampoline in BTX. =20= > Looking at the dump I noticed that PSL_NT is set in %eflags, so for some=20= > reason the iret was trying to do a nested task return. We shouldn't let > that flag leak out of any real mode code. Try this patch perhaps: Thanks for looking! I put gptboot on a USB stick and tried it with and without the patch. Identi= cal behavior in both cases to booting from the DVD (only faster)--BTX dump a= nd an instant reboot. I didn't do a screen capture yet but will be happy to t= omorrow if it will help. JN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?929879BF-521C-43A1-8D63-DF2B04B6D013>