KGDB revision 1.30
11.30Sgmcgarry#	$NetBSD: KGDB,v 1.30 2002/04/12 08:11:25 gmcgarry 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.1Sgwr
111.18Sgwr# Machines to be supported by this kernel
121.1Sgwroptions 	FPU_EMULATE
131.1Sgwroptions 	HAVECACHE		# Sun3/260 VAC
141.1Sgwr
151.1Sgwr# Needs to be set per system.  i.e change these as you see fit
161.1Sgwrmaxusers	4
171.1Sgwr
181.1Sgwr# Standard system options
191.14Sgwroptions 	KTRACE		# system call tracing
201.14Sgwroptions 	SYSVMSG		# System V message queues
211.14Sgwroptions 	SYSVSEM		# System V semaphores
221.14Sgwroptions 	SYSVSHM		# System V shared memory
231.14Sgwr#options 	SHMMAXPGS=1024	# 1024 pages is the default
241.14Sgwr#options 	LKM		# loadable kernel modules
251.14Sgwr#options 	INSECURE	# disable kernel security level
261.14Sgwr#options 	UCONSOLE	# Allow non-root TIOCCONS
271.30Sgmcgarry#options 	USERCONF	# userconf(4) support
281.29Sjdolecek#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
291.4Sthorpej
301.14Sgwr# Which kernel debugger?  Uncomment either this:
311.4Sthorpej#options 	DDB
321.9Sgwr# ... or these for KGDB (gdb remote target)
331.28Slukemmakeoptions	DEBUG="-g"	# debugging symbols for gdb
341.1Sgwroptions 	KGDB
351.27Slukemoptions 	KGDB_DEV=0x0C01	# ttya=0C00 ttyb=0C01
361.12Slukem
371.12Slukem# Other debugging options
381.12Slukem#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
391.14Sgwroptions 	DEBUG		# kernel debugging code
401.14Sgwroptions 	DIAGNOSTIC	# extra kernel sanity checking
411.14Sgwr#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
421.17Sgwr#options 	PMAP_DEBUG
431.14Sgwr#options 	SCSIDEBUG
441.14Sgwr#options 	SCSIVERBOSE		# Verbose SCSI errors
451.14Sgwr
461.25Swiz# Compatibility options
471.14Sgwroptions 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
481.14Sgwroptions 	COMPAT_43	# and 4.3BSD and ...
491.14Sgwroptions 	COMPAT_10	# NetBSD 1.0
501.14Sgwroptions 	COMPAT_11	# NetBSD 1.1
511.14Sgwroptions 	COMPAT_12	# NetBSD 1.2
521.14Sgwroptions 	COMPAT_13	# NetBSD 1.3
531.21Saugustssoptions 	COMPAT_14	# NetBSD 1.4
541.24Schsoptions 	COMPAT_AOUT_M68K # support for NetBSD a.out executables
551.20Sgwr#options 	COMPAT_LINUX	# can run Linux/m68k executables
561.24Schsoptions 	EXEC_AOUT	# support for a.out executables
571.26Sabs#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
581.1Sgwr
591.1Sgwr# Filesystem options
601.14Sgwrfile-system	FFS		# Berkeley Fast Filesystem
611.14Sgwrfile-system	NFS		# Sun NFS client support
621.11Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
631.11Slukemfile-system	FDESC		# /dev/fd/*
641.11Slukemfile-system	KERNFS		# /kern
651.11Slukemfile-system	NULLFS		# loopback file system
661.11Slukemfile-system	PROCFS		# /proc
671.11Slukemfile-system	UNION		# union file system
681.11Slukemfile-system	MFS		# memory-based filesystem
691.8Sthorpej
701.4Sthorpejoptions 	NFSSERVER	# nfs server support
711.14Sgwroptions 	QUOTA		# FFS quotas
721.20Sgwr#options 	FFS_EI		# FFS Endian Independant support
731.1Sgwr
741.1Sgwr# Networking options
751.4Sthorpejoptions 	INET		# IP prototol stack support
761.11Slukem#options 	GATEWAY		# IP packet forwarding
771.14Sgwr#options 	ISO,TPIP	# OSI networking
781.14Sgwr#options 	EON		# OSI tunneling over IP
791.14Sgwr#options 	CCITT,LLC,HDLC	# X.25
801.14Sgwr#options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
811.26Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
821.14Sgwr
831.14Sgwr# Work-around for root on slow servers (insurance...)
841.1Sgwroptions 	NFS_BOOT_RWSIZE=1024
851.16Sgwroptions 	NFS_BOOT_BOOTPARAM
861.1Sgwr
871.8Sthorpejconfig		netbsd root on ? type ?
881.1Sgwr
891.17Sgwr# On-board I/O space (required)
901.17Sgwrinclude "arch/sun3/conf/obio.sun3"
911.17Sgwr
921.17Sgwr# On-board memory (optional)
931.17Sgwr# See frame-buffers
941.17Sgwrobmem0 at mainbus?
951.17Sgwr
961.17Sgwr# VME bus support (optional)
971.17Sgwr# One unit for each address space
981.17Sgwrvme0 at mainbus? # A16/D16
991.17Sgwrvme1 at mainbus? # A16/D32
1001.17Sgwrvme2 at mainbus? # A24/D16
1011.17Sgwrvme3 at mainbus? # A24/D32
1021.17Sgwrvme4 at mainbus? # A32/D16
1031.17Sgwrvme5 at mainbus? # A32/D32
1041.17Sgwr
1051.1Sgwr#
1061.1Sgwr# Serial ports
1071.1Sgwr#
1081.11Slukemzstty0	at zsc1 channel 0	# ttya
1091.11Slukemzstty1	at zsc1 channel 1	# ttyb
1101.1Sgwr
1111.11Slukemkbd0	at zsc0 channel 0	# keyboard
1121.11Slukemms0	at zsc0 channel 1	# mouse
1131.1Sgwr
1141.1Sgwr#
1151.1Sgwr# Network devices
1161.1Sgwr#
1171.1Sgwr
1181.1Sgwr# Intel Ethernet (onboard, or VME)
1191.17Sgwrie0 at obio0 addr 0x0C0000 ipl 3
1201.28Slukemie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
1211.1Sgwr
1221.1Sgwr# Lance Ethernet (only onboard)
1231.17Sgwrle0 at obio0 addr 0x120000 ipl 3
1241.17Sgwr
1251.17Sgwr# All Sun3 machines with an "le" (3/50, 3/60) should be
1261.17Sgwr# presumed to have the old, buggy LANCE chip. (Rev. C)
1271.17Sgwroptions 	LANCE_REVC_BUG
1281.1Sgwr
1291.1Sgwr#
1301.1Sgwr# Disk and tape devices
1311.1Sgwr#
1321.1Sgwr
1331.1Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1341.14Sgwr# See GENERIC for the flags description.
1351.17Sgwrsi0 at obio0 addr 0x140000 ipl 2
1361.28Slukemsi0 at vme2 addr 0x200000 ipl 2 vect 0x40
1371.28Slukemsi1 at vme2 addr 0x204000 ipl 2 vect 0x41
1381.17Sgwr
1391.17Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1401.17Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
1411.17Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
1421.14Sgwrxy* at xyc? drive ?
1431.10Sgwr
1441.17Sgwr# Xylogics 7053 controllers (VME A16/D32)
1451.17Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
1461.17Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
1471.14Sgwrxd* at xdc? drive ?
1481.1Sgwr
1491.1Sgwr# Xylogics 472 tape controllers?
1501.1Sgwr
1511.17Sgwr# Sun3/E SCSI+Ethernet board (VME A24/D16)
1521.17Sgwr# Note: the board uses vect and vect+1
1531.17Sgwrsebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
1541.17Sgwrsebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
1551.14Sgwrsi* at sebuf?
1561.14Sgwrie* at sebuf?
1571.14Sgwr
1581.14Sgwr#
1591.1Sgwr# Frame buffer devices
1601.1Sgwr#
1611.1Sgwr
1621.18Sgwrinclude "arch/sun3/conf/bw2.sun3"
1631.18Sgwrinclude "arch/sun3/conf/cg4.sun3"
1641.1Sgwr
1651.1Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
1661.18Sgwr# cgsix0 at obmem0 addr 0xff000000
1671.1Sgwr
1681.1Sgwr# 3/60 P4 24-bit color frame buffer
1691.18Sgwr# cgeight0 at obmem0 addr 0xff300000
1701.1Sgwr
1711.17Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
1721.17Sgwrcgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
1731.1Sgwr
1741.17Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32).
1751.17Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
1761.1Sgwr
1771.1Sgwr#
1781.1Sgwr# SCSI infrastructure
1791.1Sgwr#
1801.1Sgwrscsibus* at scsi?
1811.1Sgwr
1821.10Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
1831.10Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
1841.10Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1851.10Sgwrch* at scsibus? target ? lun ?		# SCSI changer devices
1861.10Sgwrss* at scsibus? target ? lun ?		# SCSI scanners
1871.10Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
1881.1Sgwr
1891.6Spk# Memory-disk drivers
1901.11Slukempseudo-device	md		2
1911.1Sgwr
1921.1Sgwr# Misc.
1931.11Slukempseudo-device	loop		1	# network loopback
1941.11Slukempseudo-device	bpfilter	8	# packet filter
1951.11Slukempseudo-device	sl		2	# CSLIP
1961.11Slukempseudo-device	ppp		2	# PPP
1971.11Slukempseudo-device	tun		2	# network tunneling over tty
1981.20Sgwr#pseudo-device	gre		2	# generic L3 over IP tunnel
1991.10Sgwr#pseudo-device	ipfilter		# ip filter
2001.14Sgwr#pseudo-device	rnd			# /dev/random and in-kernel generator
2011.1Sgwr
2021.22Sjdolecekpseudo-device	pty			# pseudo-terminals
2031.11Slukem#pseudo-device	vnd		4	# paging to files
2041.11Slukem#pseudo-device	ccd		4	# concatenated disks
2051.20Sgwr#pseudo-device	raid		4	# RAIDframe disk driver
206