Raspberry Pi type B

投稿日:

マイクロサーバー的なものを作って遊ぼうと思っていろいろ調べていたら Raspberry Pi type B (Ether付) が良さそうなので買ってみた.

DebianベースのLinuxを入れるのが一般的のようだけど,何となくNetBSDを入れてみることにした.

とりあえずここにあった 2013-07-30-netbsd-raspi.img をSDカードに書き込んでブート.

最初はUSB-UARTが手元になかったので,HDMIコネクタをプラズマテレビにつないで起動.37インチの画面にブートログがたらたら流れ始めた.さすがに,USBキーボードをつないだりというのは鬱陶しいので,組み立てていなかったUSB-UARTボードにピンを立ててRaspberry Piに立っているピンヘッダーのUART端子とつないでブート.

回路図はここ(PDF)を参考に.2列のピンヘッダー(P1)の6番がGND,8番がTXD0,10番がRXD0なので,それぞれUSB-UARTアダプタのGND,RXD,TXDに接続.ボーレートは115200 bpsに設定.

でこんな感じに表示される.

20130831_NetBSD_RPI_BOOT

dmesgはこんな感じ.エラーがパラパラでているけど,何とか動作している(?)

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.99.23 (RPI) #11: Tue Jul 23 09:09:33 JST 2013
        jun@amivb.soum.co.jp:/usr/obj/evbarm.evbarm/sys/arch/evbarm/compile/RPI
total memory = 448 MB
avail memory = 434 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: 700 MHz ARM1176JZ-S r0p7 (ARM11J V6ZK core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: isar: [0]=0x140011 [1]=0x12002111 [2]=0x11231121 [3]=0x1102131, [4]=0x1141, [5]=0
cpu0: mmfr: [0]=0x1130003 [1]=0x10030302 [2]=0x1222100 [3]=0
cpu0: pfr: [0]=0x111 [1]=0x11
cpu0: 16KB/32B 4-way L1 Instruction cache
cpu0: 16KB/32B 4-way write-back-locking-C L1 Data cache
vfp0 at cpu0: VFP11
obio0 at mainbus0
bcmicu0 at obio0
bcmmbox0 at obio0: VC mailbox
vcmbox0 at bcmmbox0
bcmtmr0 at obio0 intr 3: VC System Timer
vchiq0 at obio0 intr 66: BCM2835 VCHIQ
bcmpm0 at obio0: Power management, Reset and Watchdog controller
bcmrng0 at obio0: RNG
plcom0 at obio0 intr 57
plcom0: txfifo disabled
plcom0: console
genfb0 at obio0
genfb0: framebuffer at 0x1c006000, size 1280x720, depth 32, stride 5120
wsdisplay0 at genfb0 kbdmux 1
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 0-3 added (default, vt100 emulation)
sdhc0 at obio0 intr 62: SDHC controller
sdhc0: interrupting on intr 62
sdhc0: SD Host Specification 3.0, rev.153
sdmmc0 at sdhc0 slot 0
dotg0 at obio0 intr 9: USB controller
bcmspi0 at obio0 intr 54: SPI
spi0 at bcmspi0: SPI bus
bsciic0 at obio0 intr 53: BSC0
iic0 at bsciic0: I2C bus
bsciic1 at obio0 intr 53: BSC1
iic1 at bsciic1: I2C bus
usb0 at dotg0: USB revision 2.0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "bcmtmr0" frequency 1000000 Hz quality 100
WARNING: module error: vfs load failed for `usbverbose', error 45
uhub0 at usb0WARNING: module error: vfs load failed for `usbverbose', error 45: vendor 0x0000 DWC OTG root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
ld0 at sdmmc0: <0x1b:0x534d:00000:0x10:0x02e878ea:0x0b8>
ld0: 3790 MB, 1925 cyl, 64 head, 63 sec, 512 bytes/sect x 7761920 sectors
ld0: 4-bit width, bus clock 50.000 MHz
bcmrng: asked for 511 bytesbcmrng: asked for 511 bytesWARNING: module error: vfs load failed for `usbverbose', error 45
WARNING: module error: vfs load failed for `usbverbose', error 45
uhub1 at uhub0 port 1WARNING: module error: vfs load failed for `usbverbose', error 45
WARNING: module error: vfs load failed for `usbverbose', error 45: vendor 0x0424 product 0x9512, class 9/0, rev 2.00/2.00, addr 2
uhub1: multiple transaction translators
uhub1: 3 ports with 2 removable, self powered
WARNING: module error: vfs load failed for `usbverbose', error 45
WARNING: module error: vfs load failed for `usbverbose', error 45
usmsc0 at uhub1 port 1
WARNING: module error: vfs load failed for `usbverbose', error 45
WARNING: module error: vfs load failed for `usbverbose', error 45
usmsc0: vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3
usmsc0:  Ethernet address b8:27:eb:02:f1:08
ukphy0 at usmsc0 phy 1WARNING: module error: vfs load failed for `miiverbose', error 45: OUI 0x00800f, model 0x000c, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
boot device: ld0
root on ld0a dumps on ld0b
mountroot: trying nfs...
mountroot: trying msdos...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
vchiq: local ver 6 (min 3), remote ver 6.
vcaudio0 at vchiq0: AUDS
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
audio0 at vcaudio0: half duplex, playback, capture, independent
init: copying out path `/sbin/init' 11
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `compat', error 78
WARNING: module error: vfs load failed for `com', error 78
WARNING: module error: vfs load failed for `com', error 78
usmsc0: link state DOWN (was UNKNOWN)
usmsc0: link state UP (was DOWN)
wsdisplay0: screen 4 added (default, vt100 emulation)

もらい物のシステムでもいいといえばいいのだけど,できれば自前でビルドしたいので,おいおい構築する予定.クロス環境を構築しないといけないだろうからちょっと手間かかりそう.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です