[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pbsd-mg2] Re: GIU-ISA bridge
In message <19990807042006V.uch@nop.or.jp> UCHIYAMA Yasushi writes:
: GIU-ISAブリッジのコードをcommitしました。キーボードまわりは使えるてい
: どに必要最小限のパッチをあててあります。
私はもっともカーネル立ち上げれます。しかし「root file system type:
ffs」を刷ったあと、エラー送ります。これはブートとデーバグはEverex
Associate A-10と16MBのRAM.私のconfigフィルは「HPCMIPS_FLUSHCACHE_XXX」
を持っています。
#付注は英語でです。
これ英語は私がにほんごを書けます。おわびいたします。
どんな婦女でもはどうもありがとございます。
ワーナー
I was able to boot the latest kernel. However, after printing "root
file system type: ffs", an error happened. Here is the boot and
debugging on my Everex Associate A-10 with 16M of memory. I've set
HPCMIPS_FLUSHCACHE_XXX in my config file.
# Commentary below is in English.
Briefly, it looks like the memory for the arg to the rtc interrupt
routine is in allocated from kernel memory, but for some reason the
tlb entry for allocated kernel memory isn't present. I don't know how
to get a dump of the tlb entries from this version of ddb, so I can't
report what is in there. Ideas on how to proceed from here?
Thank you very much for any assistance.
Warner
Copyright (c) 1996, 1997, 1998, 1999
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.3I (GENERIC) #22: Sun Aug 8 22:47:44 MDT 1999
imp@anvil.village.org:/sand/imp/hpcmips/sys/arch/hpcmips/compile/GENERIC
NEC VR4102 rev1.0
real mem = 16777216
avail mem = 13107200
using 409 buffers containing 1675264 bytes of memory
../../../../arch/hpcmips/vr/vr.c(156): vr_bus_reset() not implemented.
mainbus0 (root)
cpu0 at mainbus0: cpu0: NEC VR4100 CPU Rev. 4.2 with software emulated floating point Rev. 0.0
cpu0: L1 cache: 4kb/16b Instruction, 1kb/16b Data, direct mapped
cpu0: No L2 cache
vrip0 at mainbus0
vrcmu0 at vrip0 addr 0xb000060-0xb00007f
vrgiu0 at vrip0 addr 0xb000100-0xb00011f intr 8vrip_intr_setmask2:
level1[8] level2 mask:........|..|..|.|..||||||||||.|.
Output-port:,,,,,,,;,,,,,,,;,,,,;;;;,;,,;,;;.|...|.|...|||...|||||||||||.||.
gpbus1 at vrgiu0 comctrl=-1 button=[-1 9 10 11 12 7 4 6 5 1 20 8]
vrip_intr_setmask2:
level1[8] level2 mask:................................
vrip_intr_setmask2:
level1[8] level2 mask:......................|.........
vrip_intr_setmask2:
level1[8] level2 mask:.....................||.........
vrip_intr_setmask2:
level1[8] level2 mask:....................|||.........
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.........
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.|.......
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.|..|....
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.||.|....
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.||||....
vrip_intr_setmask2:
level1[8] level2 mask:...................||||.||||..|.
vrip_intr_setmask2:
level1[8] level2 mask:...........|.......||||.||||..|.
vrisab1 at vrgiu0:ISA port 0x15000000-0x18000000 mem 0x10000000-0x20000000
isa1 at vrisab1
pcic0 at isa1 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 1507331
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has sockets A and B
ISA IRQ 3 -> GPIO port 23
vrip_intr_setmask2:
level1[8] level2 mask:...........|.......|||||||||..|.
pcmcia0 at pcic0 controller 0 socket 0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: SunDisk, SDP, 5/3 0.6
pcmcia0: Manufacturer code 0x45, product 0x401
pcmcia0: function 0: fixed disk, ccr addr 200 mask f
pcmcia0: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7ff0; maxtwins 1; powerdown
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; memspace 0-7ff0; maxtwins 1; powerdown
pcmcia0: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, iospace 1f0-1f7 3f6-3f7; memspace 0-7ff0; maxtwins 1; powerdown
pcmcia0: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff0; maxtwins 1; powerdown
pcmcia0: function 0, config table entry 7: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff0; maxtwins 1; powerdown
wdc0 at pcmcia0 function 0 port 0x15000330-0x1500033f
isa_intr_alloc:............................|...
vrip_intr_setmask2:
level1[8] level2 mask:........|..|.......|||||||||..|.
pcmcia0: card irq 3
wd0 at wdc0 channel 0 drive 0: <SunDisk SDCFB-48>
wd0: drive supports 1-sector pio transfers, lba addressing
wd0: 45MB, 734 cyl, 4 head, 32 sec, 512 bytes/sect x 93952 sectors
pcmcia1 at pcic0 controller 0 socket 1
pcmcia2 at pcic0 controller 1 socket 0
pcmcia3 at pcic0 controller 1 socket 1
com0 at vrip0 addr 0xc000000-0xc000007 intr 9vrgiu_port_write: not defined port name0
: ns16550a, working fifo
com0: console
vrip_intr_setmask2:
vrrtc0 at vrip0 addr 0xb0000c0-0xb0000df intr 2vrip_intr_setmask2:
vrbcu0 at vrip0 addr 0xb000000-0xb00001f
vrkiu0 at vrip0 addr 0xb000180-0xb00019f intr 7vrip_intr_setmask2:
level1[7] level2 mask:................
vrip_intr_setmask2:
level1[7] level2 mask:................
../../../../arch/hpcmips/vr/vr.c(156): vr_bus_reset() not implemented.
boot device: wd0
root on wd0a dumps on wd0b
isa_intr_alloc:............................|...
vrip_intr_setmask2:
level1[8] level2 mask:........|..|.......|||||||||..|.
pcmcia0: card irq 3
WARNING: old BSD partition ID!
isa_intr_alloc:............................|...
vrip_intr_setmask2:
level1[8] level2 mask:........|..|.......|||||||||..|.
pcmcia0: card irq 3
WARNING: preposterous clock chip time
-- CHECK AND RESET THE DATE!
root file system type: ffs
trap: address error (load or I-fetch) in kernel mode
trap: reserved instruction in kernel mode
status=0x2, cause=0x828, epc=0x80122708, vaddr=0xc000ceb0
pid=8 cmd=init usp=0x7fffee88 ksp=0xc27ceb90
Stopped in init at 0x80122708: lw v1,48(a0)
db> trace
801226f4+14 (c000ce80,80030e00,7c03,80168db5) ra 8011de2c sz 40
8011ddc4+68 (c000ce80,80030e00,7c03,80168db5) ra 0 sz 32
User-level: pid 8
# 8011ddc4+68 is in vr_intr. 801226f4 is vrrtc_intr.
db> ex/i 801226f4,10
0x801226f4: addiu sp,sp,-40
0x801226f8: sw s0,24(sp)
0x801226fc: move s0,a1
0x80122700: sw s1,28(sp)
0x80122704: sw ra,32(sp)
0x80122708: lw v1,48(a0) ; << epc a0 = 0xc000ce80
# most likely the start of the statement
# 156: bus_space_write_2(sc->sc_iot, sc->sc_ioh, RTCINT_REG_W, RTCINT_ALL);
# in rtc.c. vaddr = 0xc000ceb0, which is a0 + 48. (0xc000ce80 + 0x30)
# which fits with the instruction, given a0's value.
0x8012270c: li v0,15
0x80122710: sh v0,286(v1)
0x80122714: jal 0x80031f50
0x80122718: move s1,a2
0x8012271c: sw s0,16(sp)
0x80122720: addiu a0,sp,16
0x80122724: jal 0x800526d4
0x80122728: sw s1,20(sp)
0x8012272c: lui a1,0x8015
0x80122730: addiu a1,a1,-29932
db> show reg
at 0x80150000
v0 0x801226f4
v1 0x80161874
a0 0xc000ce80
a1 0x80030e00
a2 0x7c03
a3 0x80168db5
t0 0x1
t1 0
t2 0x5
t3 0x8013f8dc
t4 0x7b1
t5 0x2959
t6 0x51eb851f
t7 0x200d5358
s0 0x80030e00
s1 0x8015333a
s2 0x800
s3 0x80030e00
s4 0x80153a31
s5 0x247
s6 0x4
s7 0
t8 0x7e90
t9 0x20169730
k0 0
k1 0
gp 0x8015a400
sp 0xc27cec08
fp 0x800939c4
ra 0x8011de2c
sr 0x2
mdlo 0x33333335
mdhi 0x1
bad 0
cs 0
pc 0x80122708
0x80122708: lw v1,48(a0)
db> ps
PID PPID PGRP UID S FLAGS COMMAND WAIT
>8 1 8 0 2 0x4 init
7 0 0 0 3 0x20204 pcic0,1,1 pcicev
6 0 0 0 3 0x20204 pcic0,1,0 pcicev
5 0 0 0 3 0x20204 pcic0,0,1 pcicev
4 0 0 0 3 0x20204 pcic0,0,0 pcicev
3 0 0 0 3 0x20204 reaper reaper
2 0 0 0 3 0x20204 pagedaemon daemon_
1 0 1 0 3 0x4084 init wait
0 -1 0 0 3 0x20204 swapper schedul
db>
Here's my config file. A lightly hacked GENERIC:
#
# Distribution kernel (any model) kernel config file
#
# $NetBSD: GENERIC,v 1.19 1999/08/06 17:36:17 uch Exp $
#
include "arch/hpcmips/conf/std.hpcmips"
maxusers 8
options MIPS3 # R4000/R4400/R4600 CPUs
# Support for specific models of H/PC MIPS
options VR41X1 # NEC VR41x1 series
options MIPS3_L2CACHE_ABSENT
# Standard system options
options DDB # in-kernel debugger
#options DDB_ONPANIC=0 # don't enter debugger on panic
#options DIAGNOSTIC # extra kernel debugging checks
#options DEBUG # extra kernel debugging support
options "COMPAT_43" # compatibility with 4.3BSD binaries
options KTRACE # system call tracing support
options "NKMEMCLUSTERS=1024" # 4K pages in kernel malloc pool
options SCSIVERBOSE # human readable SCSI error messages
options PCMCIAVERBOSE # verbose PCMCIA configuration messages
options NTP # network time protocol
#options UCONSOLE # users can redirect console (unsafe)
#options WINCE_DEFAULT_SETTING # Debugging use
#options DUMP_GIU_LEVEL2_INTR # Debugging use
#options DEBUG_FIND_PCIC # Debugging use XXX harmful don't define until read source.
#options SYSCALL_DEBUG # for debug
#options HPCMIPS_L1CAHCE_DISABLE # disable L1 cache for debug
options HPCMIPS_FLUSHCACHE_XXX
#options HPCMIPS_PGSIZE_16K # page size is 16KB
# Filesystem options
file-system FFS # fast filesystem with user and group quotas
file-system MFS # memory-based filesystem
file-system NFS # Sun NFS-compatible filesystem (client)
#file-system LFS # Log-based filesystem (still experimental)
#file-system CD9660 # ISO 9660 + Rock Ridge file system
#file-system FDESC # /dev/fd
file-system KERNFS # /kern (kernel informational filesystem)
#file-system NULLFS # loopback file system
#file-system PORTAL # portal filesystem (still experimental)
file-system PROCFS # /proc
#file-system UMAPFS # NULLFS + uid and gid remapping
file-system UNION
options FIFO # POSIX fifo support (in all filesystems)
#options NFSSERVER # Sun NFS-compatible filesystem (server)
options QUOTA # UFS quotas
# Networking options
options INET # Internet protocols
#options "TCP_COMPAT_42" # compatibility with 4.2BSD TCP/IP
#options GATEWAY # IP packet forwarding
options MULTICAST # Multicast support
#options MROUTING # Multicast routing support
#options ISO # OSI networking
#options TPIP # TPIP
#options EON # OSI tunneling over IP
#options CCITT,LLC,HDLC # X.25
# NetBSD backwards compatibility
options COMPAT_12, COMPAT_13
options COMPAT_386BSD_MBRPART # recognize old partition ID
config netbsd root on ? type ?
#config netbsd root on sd0a type ffs
config nfsnetbsd root on ? type nfs
vrip* at mainbus0
vrcmu* at vrip? addr 0x0b000060 size 0x20
vrbcu* at vrip? addr 0x0b000000 size 0x20
vrrtc* at vrip? addr 0x0b0000c0 size 0x20 intr 2
vrkiu* at vrip? addr 0x0b000180 size 0x20 intr 7
options __NO_SOFT_SERIAL_INTERRUPT
com* at vrip? addr 0x0c000000 size 0x20 intr 9
vrgiu* at vrip? addr 0x0b000100 size 0x20 intr 8
#
# MC-R300
# Button to GPIO port # mapping
# + REC button : 4
# + Open/Close button: 6
# (PCIC-ISA : 9)
# (COM power:14)
gpbus0 at vrgiu? platform NEC_MCR_3XX comctrl 14 button1 4 button2 6
gpbus0 at vrgiu? platform NEC_MCR_5XX
gpbus0 at vrgiu? platform NEC_MCR_7XX comctrl 46
gpbus0 at vrgiu? platform NEC_MCCS
vrisab0 at vrgiu? platform NEC_MCR
vrisab0 at vrgiu? platform NEC_MCCS
isa0 at vrisab0
pcic0 at isa0 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 0x00090003
#
# Freestyle
# Button to GPIO port # mapping
# +---------+
# 1 +| |
# | |+ 7
# | |
#20 +| LCD |+ 4
# | | + 6
# 8 +| |+ 5
# | |
# | |+----Power On/Off (not connected to GPIO?)
# +---------+
# +9
# +12 +10
# +11
# (PCIC-ISA : 23)
gpbus1 at vrgiu? platform EVEREX_FREESTYLE button1 9 button2 10 button3 11 button4 12 button5 7 button6 4 button7 6 button8 5 button9 1 button10 20 button11 8
vrisab1 at vrgiu? platform EVEREX_FREESTYLE isaportoffset 0x1000000
isa1 at vrisab1
pcic0 at isa1 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 0x00170003
options PCIC_ISA_INTR_ALLOC_MASK=0x0008 # IRQ 3 only (MCR/Freestyle)
#
# Unknown machines
#
vrisab2 at vrgiu?
isa2 at vrisab2
# PCMCIA bus support
pcmcia* at pcic? controller ? socket ?
# PCMCIA IDE disk
wdc* at pcmcia? function ?
wd* at wdc? channel ? drive ? flags 0x0000
# ATAPI bus support
atapibus* at wdc? channel ?
# PCMCIA network interfaces
ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet
mbe* at pcmcia? function ? # MB8696x based Ethernet
ne* at pcmcia? function ? # NE2000-compatible Ethernet
sm* at pcmcia? function ? # Megahertz Ethernet
com* at pcmcia? function ? # Modems and serial cards
aic* at pcmcia? function ?
scsibus* at aic?
sd* at scsibus? target ? lun ? # SCSI disk drives
pseudo-device loop 1 # network loopback
pseudo-device ppp 2 # serial-line IP ports
pseudo-device pty 64 # pseudo ptys
pseudo-device bpfilter 16 # packet filter ports
#pseudo-device ipfilter # IP filter, NAT
pseudo-device vnd 4 # virtual disk ick
pseudo-device ccd 4 # concatenated disks
pseudo-device biconsdev 1 # build-in console device