From owner-freebsd-questions@FreeBSD.ORG Sun Oct 1 23:34:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65AF716A40F for ; Sun, 1 Oct 2006 23:34:35 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E549A43D46 for ; Sun, 1 Oct 2006 23:34:27 +0000 (GMT) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by diri.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GUApF-0003GJ-3L for freebsd-questions@freebsd.org; Mon, 02 Oct 2006 00:34:26 +0100 Received: from mech-aslap33.men.bris.ac.uk ([137.222.184.33]) by seis.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GUAnm-0007eu-GT for freebsd-questions@freebsd.org; Mon, 02 Oct 2006 00:33:02 +0100 Received: from mech-aslap33.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-aslap33.men.bris.ac.uk (8.13.4/8.13.4) with ESMTP id k91NTv9Q014677 for ; Mon, 2 Oct 2006 00:29:57 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from shterenl@localhost) by mech-aslap33.men.bris.ac.uk (8.13.4/8.13.4/Submit) id k91NTvTt014676 for freebsd-questions@freebsd.org; Mon, 2 Oct 2006 00:29:57 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-aslap33.men.bris.ac.uk: shterenl set sender to mexas@bristol.ac.uk using -f Date: Mon, 2 Oct 2006 00:29:57 +0100 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20061001232957.GA14626@mech-aslap33.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Spam-Score: -1.1 X-Spam-Level: - Subject: boot2 -> BTX halted, but loader(8) boots fine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2006 23:34:35 -0000 I'm trying to bootstrap the system using boot2 directly (bypassing loader(8)) as described in the Admin Guide, in the Architecture Guide and in the boot(8) man page. I have 3 different kernels. However, no matter which kernel I choose at the boot prompt, I always get "BTX halted". An example is reporduced below. - FreeBSD/i386 boot Default 0:ad(0,a)/boot/loader boot: /boot/kernel/kernel int=00000006 err=00000000 efl=00010002 eip=c0443c30 eax=c0443c30 ebx=c0a273c4 ecx=c0a273c4 edx=a020001e esi=00000050 edi=c0443c30 ebp=00002275 esp=0009eaf0 cs:eip=ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff ss:esp=69 95 00 00 00 00 00 80-1e 00 20 a0 00 00 00 00 00 00 00 00 00 00 00 00-a0 dc 00 78 4b 09 00 00 BTX halted At this point I have to reboot with CTRL+ALT+DEL. Only the following registers change for 3 different kernels: eip = eax = edi, ebx = ecx, ebp. All other values do not change from one kernel to another. Bootstrapping with loader(8) works fine, I can load any kernel. I use FreeBSD 6.0-release on compaq armada 1700 laptop with BIOS dated 11/30/1999. I cannot find a newer BIOS version for this model. I've read several reports regarding BTX halted issue on old compaq. Most people report turing off UDMA or DMA in BIOS as a solution. I cannot see any DMA settings in my BIOS (I used Compaq Computer Setup for Portables, ver 2.01H dated 24 Jan 1999). I'm also not sure if it applies in my case as booting with loader(8) works with no problems. I had a look at srs/sys/boot/i386/btx/btx/btx.S and I can see the point at which the code makes this dump. But lack of asm knowledge prevents me from getting any other information. Perhaps somebody can give me a clue of what's wrong based on the register values above? thanks anton ----- End forwarded message ----- -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423