From owner-freebsd-arm@FreeBSD.ORG Tue Dec 25 20:51:26 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B1E41CF for ; Tue, 25 Dec 2012 20:51:26 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id B740F8FC0C for ; Tue, 25 Dec 2012 20:51:25 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TnbT8-0005TP-Oq; Tue, 25 Dec 2012 12:51:24 -0800 Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii From: Oleksandr Tymoshenko X-Priority: 3 In-Reply-To: Date: Tue, 25 Dec 2012 12:51:03 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Daisuke Aoyama X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2012-12-24, at 4:34 PM, Daisuke Aoyama wrote: > I've updated FreeBSD clang world for RPI based on svn r244663. > (To save working time, drop EABI patch.) > > Now clang is 3.2 final. This version includes complete source tree of r244663. > But the patch is not applied. You must apply the patch manually. > This version has been confirmed that the kernel can be compiled by self and booting from it. > > You can get the pre-build image from my archives: > > http://www.peach.ne.jp/archives/rpi/ > (At this time, freebsd-pi-clang-20121225.img.gz is the latest version.) > > Download and decompress it, then write it to SD. This image requires SD 4GB or more. > I'm using as headless server. So, you need a serial console for seeing the boot log. > If you need to change the value on it, please mount the second partition (e.g. /dev/da0s2a). > If you want the video out, please remove the line of "set console=comconsole" in /boot/loader.rc. > > Using config is here: > http://www.peach.ne.jp/archives/rpi/config/RPI-B-test9 > > Source(diff) and pacth is here: > http://www.peach.ne.jp/archives/rpi/patch/ [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 20:51:26 -0000 On 2012-12-24, at 4:34 PM, Daisuke Aoyama wrote: > I've updated FreeBSD clang world for RPI based on svn r244663. > (To save working time, drop EABI patch.) >=20 > Now clang is 3.2 final. This version includes complete source tree of = r244663. > But the patch is not applied. You must apply the patch manually. > This version has been confirmed that the kernel can be compiled by = self and booting from it. >=20 > You can get the pre-build image from my archives: >=20 > http://www.peach.ne.jp/archives/rpi/ > (At this time, freebsd-pi-clang-20121225.img.gz is the latest = version.) >=20 > Download and decompress it, then write it to SD. This image requires = SD 4GB or more. > I'm using as headless server. So, you need a serial console for seeing = the boot log. > If you need to change the value on it, please mount the second = partition (e.g. /dev/da0s2a). > If you want the video out, please remove the line of "set = console=3Dcomconsole" in /boot/loader.rc. >=20 > Using config is here: > http://www.peach.ne.jp/archives/rpi/config/RPI-B-test9 >=20 > Source(diff) and pacth is here: > http://www.peach.ne.jp/archives/rpi/patch/ Thanks! I'll integrate timer-related bits later this week, good catch!=20= spinlock_enter and spinlock_exit are intended to be used only in spinlock code and should be replaced by intr_disable/intr_restore there, = AFAIU,=20 The other bit I'm considering for merge is armv6 instruction for = managing interrupts/status. PTE sync - related part, Im not sure it's strictly required. We use WT = caches for page tables so we should be OK without implicit sync operations for them. I hope = somebody=20 more clueful can confirm/disprove this.=20 =20