Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2016 20:41:00 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Karl Denninger <karl@denninger.net>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Raspberry Pi2 odd booting problem
Message-ID:  <8FAEC6B1-62A5-4A70-A305-F01001BBE004@gromit.dlib.vt.edu>
In-Reply-To: <50bcb1c1-ea4d-f53f-0595-dd7df7841f70@denninger.net>
References:  <50bcb1c1-ea4d-f53f-0595-dd7df7841f70@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 10, 2016, at 6:50 PM, Karl Denninger <karl@denninger.net> wrote:

> So I'm trying to modify an existing SD card image to do something
> different.  I imaged the card, re-wrote it onto a new card, and then
> mounted the FreeBSD partition.  All was well doing this.
>=20
> Next, I did a "newfs -U /dev/da3s2a" to clear the FreeBSD partition =
and
> then wrote a *different* build back onto it using pax.  Why do this
> rather than image the (other) card?  Because it's a hell of a lot =
faster
> and you only write part of the card instead of all of it.  This should
> work, and does on Intel-based systems without a problem.
>=20
> Butttttt.... not this time.  /dev/ufs/rootfs is not there when the
> system boots and the mount of the root filesystem fails.  If I plug a
> keyboard and monitor in and hit "?" I can see the partition and if I
> specify THAT as "ufs:partitionmame" the system comes up.
>=20
> So what's going on here?  All I did to the existing format on the card
> was run a newfs on the UFS partition and then replace the files, which
> really isn't any different than what you do when you're doing a manual
> install on an Intel box, and suddenly what I get is non-functional --
> some part of the kernel's idea of how the device tree lays out for =
that
> SD card (with the ufs partition under /dev/ufs) disappeared on me.
>=20
> Any ideas how this got boogered up?  I can fix it of course but I'd
> prefer not to wait the hour for the SD card image method per-card!


It looks like you didn't label the UFS file system when you made it.  =
Instead of "newfs -U /dev/da3s2a" you should have used "newfs -U -L =
rootfs /dev/da3s2a".

You should be able to fix it easily by doing "tunefs -L rootfs /dev/..." =
on the SD card.

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8FAEC6B1-62A5-4A70-A305-F01001BBE004>