From owner-freebsd-arm@freebsd.org Thu Jun 15 12:51:11 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 B8E5ED8A00E for ; Thu, 15 Jun 2017 12:51:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EAAB748D6 for ; Thu, 15 Jun 2017 12:51:10 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id bb2c9466; Thu, 15 Jun 2017 14:51:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=Q4A5NC/fNThmIjdtupVI4E/uQxI=; b=Ol0jHyNThb9hgY5SGBdayWWMJ8n/ RDRbXYND2i+Qdne1QWVEwS8MImCcxjVc4h1MpBvMgE9VfhdhE5i0PgoJ0xzpJfXU /fnp8Lxn2rdche9WMe8BqMx5qel6r9UWMJBaauVBOKC3hFuRuLWKoKimBrlC7bYe dzosTfUctpYkT9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=LHCZKR8kTLn0yoc1Ybupj76nKSv2AI5ok4o9mJOCaQfVAUW9D9lJetnd vh1UfaKd3kMAJsg93bi27nWRGbeiFBaDrU9W6mmWQ3JtU+cUswyJYetLiJGAJwOz yu0WKVv5/1SxKbNRusTi8lClS08fzHo4An3QpI7HWgXxNYlGCwI= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id f8bb9981 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 15 Jun 2017 14:51:07 +0200 (CEST) Date: Thu, 15 Jun 2017 14:51:07 +0200 From: Emmanuel Vadot To: Mark Millard Cc: Warner Losh , "freebsd-arm@freebsd.org" Subject: Re: Next up on creating armv7 MACHINE_ARCH: pre FCP stage Message-Id: <20170615145107.97e6460fbb6222b258bfd614@bidouilliste.com> In-Reply-To: <6EC26472-CE31-4B14-A049-3F153E590647@dsl-only.net> References: <6EC26472-CE31-4B14-A049-3F153E590647@dsl-only.net> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 15 Jun 2017 12:51:11 -0000 On Thu, 15 Jun 2017 02:08:10 -0700 Mark Millard wrote: > On 2017-Jun-14, at 11:20 PM, Mark Millard wrote: > > > On 2017-Jun-14, at 10:22 PM, Warner Losh wrote: > > > >> . . . > >> Comments? > > > > I booted Ubuntu Mate on a BPI-M3 and tried: > > > > $ uname -p > > armv7l > > > > $ uname -ap > > Linux bpi-iot-ros-ai 3.4.39-BPI-M3-Kernel #1 SMP PREEMPT Tue May 3 13:47:01 UTC 2016 armv7l armv7l armv7l GNU/Linux > > > > I was actually thinking that a "hf" might > > show up in how they name things if it was > > a hard float based build. But looking I > > see in /lib/ : > > > > . . . > > drwxr-xr-x 3 root root 16384 Nov 4 2016 arm-linux-gnueabihf > > . . . > > lrwxrwxrwx 1 root root 30 Oct 14 2016 ld-linux-armhf.so.3 -> arm-linux-gnueabihf/ld-2.23.so > > lrwxrwxrwx 1 root root 24 Apr 21 2016 ld-linux.so.3 -> /lib/ld-linux-armhf.so.3 > > . . . > > > > and in /lib/arm-linux-gnueabihf/ : > > > > lrwxrwxrwx 1 root root 10 Oct 14 2016 /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3 -> ld-2.23.so > > > > so it appears armv7l was used for naming a > > hard float build in uname -p. > > > > Of course this does not check how uniform the > > various linux distributions are about such > > naming. > > > > Still it may mean that for linux-matching "armv7" > > might not be the right name for uname -p output. > > I tried another linux on the BPI-M3: gentoo . > > # uname -p > ARMv7 Processor rev 5 (v7l) > > (Wow. Not what I expected.) > > # uname -pa > Linux bananapi 3.4.39-BPI-M3-Kernel #1 SMP PREEMPT Tue May 3 13:47:01 UTC 2016 armv7l ARMv7 Processor rev 5 (v7l) sun8i GNU/Linux > > # uname -m > armv7l > > # uname -i > sun8i > > # ls -l /lib/ld-* > -rwxr-xr-x 1 root root 134192 Mar 26 2016 /lib/ld-2.21.so > lrwxrwxrwx 1 root root 10 Mar 26 2016 /lib/ld-linux-armhf.so.3 -> ld-2.21.so > > So again armv7l seems to be the base name used for > a hardfloat little-endian context --although it > appears that "uname -m" gives text more likely to > be used in testing for how to configure to match > the live context. "uname -p" seems far less > standardized for its results. The same for > "uname -i". > > === > Mark Millard > markmi at dsl-only.net On both your linux you are using linux-sunxi which is a fork of the Allwinner kernel "maintained" by the sunxi community (and it is old). To have the proper values of uname one should test running linux vanilla kernel. -- Emmanuel Vadot