From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 22 04:08:51 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D06A106564A for ; Mon, 22 Nov 2010 04:08:51 +0000 (UTC) (envelope-from rand@meridian-enviro.com) Received: from zimbra.meridian-enviro.com (zimbra.meridian-enviro.com [12.192.92.32]) by mx1.freebsd.org (Postfix) with ESMTP id F3A988FC08 for ; Mon, 22 Nov 2010 04:08:50 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id 0A81230701C9; Sun, 21 Nov 2010 22:08:50 -0600 (CST) X-Virus-Scanned: amavisd-new at meridian-enviro.com Received: from zimbra.meridian-enviro.com ([127.0.0.1]) by localhost (zimbra.meridian-enviro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3bYs1cTXb1ZJ; Sun, 21 Nov 2010 22:08:49 -0600 (CST) Received: from bygland.randomlights.org (unknown [10.255.0.26]) by zimbra.meridian-enviro.com (Postfix) with ESMTP id E20F130701C7; Sun, 21 Nov 2010 22:08:48 -0600 (CST) Date: Sun, 21 Nov 2010 22:08:48 -0600 Message-ID: <87hbfavw33.wl%rand@meridian-enviro.com> From: Douglas K. Rand To: Brandon Gooch In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i386-portbld-freebsd8.0) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: Nanobsd & /boot/loader X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 04:08:51 -0000 Brandon> It seems your /etc/fstab is pointing to /dev/ad1s1a for your Brandon> root filesystem: Right. But the problem I'm trying to figure out is why nanobsd.sh builds a /boot/loader that doesn't seem to work: Doug> /boot.config: =A0-h Doug> Consoles: serial port Doug> BIOS drive C: is disk0 Doug> BIOS 639kB/523264kB available memory Doug> FreeBSD/i386 bootstrap loader, Revision 1.1 Doug> (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) Doug> \ Doug> \: unknown command Doug> - Doug> /boot/kernel/kernel text=3D0x8c9a23 data=3D0xde2b4+0xa3fb0 syms=3D[0x= 4+0x98450+0x4+0xd0405] Doug> Hit [Enter] to boot immediately, or any other key for command prompt. Doug> Booting [/boot/kernel/kernel] in 8 seconds... Doug> Type '?' for a list of commands, 'help' for more detailed help. Doug> OK boot -s Doug> \ Doug> And then here it simply hangs. I've let it sit for hours and it never Doug> does anything. Its the hanging here that I'm trying to fix. And interestingly it seems that my problem is direclty related to these lines: Doug> FreeBSD/i386 bootstrap loader, Revision 1.1 Doug> (rand@bygland.randomlights.org, Wed Nov 17 21:01:10 CST 2010) Doug> \ Doug> \: unknown command Doug> - It seems that the /boot/loader that nanobsd.sh creates has some problem that causes device.hints to not be loaded, and then with out those hints the kernel can't continue. Specifically the hint.uart.0 knobs. Oh, and fixing /etc/fstab on the CF image still has the same problem as doing ufs:/dev/da0s1a at the mountroot> prompt: Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR:=20 If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=3Drw and then remove invalid mount options from /etc/fstab. Loader variables: vfs.root.mountfrom=3Dufs:/dev/da0s1a vfs.root.mountfrom.options=3Dro