From owner-freebsd-arm@FreeBSD.ORG Thu Nov 29 20:04:06 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 5F5DAE6A for ; Thu, 29 Nov 2012 20:04:06 +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 EE9BE8FC08 for ; Thu, 29 Nov 2012 20:04:05 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 5340839D49 for ; Fri, 30 Nov 2012 05:03:59 +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 3D33A39D46 for ; Fri, 30 Nov 2012 05:03:59 +0900 (JST) Message-ID: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> From: "Daisuke Aoyama" To: Subject: FreeBSD on Raspberry Pi 512MB (with U-Boot + ubldr) Date: Fri, 30 Nov 2012 05:04:02 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original 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: Thu, 29 Nov 2012 20:04:06 -0000 Hello, The recent change about "fdt addr" is very interesting. So, I'm building with FreeBSD 10-current(svn 243675 + fdt-memreserve.diff). It needs some little modification to U-Boot. My first impression is "The time is not stable". However, it works on Raspberry Pi w/512MB! Thank you for porting. You can download my test binary from: http://www.peach.ne.jp/archives/rpi/freebsd-pi-20121130.img.gz Download and decompress it, then write it to SD. This image requires SD 4GB or more. I'm using as headless. 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). Note: first time, it takes about 2 minutes due to generate the SSH keys. BTW, SDHCI is not yet stable? Pre configured for: MEM 496MB/GPU 16MB/SWAP 512MB I/O: serial console IP address: 192.168.1.240 Default router: 192.168.1.1 DNS: 192.168.1.1 sshd: enabled User: pi Password: raspberry Password(root): raspberry Layout of SD: % df -h Filesystem Size Used Avail Capacity Mounted on /dev/mmcsd0s2a 3.0G 230M 2.6G 8% / devfs 1.0k 1.0k 0B 100% /dev % gpart show => 63 7744449 mmcsd0 MBR (3.7G) 63 65520 1 !12 [active] (32M) 65583 7604163 2 freebsd (3.6G) 7669746 74766 - free - (36M) => 0 7604163 mmcsd0s2 BSD (3.6G) 0 465 - free - (232k) 465 6553600 1 freebsd-ufs (3.1G) 6554065 1048576 2 freebsd-swap (512M) 7602641 1522 - free - (761k) Head of the log: KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #0 r243675M: Fri Nov 30 00:40:06 JST 2012 aoyama@fbs.local:/usr/obj-rpi/arm.arm/usr/src/sys/RPI-B-test2 arm CPU: Sheeva 88SV581x rev 7 (Marvell core) Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext WB enabled LABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 520093696 (496 MB) avail memory = 502611968 (479 MB) simplebus0: mem 0xf2000000-0xf2ffffff on fdtb us0 intc0: mem 0xf200b200-0xf200b3ff on simplebus0 systimer0: mem 0xf2003000-0xf2003fff irq 8,9,10,11 on sim plebus0 Event timer "BCM2835 Event Timer 3" frequency 1000000 Hz quality 1000 Timecounter "BCM2835 Timecounter" frequency 1000000 Hz quality 1000 sdhci_bcm0: mem 0xf2300000-0xf23000ff irq 70 on Referrences: http://lists.freebsd.org/pipermail/freebsd-arm/2012-November/004263.html http://kernelnomicon.org/?p=164 http://raspberrypi.stackexchange.com/questions/3288/freebsd-easiest-way-to-install-on-my-rpi http://metanest.jp/sysprogharawata/raspi/raspi.html -- Daisuke Aoyama