From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 1 19:39:43 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF186106566C for ; Wed, 1 Dec 2010 19:39:43 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76808.mail.sg1.yahoo.com (web76808.mail.sg1.yahoo.com [124.108.123.112]) by mx1.freebsd.org (Postfix) with SMTP id 44B578FC14 for ; Wed, 1 Dec 2010 19:39:42 +0000 (UTC) Received: (qmail 5904 invoked by uid 60001); 1 Dec 2010 19:39:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291232381; bh=HRpFT10VRLPt7ZG3EKUEzYMR3h2q1uTha/eC2rTrjPA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JI3vE8MHuSXR2oufraGVavnTwt9OJbFT0Nk90c7ejUMQw6gNh2oSwJnbU9K5VVZjY2kbnU7iOMM8jv1O6RrPn3Zct+vFQC3RGOCsOPPjnQy5zjd/GZa2a2Re6/btQkPgERzWmDVL3hjEYnjjMmJp/DcgqjN1RQLHg+Ep9fWYJ9c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vOg1WMDR7kEKlAb1O7vb6tBupiYtJS46ZdgCg85WgCR7tw8ZITlHZv5mtXdFkcDQ7yt2YOpB4/KPs676huPGFkbQywhOCi24tf4QKdeHtxBa+bZ2F81OodMPiOrnkKlzbgECnIdeDag+Ii4ekmmJvZL/C6lbOlqSZfpLyi9r/Yk=; Message-ID: <846415.2704.qm@web76808.mail.sg1.yahoo.com> X-YMail-OSG: .SWT5O8VM1n8.yIRbWOzlFxIGfZOQaLeT9F8.5t84cmr2yt CcqzMVIHQW9VqQzy5c83GMrUU4Emy9mEqEz4tVinqup9Scb6EUyTj.Dr9JxY TH.n0aw2.OkfQ5ye7Fx6..sRfDSmtIj_YWa4.l49HbOompiMCjHI758WDadD Hse0SDqvxyDgwUkcAuMYBNn5OAmwCIT1ONoW.XxVwdGUNQEAc_LcDa0100wz .tPa6Kx.nobOmfyE81cdzTXP_qi0XlST6O8nEFwobVnNr.2hmy_F5Nc3EzTj 2mFY32ZZgSZDoVyeNSUMdHZmuKWeZZdGEVE3c2clynCNECCR130OPrmMyKDj Scgkexk6iFTjVTMugbA-- Received: from [114.59.203.215] by web76808.mail.sg1.yahoo.com via HTTP; Thu, 02 Dec 2010 03:39:41 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Thu, 2 Dec 2010 03:39:41 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org In-Reply-To: <201011300938.53006.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: How to debug BTX loader? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 19:39:44 -0000 Hi John, =0A=0A--- On Tue, 11/30/10, John Baldwin wrote:= =0A=0A> From: John Baldwin =0A> Subject: Re: How to debug = BTX loader?=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "Darmawan Salihun" = =0A> Date: Tuesday, November 30, 2010, 9:38 AM= =0A> On Monday, November 29, 2010 1:01:27=0A> pm Darmawan Salihun wrote:=0A= > > Hi guys, =0A> > =0A> > I'm currently working on a BIOS for a custom Sin= gle=0A> Board Computer (SBC). =0A> > I have the required BIOS source code a= nd tools at=0A> hand. =0A> > However, the boot process always stuck in the = BTX=0A> loader =0A> > (the infamous "ACPI autoload failed") when I booted= =0A> out of USB stick =0A> > (with the FreeBSD 8.1 USB stick image). =0A> >= =0A> > I could get the system to boot into FreeBSD 8.1 =0A> > (by keeping = the CDROM tray open and close it when the=0A> board looks for =0A> > boot d= evice, otherwise BTX will reboot instantly). =0A> =0A> Are you getting an a= ctual BTX error message or a=0A> freeze?=A0 =0A=0ABooting from CDROM connec= ted to via USB to CDROM converter =0Awould always failed (triple fault, the= n instant reboot), =0Aunless I left the CDROM tray open and then close it w= hen the =0ABIOS displays "no boot device" error message. =0AIn the latter c= ase, FreeBSD 8.0 and 8.1 would boot just fine. =0A=0ABooting from CF-card c= onnected via USB CF card adapter =0Awith pfsense 1.2.3 would freeze the sys= tem when BTX executes.=0AIt freezes with a register dump of the BTX. I'll p= ost the =0Aregisters dump shortly.=0A=0A=0AAnyway, the system I'm working w= ith is an SBC based on the =0AAMD Geode LX800.=0A=0A> BTX is just a =0A> mi= nikernel written all in assembly.=A0 It doesn't handle=0A> loading the kern= el, =0A> etc.=A0 All that work is done by the /boot/loader=0A> program (whi= ch is written in =0A> C).=A0 You can find all the source to the boot code i= n=0A> src/sys/boot.=A0 The BTX =0A> kernel is in src/sys/boot/i386/btx/btx/= .=0A> =0A=0AOk. Thanks. =0A=0A> However, to debug this further we would nee= d more info such=0A> as what exactly =0A> you are seeing (a hang, a BTX fau= lt with a register dump,=0A> etc.).=0A> =0A=0AI'll post the error message i= n various boot device settings shortly. =0A=0A=0AThanks, =0A=0ADarmawan=0A= =0A=0A=0A