From owner-freebsd-arm@FreeBSD.ORG Tue Dec 25 00:44:30 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 33EA7430 for ; Tue, 25 Dec 2012 00:44:30 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id BC39C8FC15 for ; Tue, 25 Dec 2012 00:44:29 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 79DC239FA3 for ; Tue, 25 Dec 2012 09:35:07 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 6593639D5E for ; Tue, 25 Dec 2012 09:35:07 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: References: In-Reply-To: Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Date: Tue, 25 Dec 2012 09:34:51 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP 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 00:44:30 -0000 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/ For more, please read this: http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004331.html tested /etc/make.conf: ---------------------------------------------------------------------- WITHOUT_X11=yes WITH_CLANG=yes WITH_CLANG_IS_CC=yes # For clang NO_WERROR= WERROR= CFLAGS=-O2 -fno-strict-aliasing -pipe -march=armv6z -mtune=arm1176jzf-s -mfloat-abi=soft COPTFLAGS=-O1 -fno-strict-aliasing -pipe -march=armv6z -mtune=arm1176jzf-s -mfloat-abi=soft ---------------------------------------------------------------------- How to build the kernel in RPI: # fetch -o /usr http://www.peach.ne.jp/archives/rpi/patch/src-244663-20121225.patch.gz # fetch -o /usr/src/sys/arm/conf http://www.peach.ne.jp/archives/rpi/config/RPI-B-test9 # cd /usr/src # gzcat /usr/src-244663-20121225.patch.gz | patch # make buildkernel KERNCONF=RPI-B-test9 (wait about 60 minutes :) If you want re-compile, you can try to use like this: # make buildkernel KERNCONF=RPI-B-test9 -DNO_CLEAN -DNO_CLEANDIR ---------------------------------------------------------------------- Enjoy clang world in Raspberry Pi! Thank you. -- Daisuke Aoyama