steletoの日記 このページをアンテナに追加 RSSフィード

2010-12-01

[][] SL-C700からこんにちは 03:11  SL-C700からこんにちはを含むブックマーク  SL-C700からこんにちはのブックマークコメント

machdep.cをPA=a0400000対応するように書き直し、ついでにconsoleの初期値を"ffuart"にして起動時に引数を与えなくてもシリアルにログを出力するように。あとはMemoryが64MiB固定で実装されていたので、CPUがPXA250の場合は32MiBにするよう修正。PXA250を検出してくれるか自信がなかったのでログも埋める。

さて実行だ。

NetBSD/zaurus booting ...
PXA250 found.
initarm: Configuring system ...
physmemory: 8192 pages at 0xa0000000 -> 0xa1ffffff
Allocating page tables
freestart = 0xa0009000, free_pages = 1014 (0x000003f6)
IRQ stack: p0xa03d0000 v0xc03d0000
ABT stack: p0xa03cf000 v0xc03cf000
UND stack: p0xa03ce000 v0xc03ce000
SVC stack: p0xa03cc000 v0xc03cc000
minidataclean: p0xa03cb000 v0xc03cb000, size = 2048
Creating L1 page table at 0xa03f8000
Mapping kernel
pmap_map_chunk: pa=0xa0200000 va=0xc0200000 size=0x237000 resid=0x237000 prot=01
SSLLLPPPPPPP
pmap_map_chunk: pa=0xa0437000 va=0xc0437000 size=0xc5000 resid=0xc5000 prot=0x31
PPPPPPPPPLLLLLLLLLLLPPPPPPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0xa03d0000 va=0xc03d0000 size=0x1000 resid=0x1000 prot=0x3 c1
panic: pmap_map_chunÿ

ををっ、NetBSDから反応ががが。

カーネルパニックしている箇所を調べたら直し忘れを発見。早速修正。PXA250の認識もうまくいっているからログを削除。

ではGo。

