From owner-freebsd-arm@FreeBSD.ORG Fri Nov 30 01:37:58 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 4049B483 for ; Fri, 30 Nov 2012 01:37:58 +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 C56828FC08 for ; Fri, 30 Nov 2012 01:37:57 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id qAU1bpsm062125 for ; Thu, 29 Nov 2012 20:37:56 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <50B80DEF.4050201@m5p.com> Date: Thu, 29 Nov 2012 20:37:51 -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 on Raspberry Pi 512MB (with U-Boot + ubldr) References: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> In-Reply-To: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> 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]); Thu, 29 Nov 2012 20:37:56 -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: Fri, 30 Nov 2012 01:37:58 -0000 On 11/29/12 15:04, Daisuke Aoyama wrote: > 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 > I'm a newcomer to the Raspberry Pi, but I've been running FreeBSD for over fifteen years. Since I don't have a Pi yet, I am trying to emulate one with qemu. Here is the command line I'm currently trying: qemu-system-arm -cpu arm1136-r2 -m 256 -M versatilepb -serial stdio -hda freebsd-pi-20121130.img.gz It tells me "Kernel image must be specified". How can I get a kernel image to satisfy this request? Many thanks to the people performing this work, and also the beagleboard and beaglebone work! I hope to live long enough to see the day these platforms are promoted to tier 1 status in FreeBSD! -- George Mitchell