Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 17:19:08 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: Rasbperry Pi, what should TARGET_ARCH be?
Message-ID:  <20140125221908.GX52955@glenbarber.us>
In-Reply-To: <EEBDA9FC-ADCC-4C0E-A224-BB0DA234E717@bsdimp.com>
References:  <20140125044043.GT52955@glenbarber.us> <EEBDA9FC-ADCC-4C0E-A224-BB0DA234E717@bsdimp.com>

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

--Y48FV0AvvvAm5Iyr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 25, 2014 at 10:50:45AM -0700, Warner Losh wrote:
>=20
> On Jan 24, 2014, at 9:40 PM, Glen Barber wrote:
>=20
> > Hi,
> >=20
> > I've been working on adding support for embedded systems to the release
> > scripts, which set up a chroot to ensure a clean build environment, then
> > runs Tim's Crochet scripts.
> >=20
> > For the RPI-B, recent updates to the build scripts work fine for
> > 11.0-CURRENT and 10.0-STABLE.  However, 10.0-RELEASE images fail to
> > boot.
>=20
> If that worked, it worked by accident.
>=20
> > I showed output from 'uname -pm' out-of-band of an 11.0-CURRENT image,
> > and was suspicious that the output showed 'arm arm', not 'arm armv6'.
> > Warner had the same impression it should be 'arm armv6'.
> >=20
> > Hiren poked around the Crochet code, and saw that 'TARGET_ARCH=3Darm' is
> > set for the RaspberryPi board by default.
>=20
> This is incorrect.
>=20
> > As a "just in case" experiment, I retried the 10.0-RELEASE code
> > (release/10.0.0/) with TARGET_ARCH=3Darmv6, and sure enough, it works.
> >=20
> > But, I don't know *why*.
>=20
> It works because that's the architecture that the RPi runs.
>=20
> > Is this a change between head/ and stable/10/ versus releng/10.0/ ?
> >=20
> > I can handle a differentiation between the branches with regard to this
> > (sort of), but I want to make sure the correct TARGET_ARCH is being set
> > across the different branches, so it can be handled properly in the
> > build scripts, and usable images can be produced.
>=20
> The definition should be the same on both branches. You must use TARGET_A=
RCH=3Darmv6 on all known branches to produce working code.  You might get l=
ucky and get TARGET_ARCH=3Darm and have it work, but that's most definitely=
 not a supported configuration.
>=20
> > So, what should be used?  And where?
>=20
> For RPi, TARGET_ARCH=3Darmv6 everywhere on all branches >=3D 9. RPi isn't=
 supported 8 and lower.
>=20

Thanks Warner.

I appreciate it.

Glen


--Y48FV0AvvvAm5Iyr
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBCAAGBQJS5DhcAAoJELls3eqvi17QK9YP/0eDQiSiK+8P8kDqxWb5mtl9
FG0LSyD8YHeQVEdmXAfUeWZ0BecgMyliiYU5ObLm2Lb+sHptjYsH5O0sELFq5fbI
61FCLPyQrhZBI243zlOS0rOntYVAoc6HxzFOThX8PLx7+vNtFgv8gBXUqJ+QHixc
2n08/dRPbIEwCtiObVbhBxAY1R8p/3SonWIMxdEjMejQMIrNwANDldyNNlOXZxVp
Tzo/rM+arxQCahf6kJUcxZ3fX9s47nWOtWUOdSRGpKnVVaL8pyrHYymZIUw+TTuJ
rvqMjDY0MYFagCC52agx4wOnnm3DMfphrk2p90B7zB6lDecboZyl7JunRymhF+Da
iZ9eP7CeX4sQGdgjL3M1npDAR7Tasp8AtUP1mu170hrLl9MjuF4kot/6jy8rvlSk
2dGedKZktlo/jXRJu609v4OPO8NBQGJa1RZQtQfmNAFahgi6r3U9muaPA0IcFqvE
XmXyWsTgMa6n6HVJULDZWnwWcYcWWVVGmXMcumFZeD5OC+CA1FRzPZVYH1Ol6zaj
5gCTyhHpDzxoWJMrFvth8Zt+5inFvFJoflfkP8JLgX4qEARYnjFdaLWJUW9tuika
I9DPSPPJVe5/67vNeeI6Yz5RwU3YL0jddeBuD4NHJD8yh8gaJGtxGlTcrlXh+MeB
f9hY8TxpMW9EG3FIveie
=eLlb
-----END PGP SIGNATURE-----

--Y48FV0AvvvAm5Iyr--



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