Date: Fri, 3 Dec 2010 03:12:04 +0800 (SGT) From: Darmawan Salihun <darmawan_salihun@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Re: How to debug BTX loader? Message-ID: <64838.99820.qm@web76801.mail.sg1.yahoo.com>
next in thread | raw e-mail | index | archive | help
--0-771319898-1291317124=:99820 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi John, =0A=0A--- On Thu, 12/2/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: Thursday, December 2, 2010, 8:58 AM= =0A> On Wednesday, December 01, 2010=0A> 4:09:42 pm Darmawan Salihun wrote:= =0A> > Hi John, =0A> > =0A> > --- On Tue, 11/30/10, John Baldwin <jhb@freeb= sd.org>=0A> wrote:=0A> > =0A> > > From: John Baldwin <jhb@freebsd.org>=0A> = > > Subject: Re: How to debug BTX loader?=0A> > > To: freebsd-hackers@freeb= sd.org=0A> > > Cc: "Darmawan Salihun" <darmawan_salihun@yahoo.com>=0A> > > = Date: Tuesday, November 30, 2010, 9:38 AM=0A> > > On Monday, November 29, 2= 010 1:01:27=0A> > > pm Darmawan Salihun wrote:=0A> > > > Hi guys, =0A> > > = > =0A> > > > I'm currently working on a BIOS for a custom=0A> Single=0A> > = > Board Computer (SBC). =0A> > > > I have the required BIOS source code and= =0A> tools at=0A> > > hand. =0A> > > > However, the boot process always stu= ck in=0A> the BTX=0A> > > loader =0A> > > > (the infamous "ACPI autoload fa= iled") when I=0A> booted=0A> > > out of USB stick =0A> > > > (with the Free= BSD 8.1 USB stick image). =0A> > > > =0A> > > > I could get the system to b= oot into FreeBSD=0A> 8.1 =0A> > > > (by keeping the CDROM tray open and clo= se it=0A> when the=0A> > > board looks for =0A> > > > boot device, otherwis= e BTX will reboot=0A> instantly). =0A> > > =0A> > > Are you getting an actu= al BTX error message or a=0A> > > freeze?=A0 BTX is just a =0A> > > miniker= nel written all in assembly.=A0 It=0A> doesn't handle=0A> > > loading the k= ernel, =0A> > > etc.=A0 All that work is done by the=0A> /boot/loader=0A> >= > program (which is written in =0A> > > C).=A0 You can find all the source= to the boot=0A> code in=0A> > > src/sys/boot.=A0 The BTX =0A> > > kernel i= s in src/sys/boot/i386/btx/btx/.=0A> > > =0A> > > However, to debug this fu= rther we would need more=0A> info such=0A> > > as what exactly =0A> > > you= are seeing (a hang, a BTX fault with a=0A> register dump,=0A> > > etc.).= =0A> > =0A> > One of the BTX fault shows the register dump in the=0A> attac= hment. =0A> > I hope this could help. Anyway, If I were to try to=0A> inter= pret =0A> > such register dump, where should I start? I understand=0A> x86/= x86_64 =0A> > assembly pretty much, but I'm not quite well versed=0A> with = the =0A> > FreeBSD code using it. =0A> =0A> Looks like the mailing list str= ipped the attachment.=A0=0A> Can you post the =0A> attachment at a URL?=0A>= =0A=0AThe BTX crash message is in the attachment.=0A=0ARegards,=0A=0ADarmaw= an=0A=0A =0A=0A=0A=0A --0-771319898-1291317124=:99820--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64838.99820.qm>