KGDB revision 1.31
11.31Satatat#	$NetBSD: KGDB,v 1.31 2002/04/25 15:06:39 atatat Exp $
21.1Sgwr
31.17Sgwr# KGDB Sun3 (3/50, 3/60, 3/110, 3/160, 3/260, 3/E)
41.9Sgwr# like GENERIC but supports gdb on other machine, i.e.:
51.9Sgwr#	% gdb -k netbsd.gdb
61.9Sgwr#	(gdb) set remotebaud 19200
71.9Sgwr#	(gdb) target remote /dev/ttyb
81.1Sgwr
91.3Sjtcinclude "arch/sun3/conf/std.sun3"
101.31Satatat
111.31Satatat#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
121.1Sgwr
131.18Sgwr# Machines to be supported by this kernel
141.1Sgwroptions 	FPU_EMULATE
151.1Sgwroptions 	HAVECACHE		# Sun3/260 VAC
161.1Sgwr
171.1Sgwr# Needs to be set per system.  i.e change these as you see fit
181.1Sgwrmaxusers	4
191.1Sgwr
201.1Sgwr# Standard system options
211.14Sgwroptions 	KTRACE		# system call tracing
221.14Sgwroptions 	SYSVMSG		# System V message queues
231.14Sgwroptions 	SYSVSEM		# System V semaphores
241.14Sgwroptions 	SYSVSHM		# System V shared memory
251.14Sgwr#options 	SHMMAXPGS=1024	# 1024 pages is the default
261.14Sgwr#options 	LKM		# loadable kernel modules
271.14Sgwr#options 	INSECURE	# disable kernel security level
281.14Sgwr#options 	UCONSOLE	# Allow non-root TIOCCONS
291.30Sgmcgarry#options 	USERCONF	# userconf(4) support
301.29Sjdolecek#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
311.4Sthorpej
321.14Sgwr# Which kernel debugger?  Uncomment either this:
331.4Sthorpej#options 	DDB
341.9Sgwr# ... or these for KGDB (gdb remote target)
351.28Slukemmakeoptions	DEBUG="-g"	# debugging symbols for gdb
361.1Sgwroptions 	KGDB
371.27Slukemoptions 	KGDB_DEV=0x0C01	# ttya=0C00 ttyb=0C01
381.12Slukem
391.12Slukem# Other debugging options
401.12Slukem#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
411.14Sgwroptions 	DEBUG		# kernel debugging code
421.14Sgwroptions 	DIAGNOSTIC	# extra kernel sanity checking
431.14Sgwr#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
441.17Sgwr#options 	PMAP_DEBUG
451.14Sgwr#options 	SCSIDEBUG
461.14Sgwr#options 	SCSIVERBOSE		# Verbose SCSI errors
471.14Sgwr
481.25Swiz# Compatibility options
491.14Sgwroptions 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
501.14Sgwroptions 	COMPAT_43	# and 4.3BSD and ...
511.14Sgwroptions 	COMPAT_10	# NetBSD 1.0
521.14Sgwroptions 	COMPAT_11	# NetBSD 1.1
531.14Sgwroptions 	COMPAT_12	# NetBSD 1.2
541.14Sgwroptions 	COMPAT_13	# NetBSD 1.3
551.21Saugustssoptions 	COMPAT_14	# NetBSD 1.4
561.24Schsoptions 	COMPAT_AOUT_M68K # support for NetBSD a.out executables
571.20Sgwr#options 	COMPAT_LINUX	# can run Linux/m68k executables
581.24Schsoptions 	EXEC_AOUT	# support for a.out executables
591.26Sabs#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
601.1Sgwr
611.1Sgwr# Filesystem options
621.14Sgwrfile-system	FFS		# Berkeley Fast Filesystem
631.14Sgwrfile-system	NFS		# Sun NFS client support
641.11Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
651.11Slukemfile-system	FDESC		# /dev/fd/*
661.11Slukemfile-system	KERNFS		# /kern
671.11Slukemfile-system	NULLFS		# loopback file system
681.11Slukemfile-system	PROCFS		# /proc
691.11Slukemfile-system	UNION		# union file system
701.11Slukemfile-system	MFS		# memory-based filesystem
711.8Sthorpej
721.4Sthorpejoptions 	NFSSERVER	# nfs server support
731.14Sgwroptions 	QUOTA		# FFS quotas
741.20Sgwr#options 	FFS_EI		# FFS Endian Independant support
751.1Sgwr
761.1Sgwr# Networking options
771.4Sthorpejoptions 	INET		# IP prototol stack support
781.11Slukem#options 	GATEWAY		# IP packet forwarding
791.14Sgwr#options 	ISO,TPIP	# OSI networking
801.14Sgwr#options 	EON		# OSI tunneling over IP
811.14Sgwr#options 	CCITT,LLC,HDLC	# X.25
821.14Sgwr#options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
831.26Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
841.14Sgwr
851.14Sgwr# Work-around for root on slow servers (insurance...)
861.1Sgwroptions 	NFS_BOOT_RWSIZE=1024
871.16Sgwroptions 	NFS_BOOT_BOOTPARAM
881.1Sgwr
891.8Sthorpejconfig		netbsd root on ? type ?
901.1Sgwr
911.17Sgwr# On-board I/O space (required)
921.17Sgwrinclude "arch/sun3/conf/obio.sun3"
931.17Sgwr
941.17Sgwr# On-board memory (optional)
951.17Sgwr# See frame-buffers
961.17Sgwrobmem0 at mainbus?
971.17Sgwr
981.17Sgwr# VME bus support (optional)
991.17Sgwr# One unit for each address space
1001.17Sgwrvme0 at mainbus? # A16/D16
1011.17Sgwrvme1 at mainbus? # A16/D32
1021.17Sgwrvme2 at mainbus? # A24/D16
1031.17Sgwrvme3 at mainbus? # A24/D32
1041.17Sgwrvme4 at mainbus? # A32/D16
1051.17Sgwrvme5 at mainbus? # A32/D32
1061.17Sgwr
1071.1Sgwr#
1081.1Sgwr# Serial ports
1091.1Sgwr#
1101.11Slukemzstty0	at zsc1 channel 0	# ttya
1111.11Slukemzstty1	at zsc1 channel 1	# ttyb
1121.1Sgwr
1131.11Slukemkbd0	at zsc0 channel 0	# keyboard
1141.11Slukemms0	at zsc0 channel 1	# mouse
1151.1Sgwr
1161.1Sgwr#
1171.1Sgwr# Network devices
1181.1Sgwr#
1191.1Sgwr
1201.1Sgwr# Intel Ethernet (onboard, or VME)
1211.17Sgwrie0 at obio0 addr 0x0C0000 ipl 3
1221.28Slukemie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
1231.1Sgwr
1241.1Sgwr# Lance Ethernet (only onboard)
1251.17Sgwrle0 at obio0 addr 0x120000 ipl 3
1261.17Sgwr
1271.17Sgwr# All Sun3 machines with an "le" (3/50, 3/60) should be
1281.17Sgwr# presumed to have the old, buggy LANCE chip. (Rev. C)
1291.17Sgwroptions 	LANCE_REVC_BUG
1301.1Sgwr
1311.1Sgwr#
1321.1Sgwr# Disk and tape devices
1331.1Sgwr#
1341.1Sgwr
1351.1Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1361.14Sgwr# See GENERIC for the flags description.
1371.17Sgwrsi0 at obio0 addr 0x140000 ipl 2
1381.28Slukemsi0 at vme2 addr 0x200000 ipl 2 vect 0x40
1391.28Slukemsi1 at vme2 addr 0x204000 ipl 2 vect 0x41
1401.17Sgwr
1411.17Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1421.17Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
1431.17Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
1441.14Sgwrxy* at xyc? drive ?
1451.10Sgwr
1461.17Sgwr# Xylogics 7053 controllers (VME A16/D32)
1471.17Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
1481.17Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
1491.14Sgwrxd* at xdc? drive ?
1501.1Sgwr
1511.1Sgwr# Xylogics 472 tape controllers?
1521.1Sgwr
1531.17Sgwr# Sun3/E SCSI+Ethernet board (VME A24/D16)
1541.17Sgwr# Note: the board uses vect and vect+1
1551.17Sgwrsebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
1561.17Sgwrsebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
1571.14Sgwrsi* at sebuf?
1581.14Sgwrie* at sebuf?
1591.14Sgwr
1601.14Sgwr#
1611.1Sgwr# Frame buffer devices
1621.1Sgwr#
1631.1Sgwr
1641.18Sgwrinclude "arch/sun3/conf/bw2.sun3"
1651.18Sgwrinclude "arch/sun3/conf/cg4.sun3"
1661.1Sgwr
1671.1Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
1681.18Sgwr# cgsix0 at obmem0 addr 0xff000000
1691.1Sgwr
1701.1Sgwr# 3/60 P4 24-bit color frame buffer
1711.18Sgwr# cgeight0 at obmem0 addr 0xff300000
1721.1Sgwr
1731.17Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
1741.17Sgwrcgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
1751.1Sgwr
1761.17Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32).
1771.17Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
1781.1Sgwr
1791.1Sgwr#
1801.1Sgwr# SCSI infrastructure
1811.1Sgwr#
1821.1Sgwrscsibus* at scsi?
1831.1Sgwr
1841.10Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
1851.10Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
1861.10Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1871.10Sgwrch* at scsibus? target ? lun ?		# SCSI changer devices
1881.10Sgwrss* at scsibus? target ? lun ?		# SCSI scanners
1891.10Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
1901.1Sgwr
1911.6Spk# Memory-disk drivers
1921.11Slukempseudo-device	md		2
1931.1Sgwr
1941.1Sgwr# Misc.
1951.11Slukempseudo-device	loop		1	# network loopback
1961.11Slukempseudo-device	bpfilter	8	# packet filter
1971.11Slukempseudo-device	sl		2	# CSLIP
1981.11Slukempseudo-device	ppp		2	# PPP
1991.11Slukempseudo-device	tun		2	# network tunneling over tty
2001.20Sgwr#pseudo-device	gre		2	# generic L3 over IP tunnel
2011.10Sgwr#pseudo-device	ipfilter		# ip filter
2021.14Sgwr#pseudo-device	rnd			# /dev/random and in-kernel generator
2031.1Sgwr
2041.22Sjdolecekpseudo-device	pty			# pseudo-terminals
2051.11Slukem#pseudo-device	vnd		4	# paging to files
2061.11Slukem#pseudo-device	ccd		4	# concatenated disks
2071.20Sgwr#pseudo-device	raid		4	# RAIDframe disk driver
208