From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 18:28:10 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 46D29106564A for ; Mon, 29 Nov 2010 18:28:10 +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 97A798FC1C for ; Mon, 29 Nov 2010 18:28:09 +0000 (UTC) Received: (qmail 23439 invoked by uid 60001); 29 Nov 2010 18:01:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291053688; bh=aHOxmTP5lEJ6alSg2DHIWZtVvBcFR8CeB8NltGX8+aM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WqdpvkaDAySVe8sKIeNPBphpBwaUk0Kb4TUcOnNNFHuEJpHKrcwebdmH6rvpTH+Pqj0mZQfT/3IiODDoPYNyAgX6ySylU1bWFF9vtBG5fzoAJCxPG41AZm27AXXUDmGWvCsMgueM1LmS8s913g0SHbxNEyGat2Epz1HVXesTTkA= 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:MIME-Version:Content-Type; b=2Td0JtzBZ0ZoBpSd3z8gxL9oueEc04uDfCMHBUNfMu5Dtqk0NfJyDWiUUozsApOVFi3M1FVNZhFYI8HM9Ugtupo/mL7uHrCX0WZ1poawsu8zG+2SQPtUm3VRpus3JurwZolcl24O0MZV3oH2t2fHReDQ//nZfxs09ZLz3l3C5zc=; Message-ID: <187702.21471.qm@web76808.mail.sg1.yahoo.com> X-YMail-OSG: 0h2gSCcVM1mgj88PzXd94rGkrFDAgDJH8xSdSU4G16CYmaB bq4dL0lNymn3cv9kp_WLnSzzZdKI4cjOHA4Tqntympz0a9uv0O_bYBG.mKTk 9oiqOqjzpkWruuGfDV9e5nCaTOhnYyWBAxv6bN5Xk4QjWxsS1OUIiQxmEoyq 1cIsWqGa6uBcBv7qMPmqEgJgBVRjbtJd.bFfEUvFu9nJ_WrxjkpgaoJwigjk ccymclX3D0isxHPswOTYtm6CLj6KnrnBHHvD4r42eSx87DzZxrOPpGLNGmjJ hxw-- Received: from [114.58.32.10] by web76808.mail.sg1.yahoo.com via HTTP; Tue, 30 Nov 2010 02:01:27 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Tue, 30 Nov 2010 02:01:27 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 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: Mon, 29 Nov 2010 18:28:10 -0000 Hi guys, I'm currently working on a BIOS for a custom Single Board Computer (SBC). I have the required BIOS source code and tools at hand. However, the boot process always stuck in the BTX loader (the infamous "ACPI autoload failed") when I booted out of USB stick (with the FreeBSD 8.1 USB stick image). I could get the system to boot into FreeBSD 8.1 (by keeping the CDROM tray open and close it when the board looks for boot device, otherwise BTX will reboot instantly). The target development is actually pfsense 2.0 which is based on FreeBSD 8.0. I need to know how to make BTX be as "verbose as possible" in order to find out what went wrong with the BIOS. I'm suspecting that the el-torito support in the BIOS is incomplete. Nonetheless, I need hints about debugging the BTX loader to pin point the exact problem(s). Anyway, I have fixed the first issue which involves erratic PCI IRQ routing and the board works just fine in Windows XP and Linux (Backtrack 3 and CentOS i386). I found that FreeBSD boot CD contains this file: boot/defaults/loader.conf In order to get verbose BTX output, do I need to set the 'verbose_loading="NO"' to "YES"? I'm thinking about "editing" FreeBSD USB stick boot image (how to do that?) Another thing is, where to find guides about BTX development/debugging in order to analyse a crash dump from the BTX? I have been googling for one night but doesn't find enough info. I read the FreeBSD developer handbook but BTX is not explained in detail there. Where is the location of the BTX source code in FreeBSD source code? That's a lot of questions. Thanks in advance for any response. Regards, Darmawan