Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2010 13:03:28 +0200
From:      Maciej Milewski <milu@dat.pl>
To:        freebsd-embedded@freebsd.org
Cc:        phk@freebsd.org
Subject:   Re: NanoBSD (8.1-STABLE): can not boot with boot0sio & can not change boot0cfg / active partition
Message-ID:  <201009291303.29082.milu@dat.pl>
In-Reply-To: <642536497.20100929133254@serebryakov.spb.ru>
References:  <642536497.20100929133254@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Dnia =B6roda 29 wrzesie=F1 2010 o 11:32:54 Lev Serebryakov napisa=B3(a):
> Hello, Freebsd-embedded.
>=20
>   I have two problems with NanoBSD built from 8.1-STABLE sources
>=20
>   (1)    I    have  serial console configured for speed 115200. I have
>   "BOOT_COMCONSOLE_SPEED=3D115200"  setting,  but  boot0sio hangs. "mbr"
>   works  fine,  but  "boot0cfg"  can  not change booting slice in this
>   case.
>=20
>   (2)  When  I  try  to use fdisk to change booting slice ("fdisk -1 -a
>   ad0")  it  complains after all questions (why, oh, why fdisk doesn't
>   have "not ask anything" mode WITHOUT config file?!):
>=20
> Should we write new partition table? [n] y
> fdisk: Class not found
> fdisk: Failed to write sector zero
> hostname#
>=20
>   boot0cfg can not install boot0sio too:
>=20
> hostname# boot0cfg -B -b /boot/boot0sio ad0
> boot0cfg: write_mbr: /dev/ad0: Operation not permitted
> hostname#
>=20
>  So,  I  can  not  upgrade  NanoBSD  in-place,  because I can not swap
>  bootable partition :(
It has been changed in head[1] but not MFC to any RELENG.
phk, can you fix this in the RELENG_8?

The working solution is to use gpart as a replacement for boot0cfg:
gpart set -a active -i 1 ${NANO_DRIVE}

1.http://svn.freebsd.org/viewvc/base/head/tools/tools/nanobsd/Files/root/up=
datep1?view=3Dlog

Regards,
Maciej Milewski



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