From owner-freebsd-embedded@FreeBSD.ORG Mon May 31 02:26:14 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 537C61065670 for ; Mon, 31 May 2010 02:26:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id EFF758FC12 for ; Mon, 31 May 2010 02:26:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o4V2L1xv002327; Sun, 30 May 2010 20:21:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 30 May 2010 20:21:08 -0600 (MDT) Message-Id: <20100530.202108.506052712838313159.imp@bsdimp.com> To: pierre@userid.org From: "M. Warner Losh" In-Reply-To: <4C030271.3090807@userid.org> References: <4C030271.3090807@userid.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: Trying to understand the boot process 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, 31 May 2010 02:26:14 -0000 In message: <4C030271.3090807@userid.org> Pierre Lamy writes: : I've got a nice little Atom box with a CF and hard drive, and I can : currently boot NanoBSD off the flash no problem. : : I would like to optionally select the HD as a bootable device, and it : does show up in the boot: : : 1 FreeBSD : 3 FreeBSD : 5 Drive 1 : : Now, I have already set a slice and put /boot in ad4s1a, and FreeBSD : is manually installed out of a chroot'ed install (tar'd on seperate : system and extracted correctly to the appropriate local HD filesystem) : but I can't figure out how to actually get it booted, it seems to be : missing the MBR? : : I have already RTFM, and used bsdlabel -B ad4s1, and also tried fdisk : -B. I simply get the "Reboot and select proper boot device or insert : boot media..." message. : : Does anyone have any suggestions? Try turning on packet mode. : My second question is how to label the boot options so that 1 says : NanoBSD, 3 doesn't show up at all, and 5 days FreeBSD. You'd have to hack boot0 to do that, and it is very short of space. Good luck... Warner