[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: L-router / L-board



Takao Shinohara <shin@sm.sony.co.jp> writes:
> まだ割り込み関係とかを作っていないのでデバイスはシリアルコンソールくらい
> しか動いていません。

割り込みを適当につないだ(つもり)のカーネルを作ってみましたが、fxpが怪し
い振る舞いをします。

どうも、

	EEPROMが読めていない
	MIIが動いていないためにPHYが見つからない

という感じです。

(fxpドライバの中身やMIIの動作については全く知識がないので上記の所見は的
外れかもしれません。)

どうやってデバッグすればいいか、途方に暮れている状態です。皆様のお知恵を
お貸しください。

EEPROMのチップがAtmelの93C46であることがわかったので、データシートは拾っ
てきました。ぱっと見た限りではfxpドライバのEEPROMのアクセス部分は問題な
さそうなのですが......

# IDEドライバはどうにかしてHDDをつないで試してみます。

篠原

--- begin boot message ---
mem_cluster_cnt = 2
mem_clusters[0] = {0x0,0x1b9000}
mem_clusters[1] = {0x1b9000,0x1e47000}
loading 0x1b9000,0x1e47000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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 1.5Y (LROUTER) #76: Sat Dec  8 20:09:24 JST 2001
    shin@shinji:/u/src/current/work/src/sys/arch/hpcmips/compile/LROUTER
Victor InterLink MPC303 (NEC VR4122 rev0.3 180.633MHz)
total memory = 32768 KB
avail memory = 28380 KB
using 435 buffers containing 1740 KB of memory
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc70) Rev. 7.0 with software emulated floating point Rev. 0.0
cpu0: 32KB/32B direct-mapped L1 Instruction cache, 32 TLB entries
cpu0: 16KB/16B direct-mapped write-back L1 Data cache
vrip0 at mainbus0
vrbcu0 at vrip0 addr 0xf000000-0xf00001f
vrbcu0: cpu 180.633MHz, bus 30.105MHz, ram 60.211MHz
vrcmu0 at vrip0 addr 0xf000060-0xf00007f
vrgiu0 at vrip0 addr 0xf000140-0xf00015f intr 8
com0 at vrip0 addr 0xf000800-0xf000807 intr 9: ns16550a, working fifo
com0: console
vrrtc0 at vrip0 addr 0xf000100-0xf00011f intr 2
vrpmu0 at vrip0 addr 0xf0000c0-0xf0000df intr 1
vrpmu: RESET switch detected
vrpciu0 at vrip0 addr 0xf000c00-0xf000dff intr 22
pci0 at vrpciu0 bus 0
pci0: i/o space, memory space enabled, rd/line ok
fxp0 at pci0 dev 0 function 0: i82559S Ethernet, rev 9
fxp0: interrupting at GPIO 12
fxp0: failed to detect EEPROM size
fxp0: Ethernet address 00:00:00:00:00:00
fxp1 at pci0 dev 1 function 0: i82559S Ethernet, rev 9
fxp1: interrupting at GPIO 13
fxp1: failed to detect EEPROM size
fxp1: Ethernet address 00:00:00:00:00:00
Acer Labs M1543 PCI-ISA Bridge (ISA bridge, revision 0xc3) at pci0 dev 7 function 0 not configured
pciide0 at pci0 dev 16 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc2)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
pciide0: disabling primary channel (no drives)
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
md0: internal 0 image area
boot device: <unknown>
root on md0a dumps on md0b
no file system for md0 (dev 0x600)
cannot mount root, error = 79
root device (default md0a): 
--- end boot message ----