From owner-freebsd-arm@FreeBSD.ORG Fri Nov 30 08:58:00 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 80DD6D11 for ; Fri, 30 Nov 2012 08:58:00 +0000 (UTC) (envelope-from mats@exmandato.se) Received: from ext.mellstrand.net (ext.mellstrand.net [IPv6:2001:2040:4:2::51]) by mx1.freebsd.org (Postfix) with ESMTP id C6BDC8FC13 for ; Fri, 30 Nov 2012 08:57:59 +0000 (UTC) Received: by ext.mellstrand.net Fri, 30 Nov 2012 08:57:56 GMT Subject: Re: FreeBSD on Raspberry Pi 512MB (with U-Boot + ubldr) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Mats Mellstrand X-Priority: 3 In-Reply-To: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> Date: Fri, 30 Nov 2012 09:57:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> To: Daisuke Aoyama 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: Fri, 30 Nov 2012 08:58:00 -0000 Hi I followed your instructions, but no success The log follows: U-Boot 2013.01-rc1-g40dadfb-dirty (Nov 29 2012 - 23:07:48) DRAM: 496 MiB WARNING: Caches not enabled MMC: bcm2835_sdhci: 0 Using default environment In: serial Out: lcd Err: lcd mbox: Timeout waiting for response bcm2835: Could not set USB power state Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0=20 (Re)start USB... USB0: Core Release: 2.80a scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found reading rpi_b.dtb 11446 bytes read in 19395 ms (0 Bytes/s) reading ubldr 242846 bytes read in 55043 ms (3.9 KiB/s) ## Starting application at 0x00100054 ... Consoles: U-Boot console =20 Compatible API signature found @1eb6a2a8 Number of U-Boot devices: 2 FreeBSD/arm U-Boot loader, Revision 1.2 (aoyama@fbs.local, Fri Nov 30 01:09:44 JST 2012) DRAM: 496MB Device: disk Loading /boot/defaults/loader.conf=20 /boot/kernel/kernel data=3D0x306138+0x1ed04 = syms=3D[0x4+0x723a0+0x4+0x57cd5] / Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Kernel entry at 0x4000c0... Kernel args: (null) 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 =3D 520093696 (496 MB) avail memory =3D 502611968 (479 MB) random device not loaded; using insecure entropy simplebus0: mem 0xf2000000-0xf2ffffff = on fdtbus0 intc0: mem 0xf200b200-0xf200b3ff on = simplebus0 systimer0: mem 0xf2003000-0xf2003fff irq = 8,9,10,11 on simplebus0 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 simplebus0 mmc0: on sdhci_bcm0 mbox0: mem 0xf200b880-0xf200b8bf irq 1 on = simplebus0 mbox0: [GIANT-LOCKED] bcmwd0: mem 0xf210001c-0xf2100027 on simplebus0 gpio0: mem 0xf2200000-0xf22000af irq = 57,59,58,60 on simplebus0 gpio0: read-only pins: 46,47,48,49,50,51,52,53. gpio0: reserved pins: 48,49,50,51,52,53. gpioc0: on gpio0 gpiobus0: on gpio0 uart0: mem 0xf2201000-0xf2201fff irq 65 on = simplebus0 uart0: console (115200,n,8,1) dwcotg0: mem = 0xf2980000-0xf299ffff irq 17 on simplebus0 usbus0 on dwcotg0 Timecounters tick every 10.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 14GB at mmc0 = 25.0MHz/4bit/65535-block mmcsd0: Error indicated: 2 Bad CRC mmcsd0: Error indicated: 2 Bad CRC Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 uhub1: = on usbus0 uhub1: MTT enabled uhub1: 3 ports with 2 removable, self powered Root mount waiting for: usbus0 ugen0.3: at usbus0 smsc0: on usbus0 Trying to mount root from ufs:/dev/mmcsd0s2a [rw]... mountroot: waiting for device /dev/mmcsd0s2a ... smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:40:66:92 Mounting from ufs:/dev/mmcsd0s2a failed with error 19. Trying to mount root from ufs:/dev/mmcsd0s2a []... mountroot: waiting for device /dev/mmcsd0s2a ... Mounting from ufs:/dev/mmcsd0s2a failed with error 19. Loader variables: vfs.root.mountfrom=3Dufs:/dev/mmcsd0s2a vfs.root.mountfrom.options=3Drw Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/acd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot>=20 /mm On 29 nov 2012, at 21:04, Daisuke Aoyama wrote: > Hello, >=20 > The recent change about "fdt addr" is very interesting. >=20 > So, I'm building with FreeBSD 10-current(svn 243675 + = fdt-memreserve.diff). > It needs some little modification to U-Boot. >=20 > My first impression is "The time is not stable". > However, it works on Raspberry Pi w/512MB! Thank you for porting. >=20 > You can download my test binary from: >=20 > http://www.peach.ne.jp/archives/rpi/freebsd-pi-20121130.img.gz >=20 > 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). >=20 > Note: first time, it takes about 2 minutes due to generate the SSH = keys. >=20 > BTW, SDHCI is not yet stable? >=20 >=20 > Pre configured for: >=20 > 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 >=20 > User: pi > Password: raspberry > Password(root): raspberry >=20 >=20 > Layout of SD: >=20 > % 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 > =3D> 63 7744449 mmcsd0 MBR (3.7G) > 63 65520 1 !12 [active] (32M) > 65583 7604163 2 freebsd (3.6G) > 7669746 74766 - free - (36M) >=20 > =3D> 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) >=20 > Head of the log: >=20 > 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 =3D 520093696 (496 MB) > avail memory =3D 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 >=20 >=20 > Referrences: > = http://lists.freebsd.org/pipermail/freebsd-arm/2012-November/004263.html > http://kernelnomicon.org/?p=3D164 > = http://raspberrypi.stackexchange.com/questions/3288/freebsd-easiest-way-to= -install-on-my-rpi > http://metanest.jp/sysprogharawata/raspi/raspi.html >=20 > --=20 > Daisuke Aoyama >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"