From owner-freebsd-arm@freebsd.org Mon Jun 12 17:43:24 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40C3CC091F9 for ; Mon, 12 Jun 2017 17:43:24 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-174.reflexion.net [208.70.211.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E700477CCD for ; Mon, 12 Jun 2017 17:43:23 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 31551 invoked from network); 12 Jun 2017 17:36:42 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 12 Jun 2017 17:36:42 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Mon, 12 Jun 2017 13:36:42 -0400 (EDT) Received: (qmail 18969 invoked from network); 12 Jun 2017 17:36:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 12 Jun 2017 17:36:42 -0000 Received: from [192.168.1.114] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 6993BEC9296; Mon, 12 Jun 2017 10:36:41 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Creating armv7 MACHINE_ARCH From: Mark Millard In-Reply-To: Date: Mon, 12 Jun 2017 10:36:40 -0700 Cc: Russell Haley , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170612152808.6094931.74364.27128@gmail.com> To: Warner Losh X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 17:43:24 -0000 On 2017-Jun-12, at 8:39 AM, Warner Losh wrote: > . . . >=20 > Plus, we aren't quite doing what Ian wanted. He wanted a full rename. = The > proposal on the able is to add an armv7 TARGET_ARCH in 12. Not to = rename or > remove armv6. Sadly, that will still be there since the RPI foundation > keeps finding new ways to repackage the rpi into new boards that are = just > too cheap to ignore. On 2017-Jun-12, at 6:59 AM, Andrew Turner wrote: > I like this. My understanding is adding armv7 would also fix many of = the currently broken ports that assume they are being built for armv7 as = many Linux distros target ARMv7+. >=20 > It should also be noted the GENERIC kernel is likely to only ever = target ARMv7+ even without an armv7 TARGET_ARCH. Hopefully the choices related to TARGET and TARGET_ARCH for armv7 end up identifying the context to port builds so that many would just automatically do the right thing. As for GENERIC: powerpc has. . . TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc and GENERIC TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc64 and GENERIC64 So there is precedent for more than one GENERIC* for a family, with which one being appropriate being based on TARGET_ARCH. For powerpc TARGET=3Dpowerpc implicitly uses TARGET_ARCH=3Dpowerpc when TARGET_ARCH is not specified (if I remember right). Which should be the default for armv6 vs. armv7 might go the other direction (TARGET_ARCH=3Darmv7 by default). Side note: A caution about talking about "rpi2" as an example. . . Raspberry Pi 2 Model B V1.2 is Cortex-A53 based (so arm64/aarch64). (A BCM2837, not a BCM2836.) This dates about to something like 2014 based on the pictures showing the (c) notice on the boards. V1.1 and before were armv7 (BCM2836) based. Unless a kernel and world are made that can also configure/handle a Cortex-A53 in a armv7-like manor there will be two different GENERIC builds in order to span the "rpi2" family, based on just V1.2+ vs. V1.1 and before. (A single, modern distribution of the official Raspbian software for the rpi2 does support all the V1.x boards if I understand right.) =3D=3D=3D Mark Millard markmi at dsl-only.net