Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 12:45:27 +0400
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        Justin Hibbits <jrh29@alumni.cwru.edu>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Booting an alternate kernel
Message-ID:  <20180109084525.GA1818@kloomba>
In-Reply-To: <CAHSQbTAyRSd4uQgV_kMP8AiLYqFMLp%2BYCrBnPPq83vPRTC%2B=Cw@mail.gmail.com>
References:  <20180108181749.GA3689@kloomba> <CAHSQbTAyRSd4uQgV_kMP8AiLYqFMLp%2BYCrBnPPq83vPRTC%2B=Cw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Justin Hibbits wrote:

> Hi Roman,
>=20
> Not a direct answer to your question, but more addressing what your
> real problem might be.
> Are you booting powerpc or powerpc64?  Powerpc (32-bit) got updated to
> 64-bit time_t, which requires everything new.  Easiest way to update
> that is a fresh install (See UPDATING note 20170625).
>=20
> - Justin

Thanks for the pointer, I'm booting powerpc indeed.

> On Mon, Jan 8, 2018 at 12:17 PM, Roman Bogorodskiy <novel@freebsd.org> wr=
ote:
> > Hi,
> >
> > Recently I upgraded FreeBSD -CURRENT as of mid-2016 to a fresh one (Jan
> > 6-7 -CURRENT). Of course I didn't read UPDATING and missed 20171125
> > entry so it failed to find root. However, when I manually set root to
> > 'ufs:/dev/ada0s3', it failed to boot because init segfaulted (I did
> > installkernel but not installworld).
> >
> > I decided to boot kernel.old. There's a note here:
> >
> > https://www.freebsd.org/platforms/ppc.html#issues
> >
> > that tells how to boot a custom kernel, e.g. doing
> >
> > 0 > boot hd:loader hd:0
> >
> > It doesn't work for me.
> >
> > I figured out that I can proceed to normal boot from the OpenFirmware
> > shell using
> >
> > 0 > boot hd:\ppc\boot1.elf
> >
> > But I don't quite understand how to specify invalid partition?
> >
> > I tried things like "boot hd:\ppc\boot1.elf hd:4" but it appears to
> > treat "hd:4" as a loader.
> >
> > As far as I understand, boot1.elf source code is:
> >
> > https://github.com/freebsd/freebsd/blob/master/stand/powerpc/boot1.chrp=
/boot1.c
> >
> > From what I can see:
> >
> > https://github.com/freebsd/freebsd/blob/master/stand/powerpc/boot1.chrp=
/boot1.c#L414
> >
> > it only allows to define 'path' which is PATH_LOADER "/boot/loader" by
> > default; and bootpath is set from /chosen bootpath property.
> >
> > Would appreciate if somebody could help with the follow:
> >
> >  * How do I force invalid 'bootpath' so it drops into loader without
> >    loading kernel (or other ways to load kernel.old)?
> >  * Hints how to debug init segfault issue
> >
> > Thanks,
> >
> > Roman Bogorodskiy

Roman Bogorodskiy

--fUYQa+Pmc3FrFX/N
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJaVIElAAoJEMltX/4IwiJqUHUH/j/vLPE9oMxMVr39sc6KddIv
RUoGEM5at9U+eJP4ix5dV1g0ILLL9Pibk1s1XfF0h6ScTOdzx7x8F5y8bmPMHSgi
2GDf5wNFizPfuAl5uoHbKX293s3KaCREQqQUSaeeqX86cVSaebhoBEFg5cy45n2k
JUMFoyAay53Up3sFJ8fXE8E13ekxR1Gy4wvl0OASijlG6uSBTDp2FL4783OO4AXF
6+9gVx0hgueQZ9yIUye1EPyfIhRfGovKEtsYOh6Z72th7TTqcKKGO5b8tQ/W5Dqt
zGYmujihibV9nfKc33H3JVRHZ2E5gt8ASLlEGHWTVgKgvvh24LM4owe7hJmoIAc=
=NsRZ
-----END PGP SIGNATURE-----

--fUYQa+Pmc3FrFX/N--



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