From owner-freebsd-arm@FreeBSD.ORG Wed Jan 9 01:25:46 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9D23D58B for ; Wed, 9 Jan 2013 01:25:46 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) by mx1.freebsd.org (Postfix) with ESMTP id 3DF5F946 for ; Wed, 9 Jan 2013 01:25:45 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id r091PdEQ050279 for ; Tue, 8 Jan 2013 20:25:44 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <50ECC713.6000507@m5p.com> Date: Tue, 08 Jan 2013 20:25:39 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20121125 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) References: <2659960079254C38ACD2F1DCBB7A1A19@ad.peach.ne.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Tue, 08 Jan 2013 20:25:45 -0500 (EST) 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: Wed, 09 Jan 2013 01:25:46 -0000 On 01/08/13 12:11, Daisuke Aoyama wrote: > I have updated clang RPI code based on SVN r244906 + pmap-wb-caches-fix. > > Now default transfer mode is DMA. If you want to use PIO(previous method), > you can change it by following command anytime: > > # sysctl hw.bcm2835.sdhci.pio=1 > > or add to /boot/loader.rc: > > set hw.bcm2835.sdhci.pio=1 > > major change: > o fix critical bug caused panic in arm/arm/vfp.c > o fix VFP compatibility for existing world/apps using SIGILL > o add TMPFS and UNIONFS kernel config > o use tmpfs as /tmp > o merge pmap-wb-caches-fix.diff and arm-autotune-fix.diff by gonzo > o assign all DMA(DMA0-12) IRQs in bcm2835-rpi-b.dts > o increase DI_MAX_INTR_NUM to 16 (necessary for DMA IRQs) > o call rman_set_virtual if SYS_RES_MEMORY > o add transfer and transfer_end method to dev/sdhci > o add simple DMA controller (does not support linked operation) > o test implement DMA transfer for SD card I/O > o add hw.bcm2835.sdhci.pio for PIO transfer (disabled by default) > > Note: > 512 byte chunk is used for each DMA transfer of SD because eMMC have > only 1KB FIFO. > PIO mode is always used for a request smaller than 512 byte. > DMA transfer is not so fast although the efficiency of the bus differs. > At this time, first trigger is invoked by same INT of PIO. > sys/dev/sdhci/sdhci.c should be rewritten to adapt the DMA controller. > > Known Problems: > To store correct values to DMA engine, it uses D-cache invalidate all. > (unknown reason, first chunk only) > Some code using VFP hang. > > You can get the pre-build image from my archives: > > http://www.peach.ne.jp/archives/rpi/ > > Using config is here: > http://www.peach.ne.jp/archives/rpi/config/RPI-B-test13 > > New kernel only is here: > http://www.peach.ne.jp/archives/rpi/kernel/ > > Source and pacth is here: > http://www.peach.ne.jp/archives/rpi/patch/ > > > For more info, please read old ML or Japanese blog: > http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004541.html > http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html > http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004421.html > http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004331.html > http://shell.peach.ne.jp/aoyama/ > > > Enjoy clang world in Raspberry Pi! > Thank you. Wonderful! Best of all, the console has a cursor! It's sitting there building sysutils/LPRng on an NFS-mounted /usr/ports tree (though it doesn't appear it will finish before the morning). No crash so far! Thank you very much! -- George Mitchell