[ TOP | Recently ]

2009-08-30 STR8132その9 - GPIO と watchdog


            §            §            §

STR8100のGPIOは割り込み設定とかもできるんだけど、NetBSDのgpioフレームワークはそこまで高機能ではないので未サポート。 気がむいたらddbボタンかsoft poweroffボタンくらいには割り当てられるかもしれない。


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    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 5.99.15 (STR81xx) #1419: Mon Aug 31 05:04:40 JST 2009
total memory = 32768 KB
avail memory = 28136 KB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0: FA526 rev 1 (ARMv4 core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 8KB/16B 2-way Instruction cache
cpu0: 8KB/16B 2-way write-back-locking-B Data cache
star0 at mainbus0: Star Equuleus Family SoC: STR8100, 250MHz
starclk0 at star0 addr 0x79000000-0x79000047 irq 0: Programmable Timer
com0 at star0 addr 0x78000000-0x7800001f irq 9: ns16550a, working fifo
com0: console
ohci0 at star0 addr 0xc4000000-0xc400005b irq 23: USB1.1 Host Controller
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ehci0 at star0 addr 0xcc000000-0xcc00006b irq 24: USB2.0 Host Controller
ehci0: EHCI version 1.0
ehci0: wrong number of companions (1 != 0)
ehci0: ohci or uhci probably not configured
usb1 at ehci0: USB revision 2.0
starrtc0 at star0 addr 0x7b000000-0x7b000037 irq 14: Real-time Clock
starwdog0 at star0 addr 0x7a000000-0x7a00001b irq 3: Watch Dog Timer
stargpio0 at star0 addr 0x7c000000-0x7c000047 irq 4: GPIOA
gpio0 at stargpio0: 32 pins
stargpio1 at star0 addr 0x7c800000-0x7c800047 irq 4: GPIOB
gpio1 at stargpio1: 32 pins
starspi0 at star0 addr 0x71000040-0x7100005f irq 26: Serial Peripheral Interface
spi0 at starspi0: SPI bus
m25p0 at spi0 slave 0: unknown or unsupported device
startwi0 at star0 addr 0x71000020-0x7100003f irq 27: Two-Wire Serial Interface
iic0 at startwi0: I2C bus
gec0 at star0 addr 0x70000000-0x70000133 irq 18: Gigabit Ethernet Controller
gec0: Ethernet address 00:aa:bb:cc:dd:10
ukphy0 at gec0 phy 0: OUI 0x000e4e, model 0x0025, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "starclk" frequency 62500000 Hz quality 100
uhub0 at usb0: Star OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: Star EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0: strange port
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Dell Dell USB Optical Mouse, rev 2.00/43.01, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 (mux ignored)
umass0 at uhub1 port 2 configuration 1 interface 0: silicon -power, rev 2.00/1.10, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <silicon, -power, 0.00> disk removable
sd0: 1911 MB, 7644 cyl, 16 head, 32 sec, 512 bytes/sect x 3913728 sectors
boot device: <unknown>
root on gec0
nfs_boot: trying static
nfs_boot: client_addr=
nfs_boot: gateway=
nfs_boot: netmask=
nfs_boot: server=
nfs_boot: root=
root on
WARNING: preposterous TOD clock time
WARNING: using filesystem time
WARNING: negative runtime; monotonic clock has gone backwards
star# uname -a
NetBSD star 5.99.15 NetBSD 5.99.15 (STR81xx) #1419: Mon Aug 31 05:04:40 JST 2009  ryo@falsie:/src/cvs/NetBSD/sys/arch/evbarm/compile/STR81xx evbarm

USBメモリが普通に使えたので、EHCIも問題ないっぽい。他のUSBデバイスも使えると思われ。wrong number of companions とか strange port とか何か変なメッセージ出てるけど。

WARNING: negative runtime; monotonic clock has gone backwards だけひっかかる。
ps の出力が微妙に変なのはこのせいかなぁ。timerまわりが不完全?