NetBSD/zaurus booting ...
initarm: Configuring system ...
physmemory: 8192 pages at 0xa0000000 -> 0xa1ffffff
Allocating page tables
freestart = 0xa0009000, free_pages = 1014 (0x000003f6)
IRQ stack: p0xa03d0000 v0xc03d0000
ABT stack: p0xa03cf000 v0xc03cf000
UND stack: p0xa03ce000 v0xc03ce000
SVC stack: p0xa03cc000 v0xc03cc000
minidataclean: p0xa03cb000 v0xc03cb000, size = 2048
Creating L1 page table at 0xa03f8000
Mapping kernel
pmap_map_chunk: pa=0xa0400000 va=0xc0400000 size=0x237000 resid=0x237000 prot=01
SSLLLPPPPPPP
pmap_map_chunk: pa=0xa0637000 va=0xc0637000 size=0xc5000 resid=0xc5000 prot=0x31
PPPPPPPPPLLLLLLLLLLLPPPPPPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0xa03d0000 va=0xc03d0000 size=0x1000 resid=0x1000 prot=0x3 c1
P
pmap_map_chunk: pa=0xa03cf000 va=0xc03cf000 size=0x1000 resid=0x1000 prot=0x3 c1
P
pmap_map_chunk: pa=0xa03ce000 va=0xc03ce000 size=0x1000 resid=0x1000 prot=0x3 c1
P
pmap_map_chunk: pa=0xa03cc000 va=0xc03cc000 size=0x2000 resid=0x2000 prot=0x3 c1
PP
pmap_map_chunk: pa=0xa03f8000 va=0xc03f8000 size=0x4000 resid=0x4000 prot=0x3 c2
PPPP
pmap_map_chunk: pa=0xa03fe000 va=0xc03fe000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03fd000 va=0xc03fd000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03fc000 va=0xc03fc000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f7000 va=0xc03f7000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f6000 va=0xc03f6000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f5000 va=0xc03f5000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f4000 va=0xc03f4000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f3000 va=0xc03f3000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f2000 va=0xc03f2000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f1000 va=0xc03f1000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03f0000 va=0xc03f0000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03ef000 va=0xc03ef000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03ee000 va=0xc03ee000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03ed000 va=0xc03ed000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03ec000 va=0xc03ec000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03eb000 va=0xc03eb000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03ea000 va=0xc03ea000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e9000 va=0xc03e9000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e8000 va=0xc03e8000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e7000 va=0xc03e7000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e6000 va=0xc03e6000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e5000 va=0xc03e5000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e4000 va=0xc03e4000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e3000 va=0xc03e3000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e2000 va=0xc03e2000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e1000 va=0xc03e1000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03e0000 va=0xc03e0000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03df000 va=0xc03df000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03de000 va=0xc03de000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03dd000 va=0xc03dd000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03dc000 va=0xc03dc000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03db000 va=0xc03db000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03da000 va=0xc03da000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d9000 va=0xc03d9000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d8000 va=0xc03d8000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d7000 va=0xc03d7000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d6000 va=0xc03d6000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d5000 va=0xc03d5000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d4000 va=0xc03d4000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d3000 va=0xc03d3000 size=0x1000 resid=0x1000 prot=0x3 c2
P
pmap_map_chunk: pa=0xa03d2000 va=0xc03d2000 size=0x1000 resid=0x1000 prot=0x3 c2
P
devmap: 40e00000 -> 40efffff @ fd000000
pmap_map_chunk: pa=0x40e00000 va=0xfd000000 size=0x100000 resid=0x100000 prot=00
S
devmap: 41300000 -> 413fffff @ fd100000
pmap_map_chunk: pa=0x41300000 va=0xfd100000 size=0x100000 resid=0x100000 prot=00
S
devmap: 40d00000 -> 40dfffff @ fd200000
pmap_map_chunk: pa=0x40d00000 va=0xfd200000 size=0x100000 resid=0x100000 prot=00
S
devmap: 48000000 -> 480fffff @ fd300000
pmap_map_chunk: pa=0x48000000 va=0xfd300000 size=0x100000 resid=0x100000 prot=00
S
devmap: 10800000 -> 108fffff @ fd400000
pmap_map_chunk: pa=0x10800000 va=0xfd400000 size=0x100000 resid=0x100000 prot=00
S
devmap: 08800000 -> 088fffff @ fd500000
pmap_map_chunk: pa=0x8800000 va=0xfd500000 size=0x100000 resid=0x100000 prot=0x0
S
devmap: 40100000 -> 401fffff @ fd600000
pmap_map_chunk: pa=0x40100000 va=0xfd600000 size=0x100000 resid=0x100000 prot=00
S
devmap: 40200000 -> 402fffff @ fd700000
pmap_map_chunk: pa=0x40200000 va=0xfd700000 size=0x100000 resid=0x100000 prot=00
S
devmap: 40700000 -> 407fffff @ fd800000
pmap_map_chunk: pa=0x40700000 va=0xfd800000 size=0x100000 resid=0x100000 prot=00
S
freestart = 0xa06fc000, free_pages = 6404 (0x1904)
switching to new L1 page table  @0xa03f8000...bootstrap done.
init subsystems: stacks vectors undefined page pmap
[ Kernel symbol table missing! ]
Loaded initial symtab at 0xc063c270, strtab at 0xc0662ac0, # entries 9184
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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.39 (C700) #12: Thu Dec  2 02:28:22 JST 2010
        star@nano.localnet:/home/star/netbsd/usr/objs-zaurus/sys/arch/zaurus/co0
total memory = 32768 KB
avail memory = 24448 KB
mainbus0 (root)
cpu0 at mainbus0: PXA250 step B-2 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way Instruction cache
cpu0: 32KB/32B 32-way write-back-locking Data cache
pxaip0 at mainbus0: PXA2x0 Onchip Peripheral Bus
pxaip0: CPU clock = 398.093 MHz
pxaip0: kernel is configured for PXA250, cpu type is PXA250
pxaintc0 at pxaip0 addr 0x40d00000-0x40d0001f: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000-0x40e0006f: GPIO Controller
com0 at pxaip0 addr 0x40100000-0x4010001f intr 22: ns16550a, working fifo
com0: console
com1 at pxaip0 addr 0x40200000-0x4020001f intr 21: ns16550a, working fifo
com2 at pxaip0 addr 0x40700000-0x4070001f intr 20: ns16550a, working fifo
saost0 at pxaip0 addr 0x40a00000-0x40a0001f
saost0: SA-11x0 OS Timer
pxadmac0 at pxaip0 addr 0x40000000-0x400002ff intr 25: DMA Controller
pxartc0 at pxaip0 addr 0x40900000-0x4090000f: PXA2x0 Real-time Clock
clock: hz=100 stathz=64
boot device: <unknown>
root device:

きた!きた!きた!ブートきた!

起動デバイスが見つからないのでそこで止まっているけど、そもそもデバイスはほとんど無効になっているので今の時点では問題なし。

次はその無効化しているデバイスを順次C700へ対応していくか。特に画面は何もしてないからLinuxからブートかけたところで固まっているようにしか見えないし。