Date: Thu, 2 Dec 2010 03:39:41 +0800 (SGT) From: Darmawan Salihun <darmawan_salihun@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Re: How to debug BTX loader? Message-ID: <846415.2704.qm@web76808.mail.sg1.yahoo.com> In-Reply-To: <201011300938.53006.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi John, =0A=0A--- On Tue, 11/30/10, John Baldwin <jhb@freebsd.org> wrote:= =0A=0A> From: John Baldwin <jhb@freebsd.org>=0A> Subject: Re: How to debug = BTX loader?=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "Darmawan Salihun" = <darmawan_salihun@yahoo.com>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?846415.2704.qm>