KGDB revision 1.20
11.20Sgwr#	$NetBSD: KGDB,v 1.20 1999/04/08 07:00:58 gwr 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.4Sthorpej
281.14Sgwr# Which kernel debugger?  Uncomment either this:
291.4Sthorpej#options 	DDB
301.9Sgwr# ... or these for KGDB (gdb remote target)
311.14Sgwrmakeoptions DEBUG="-g"		# debugging symbols for gdb
321.1Sgwroptions 	KGDB
331.14Sgwroptions 	KGDBDEV=0x0C01	# ttya=0C00 ttyb=0C01
341.12Slukem
351.12Slukem# Other debugging options
361.12Slukem#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
371.14Sgwroptions 	DEBUG		# kernel debugging code
381.14Sgwroptions 	DIAGNOSTIC	# extra kernel sanity checking
391.14Sgwr#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
401.17Sgwr#options 	PMAP_DEBUG
411.14Sgwr#options 	SCSIDEBUG
421.14Sgwr#options 	SCSIVERBOSE		# Verbose SCSI errors
431.14Sgwr
441.14Sgwr# Compatability options
451.14Sgwroptions 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
461.14Sgwroptions 	COMPAT_43	# and 4.3BSD and ...
471.14Sgwroptions 	COMPAT_10	# NetBSD 1.0
481.14Sgwroptions 	COMPAT_11	# NetBSD 1.1
491.14Sgwroptions 	COMPAT_12	# NetBSD 1.2
501.14Sgwroptions 	COMPAT_13	# NetBSD 1.3
511.20Sgwr#options 	COMPAT_LINUX	# can run Linux/m68k executables
521.20Sgwr#options 	EXEC_ELF32	# 32-bit ELF executables (Linux)
531.1Sgwr
541.1Sgwr# Filesystem options
551.14Sgwrfile-system	FFS		# Berkeley Fast Filesystem
561.14Sgwrfile-system	NFS		# Sun NFS client support
571.11Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
581.11Slukemfile-system	FDESC		# /dev/fd/*
591.11Slukemfile-system	KERNFS		# /kern
601.11Slukemfile-system	NULLFS		# loopback file system
611.11Slukemfile-system	PROCFS		# /proc
621.11Slukemfile-system	UNION		# union file system
631.11Slukemfile-system	MFS		# memory-based filesystem
641.8Sthorpej
651.4Sthorpejoptions 	NFSSERVER	# nfs server support
661.14Sgwroptions 	QUOTA		# FFS quotas
671.20Sgwr#options 	FFS_EI		# FFS Endian Independant support
681.1Sgwr
691.1Sgwr# Networking options
701.4Sthorpejoptions 	INET		# IP prototol stack support
711.14Sgwroptions 	TCP_COMPAT_42	# compatibility with 4.2BSD TCP/IP
721.11Slukem#options 	GATEWAY		# IP packet forwarding
731.14Sgwr#options 	ISO,TPIP	# OSI networking
741.14Sgwr#options 	EON		# OSI tunneling over IP
751.14Sgwr#options 	CCITT,LLC,HDLC	# X.25
761.14Sgwr#options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
771.14Sgwr
781.14Sgwr# Work-around for root on slow servers (insurance...)
791.1Sgwroptions 	NFS_BOOT_RWSIZE=1024
801.16Sgwroptions 	NFS_BOOT_BOOTPARAM
811.1Sgwr
821.8Sthorpejconfig		netbsd root on ? type ?
831.1Sgwr
841.17Sgwr# On-board I/O space (required)
851.17Sgwrinclude "arch/sun3/conf/obio.sun3"
861.17Sgwr
871.17Sgwr# On-board memory (optional)
881.17Sgwr# See frame-buffers
891.17Sgwrobmem0 at mainbus?
901.17Sgwr
911.17Sgwr# VME bus support (optional)
921.17Sgwr# One unit for each address space
931.17Sgwrvme0 at mainbus? # A16/D16
941.17Sgwrvme1 at mainbus? # A16/D32
951.17Sgwrvme2 at mainbus? # A24/D16
961.17Sgwrvme3 at mainbus? # A24/D32
971.17Sgwrvme4 at mainbus? # A32/D16
981.17Sgwrvme5 at mainbus? # A32/D32
991.17Sgwr
1001.1Sgwr#
1011.1Sgwr# Serial ports
1021.1Sgwr#
1031.11Slukemzstty0	at zsc1 channel 0	# ttya
1041.11Slukemzstty1	at zsc1 channel 1	# ttyb
1051.1Sgwr
1061.11Slukemkbd0	at zsc0 channel 0	# keyboard
1071.11Slukemms0	at zsc0 channel 1	# mouse
1081.1Sgwr
1091.1Sgwr#
1101.1Sgwr# Network devices
1111.1Sgwr#
1121.1Sgwr
1131.1Sgwr# Intel Ethernet (onboard, or VME)
1141.17Sgwrie0 at obio0 addr 0x0C0000 ipl 3
1151.17Sgwrie1 at vme2  addr 0xe88000 ipl 3 vect 0x75
1161.1Sgwr
1171.1Sgwr# Lance Ethernet (only onboard)
1181.17Sgwrle0 at obio0 addr 0x120000 ipl 3
1191.17Sgwr
1201.17Sgwr# All Sun3 machines with an "le" (3/50, 3/60) should be
1211.17Sgwr# presumed to have the old, buggy LANCE chip. (Rev. C)
1221.17Sgwroptions 	LANCE_REVC_BUG
1231.1Sgwr
1241.1Sgwr#
1251.1Sgwr# Disk and tape devices
1261.1Sgwr#
1271.1Sgwr
1281.1Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1291.14Sgwr# See GENERIC for the flags description.
1301.17Sgwrsi0 at obio0 addr 0x140000 ipl 2
1311.17Sgwrsi0 at vme2  addr 0x200000 ipl 2 vect 0x40
1321.17Sgwrsi1 at vme2  addr 0x204000 ipl 2 vect 0x41
1331.17Sgwr
1341.17Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1351.17Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
1361.17Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
1371.14Sgwrxy* at xyc? drive ?
1381.10Sgwr
1391.17Sgwr# Xylogics 7053 controllers (VME A16/D32)
1401.17Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
1411.17Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
1421.14Sgwrxd* at xdc? drive ?
1431.1Sgwr
1441.1Sgwr# Xylogics 472 tape controllers?
1451.1Sgwr
1461.17Sgwr# Sun3/E SCSI+Ethernet board (VME A24/D16)
1471.17Sgwr# Note: the board uses vect and vect+1
1481.17Sgwrsebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
1491.17Sgwrsebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
1501.14Sgwrsi* at sebuf?
1511.14Sgwrie* at sebuf?
1521.14Sgwr
1531.14Sgwr#
1541.1Sgwr# Frame buffer devices
1551.1Sgwr#
1561.1Sgwr
1571.18Sgwrinclude "arch/sun3/conf/bw2.sun3"
1581.18Sgwrinclude "arch/sun3/conf/cg4.sun3"
1591.1Sgwr
1601.1Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
1611.18Sgwr# cgsix0 at obmem0 addr 0xff000000
1621.1Sgwr
1631.1Sgwr# 3/60 P4 24-bit color frame buffer
1641.18Sgwr# cgeight0 at obmem0 addr 0xff300000
1651.1Sgwr
1661.17Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
1671.17Sgwrcgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
1681.1Sgwr
1691.17Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32).
1701.17Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
1711.1Sgwr
1721.1Sgwr#
1731.1Sgwr# SCSI infrastructure
1741.1Sgwr#
1751.1Sgwrscsibus* at scsi?
1761.1Sgwr
1771.10Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
1781.10Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
1791.10Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1801.10Sgwrch* at scsibus? target ? lun ?		# SCSI changer devices
1811.10Sgwrss* at scsibus? target ? lun ?		# SCSI scanners
1821.10Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
1831.1Sgwr
1841.6Spk# Memory-disk drivers
1851.11Slukempseudo-device	md		2
1861.1Sgwr
1871.1Sgwr# Misc.
1881.11Slukempseudo-device	loop		1	# network loopback
1891.11Slukempseudo-device	bpfilter	8	# packet filter
1901.11Slukempseudo-device	sl		2	# CSLIP
1911.11Slukempseudo-device	ppp		2	# PPP
1921.11Slukempseudo-device	tun		2	# network tunneling over tty
1931.20Sgwr#pseudo-device	gre		2	# generic L3 over IP tunnel
1941.10Sgwr#pseudo-device	ipfilter		# ip filter
1951.14Sgwr# rnd is EXPERIMENTAL
1961.14Sgwr#pseudo-device	rnd			# /dev/random and in-kernel generator
1971.1Sgwr
1981.17Sgwrpseudo-device	pty		32	# pseudo-terminals
1991.11Slukem#pseudo-device	vnd		4	# paging to files
2001.11Slukem#pseudo-device	ccd		4	# concatenated disks
2011.20Sgwr#pseudo-device	raid		4	# RAIDframe disk driver
202