[ TOP | Recently ]

2009-09-11 STR9105その1

忘れてた所は、evbarm/star/star_start.S の中でSTR9100デバイス用のL2テーブルの登録個所くらいだったので、STR9100用のエントリも登録。
star_start.S で登録する MMU のテーブルは仮のものでちゃんとした L2 table は evbarm/star/star_machdep.c の中で登録されるので適当で問題なし。

CPU Clockがめちゃくちゃだな。I/Oレジスタ間違えたか。

NetBSD/evbarm STR8100/9100
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.16 (STR91xx) #37: Fri Sep 11 02:16:53 JST 2009
total memory = 32768 KB
avail memory = 28164 KB
mainbus0 (root)
cpu0 at mainbus0: FA526 rev 1 (ARMv4 core)
cpu0: DC enabled IC enabled WB enabled LABT
cpu0: 16KB/16B 2-way Instruction cache
cpu0: 16KB/16B 2-way write-back-locking-B Data cache
star0 at mainbus0: Star Orion Family SoC: STR9100, 1775MHz
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: 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: GPIO
gpio0 at stargpio0: 32 pins
uhub0 at usb0: Star OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: Star EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
boot device: <unknown>

uvm_fault(0xc0306084, 0, 1) -> e
Fatal kernel mode data abort: 'Translation Fault (S)'
trapframe: 0xc0338db8
FSR=00000005, FAR=00000000, spsr=60000053
r0 =00000000, r1 =00000000, r2 =c0309ad0, r3 =ffffffff
r4 =c025af28, r5 =00000000, r6 =00000000, r7 =c02d6ac0
r8 =00000000, r9 =c0309ac0, r10=c02615f8, r11=c0338f9c
r12=00000000, ssp=c0338e04, slr=c00bdbe8, pc =c0133758

Stopped in pid 0.1 (system) at  netbsd:device_class:    ldr     r0, [r0]
db> bt
        scp=0xc00bd3c4 rlv=0xc0079854 (netbsd:main+0x274)
        rsp=0xc0338fa0 rfp=0xc0338fec
        r10=0xc02615f8 r9=0xc0309ac0
        r8=0xc030364c r7=0x00000000 r6=0xc0303648 r5=0x00000000
        scp=0xc00795f0 rlv=0xc0008228 (netbsd:kernel_text+0x3c)
        rsp=0xc0338ff0 rfp=0xc0338ffc
        r10=0x00000001 r9=0x000368b8
        r8=0x00000000 r7=0x000368b8 r6=0x0003661c r5=0x00000002
        scp=0xc0008228 rlv=0xc0130314 (netbsd:initarm+0x7cc)
        rsp=0xc0339000 rfp=0x00000000