From owner-freebsd-arm@FreeBSD.ORG Sat Jan 25 17:50:53 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14F38AB3 for ; Sat, 25 Jan 2014 17:50:53 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D295513BB for ; Sat, 25 Jan 2014 17:50:52 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id lx4so4253637iec.27 for ; Sat, 25 Jan 2014 09:50:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=FwIddvpqIjYudh5iDzDGgwyYVQRNn+LL6gYZTf+fcz8=; b=cSmdUTcwaNGs39ZKLiVMX12TyCFnawpNenYE1Vr7Qq6jkQWSA9mb2QhdU71cM+vrEj xDX6AES/xLzmnN0YkJ6HqgtjUXSkL/F1qZWnVk0KkGlDy55B80AomCGze1Mfy0ql0si1 8knSrDdjY0GvVz6tASyKQjzM/1iPMxLL7k36OTBltmIA1S1LNZVQr/ZvR45WFg6Wo124 D2X3J7Hyipq/3TTB/o3PoJm7lgWdaYhUEyrN7bEWn8WHJJFAlTHbYadbxtBjLDlRSwYX oxK4JPxYUU25edCs9LS53g9PteJmCZH/Qa89P13V44zi9YETBEaHD7aBJCvqOIF8hlyl cXnw== X-Gm-Message-State: ALoCoQkFjvzOqstFlkBz/8Wy0w9Xg4n34ktBBFBP9mrywn7riN2JVdBp7aJsBojSUuWIyFHUwb1w X-Received: by 10.50.122.38 with SMTP id lp6mr2054375igb.30.1390672245858; Sat, 25 Jan 2014 09:50:45 -0800 (PST) Received: from fusion-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id u1sm23653834ige.1.2014.01.25.09.50.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jan 2014 09:50:45 -0800 (PST) Sender: Warner Losh Subject: Re: Rasbperry Pi, what should TARGET_ARCH be? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20140125044043.GT52955@glenbarber.us> Date: Sat, 25 Jan 2014 10:50:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140125044043.GT52955@glenbarber.us> To: Glen Barber X-Mailer: Apple Mail (2.1085) Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 17:50:53 -0000 On Jan 24, 2014, at 9:40 PM, Glen Barber wrote: > 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. If that worked, it worked by accident. > 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. This is incorrect. > 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*. It works because that's the architecture that the RPi runs. > 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. The definition should be the same on both branches. You must use = TARGET_ARCH=3Darmv6 on all known branches to produce working code. You = might get lucky and get TARGET_ARCH=3Darm and have it work, but that's = most definitely not a supported configuration. > So, what should be used? And where? For RPi, TARGET_ARCH=3Darmv6 everywhere on all branches >=3D 9. RPi = isn't supported 8 and lower. Warner > Thanks for any input, >=20 > Glen >=20