From owner-freebsd-embedded@FreeBSD.ORG Fri Apr 17 11:16:36 2009 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 12E32106566C for ; Fri, 17 Apr 2009 11:16:36 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 990CE8FC12 for ; Fri, 17 Apr 2009 11:16:35 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id n3HAmnlQ002129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 17 Apr 2009 12:48:54 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id n3HAmnhc002128 for freebsd-embedded@freebsd.org; Fri, 17 Apr 2009 12:48:49 +0200 (CEST) (envelope-from fb-embedded@psconsult.nl) Date: Fri, 17 Apr 2009 12:48:49 +0200 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org Message-ID: <20090417104848.GA919@psconsult.nl> References: <635bff4620629cdcaa016cca98d50389@mteege.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <635bff4620629cdcaa016cca98d50389@mteege.de> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: nanobsd boot slice selection does not work 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: Fri, 17 Apr 2009 11:16:36 -0000 On Fri, Apr 17, 2009 at 09:49:21AM +0200, Matthias Teege wrote: > Moin, > > I have problems with the bootslice selection on a soekris device. I use > updatepX to copy new images to the device but after a reboot the old > slice is mountet as root. > > I boot the device from slice 1, updatep2, reboot the device, "2" is > selected in the bootmanager but ads1a is mounted as root. After selecting > "2" with keyboard on the console it works. After that I can reboot the > device without any problems and slice 2 is mounted as root. > > I can reproduce this problem with different CF Cards. Does anyone know > this problem? Can I force the bootslice selection? > > My testdevice is a 4801 with comBIOS ver. 1.31 20070408 the system is > FreeBSD 7.2pre. I've done many nanobsd installs on net4801 with FreeBSD up to 7.1p3 and never come across this problem. The switch of the default boot slice is made by updatepX calling boot0cfg but only after all preceding steps (notably dd of the image and fsck of the newly installed image) were successful. Did you see correct output from dd and fsck at the end of the updatepX run? What does 'boot0cfg -v ad0' tell you (change ad0 to you flash device if different)? Manual selection of the default boot slice can be done with: # boot0cfg -v -s X ad0 where X is the desired slice (1 or 2) and ad0 is the name of your flash device. I'll see if I can do the test with 7.2pre or 7.2rc1 this weekend. Regards, Paul Schenkeveld