FreeBSD on Raspberry Pi 512MB (with U-Boot + ubldr)
Mats Mellstrand
mats at exmandato.se
Fri Nov 30 08:58:00 UTC 2012
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
(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
Compatible API signature found @1eb6a2a8
Number of U-Boot devices: 2
FreeBSD/arm U-Boot loader, Revision 1.2
(aoyama at fbs.local, Fri Nov 30 01:09:44 JST 2012)
DRAM: 496MB
Device: disk
Loading /boot/defaults/loader.conf
/boot/kernel/kernel data=0x306138+0x1ed04 syms=[0x4+0x723a0+0x4+0x57cd5]
/
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
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 at 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)
random device not loaded; using insecure entropy
simplebus0: <Flattened device tree simple bus> mem 0xf2000000-0xf2ffffff on fdtbus0
intc0: <BCM2835 Interrupt Controller> mem 0xf200b200-0xf200b3ff on simplebus0
systimer0: <BCM2835 System Timer> 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: <Broadcom 2708 SDHCI controller> mem 0xf2300000-0xf23000ff irq 70 on simplebus0
mmc0: <MMC/SD bus> on sdhci_bcm0
mbox0: <BCM2835 VideoCore Mailbox> mem 0xf200b880-0xf200b8bf irq 1 on simplebus0
mbox0: [GIANT-LOCKED]
bcmwd0: <BCM2708/2835 Watchdog> mem 0xf210001c-0xf2100027 on simplebus0
gpio0: <BCM2708/2835 GPIO controller> 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: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
uart0: <PrimeCell UART (PL011)> mem 0xf2201000-0xf2201fff irq 65 on simplebus0
uart0: console (115200,n,8,1)
dwcotg0: <DWC OTG 2.0 integrated USB controller> 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: <DWCOTG> at usbus0
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 14GB <SDHC SD16G 8.0 SN 53686086 MFG 08/2012 by 3 SD> 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: <vendor 0x0424> at usbus0
uhub1: <vendor 0x0424 product 0x9512, class 9/0, rev 2.00/2.00, addr 2> on usbus0
uhub1: MTT enabled
uhub1: 3 ports with 2 removable, self powered
Root mount waiting for: usbus0
ugen0.3: <vendor 0x0424> at usbus0
smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0
Trying to mount root from ufs:/dev/mmcsd0s2a [rw]...
mountroot: waiting for device /dev/mmcsd0s2a ...
smsc0: chip 0xec00, rev. 0002
miibus0: <MII bus> on smsc0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ue0: <USB Ethernet> 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=ufs:/dev/mmcsd0s2a
vfs.root.mountfrom.options=rw
Manual root filesystem specification:
<fstype>:<device> [options]
Mount <device> using filesystem <fstype>
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)
<empty line> Abort manual input
mountroot>
/mm
On 29 nov 2012, at 21:04, Daisuke Aoyama <aoyama at peach.ne.jp> 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 at 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: <Flattened device tree simple bus> mem 0xf2000000-0xf2ffffff on fdtb
> us0
> intc0: <BCM2835 Interrupt Controller> mem 0xf200b200-0xf200b3ff on simplebus0
> systimer0: <BCM2835 System Timer> 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: <Broadcom 2708 SDHCI controller> 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
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
More information about the freebsd-arm
mailing list