Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 12:48:49 +0200
From:      Paul Schenkeveld <fb-embedded@psconsult.nl>
To:        freebsd-embedded@freebsd.org
Subject:   Re: nanobsd boot slice selection does not work
Message-ID:  <20090417104848.GA919@psconsult.nl>
In-Reply-To: <635bff4620629cdcaa016cca98d50389@mteege.de>
References:  <635bff4620629cdcaa016cca98d50389@mteege.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090417104848.GA919>