KGDB revision 1.17
11.17Sgwr#	$NetBSD: KGDB,v 1.17 1998/02/05 04:56:28 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.17Sgwr# Machines to be supported by this kernel.  Note:
121.17Sgwr# The SUN3 and SUN3X options are mutually exclusive!
131.17Sgwr# (Your kernel will only run on one or the other.)
141.17Sgwrmakeoptions	MACHTYPE=sun3
151.17Sgwroptions 	_SUN3_
161.17Sgwr
171.1Sgwroptions 	FPU_EMULATE
181.1Sgwroptions 	HAVECACHE		# Sun3/260 VAC
191.1Sgwr
201.1Sgwr# Needs to be set per system.  i.e change these as you see fit
211.1Sgwrmaxusers	4
221.1Sgwr
231.1Sgwr# Standard system options
241.14Sgwroptions 	KTRACE		# system call tracing
251.14Sgwroptions 	SYSVMSG		# System V message queues
261.14Sgwroptions 	SYSVSEM		# System V semaphores
271.14Sgwroptions 	SYSVSHM		# System V shared memory
281.14Sgwr#options 	SHMMAXPGS=1024	# 1024 pages is the default
291.14Sgwr#options 	LKM		# loadable kernel modules
301.14Sgwr#options 	INSECURE	# disable kernel security level
311.14Sgwr#options 	UCONSOLE	# Allow non-root TIOCCONS
321.4Sthorpej
331.14Sgwr# Which kernel debugger?  Uncomment either this:
341.4Sthorpej#options 	DDB
351.9Sgwr# ... or these for KGDB (gdb remote target)
361.14Sgwrmakeoptions DEBUG="-g"		# debugging symbols for gdb
371.1Sgwroptions 	KGDB
381.14Sgwroptions 	KGDBDEV=0x0C01	# ttya=0C00 ttyb=0C01
391.12Slukem
401.12Slukem# Other debugging options
411.12Slukem#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
421.14Sgwroptions 	DEBUG		# kernel debugging code
431.14Sgwroptions 	DIAGNOSTIC	# extra kernel sanity checking
441.14Sgwr#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
451.17Sgwr#options 	PMAP_DEBUG
461.14Sgwr#options 	SCSIDEBUG
471.14Sgwr#options 	SCSIVERBOSE		# Verbose SCSI errors
481.14Sgwr
491.14Sgwr# Compatability options
501.14Sgwroptions 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
511.14Sgwroptions 	COMPAT_43	# and 4.3BSD and ...
521.14Sgwroptions 	COMPAT_10	# NetBSD 1.0
531.14Sgwroptions 	COMPAT_11	# NetBSD 1.1
541.14Sgwroptions 	COMPAT_12	# NetBSD 1.2
551.14Sgwroptions 	COMPAT_13	# NetBSD 1.3
561.1Sgwr
571.1Sgwr# Filesystem options
581.14Sgwrfile-system	FFS		# Berkeley Fast Filesystem
591.14Sgwrfile-system	NFS		# Sun NFS client support
601.11Slukemfile-system	CD9660		# ISO 9660 + Rock Ridge file system
611.11Slukemfile-system	FDESC		# /dev/fd/*
621.11Slukemfile-system	KERNFS		# /kern
631.11Slukemfile-system	NULLFS		# loopback file system
641.11Slukemfile-system	PROCFS		# /proc
651.11Slukemfile-system	UNION		# union file system
661.11Slukemfile-system	MFS		# memory-based filesystem
671.8Sthorpej
681.14Sgwroptions 	FIFO		# FIFOs; RECOMMENDED
691.4Sthorpejoptions 	NFSSERVER	# nfs server support
701.14Sgwroptions 	QUOTA		# FFS quotas
711.1Sgwr
721.1Sgwr# Networking options
731.4Sthorpejoptions 	INET		# IP prototol stack support
741.14Sgwroptions 	TCP_COMPAT_42	# compatibility with 4.2BSD TCP/IP
751.11Slukem#options 	GATEWAY		# IP packet forwarding
761.14Sgwr#options 	ISO,TPIP	# OSI networking
771.14Sgwr#options 	EON		# OSI tunneling over IP
781.14Sgwr#options 	CCITT,LLC,HDLC	# X.25
791.14Sgwr#options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
801.14Sgwr
811.14Sgwr# Work-around for root on slow servers (insurance...)
821.1Sgwroptions 	NFS_BOOT_RWSIZE=1024
831.16Sgwroptions 	NFS_BOOT_BOOTPARAM
841.1Sgwr
851.8Sthorpejconfig		netbsd root on ? type ?
861.1Sgwr
871.17Sgwr# On-board I/O space (required)
881.17Sgwrinclude "arch/sun3/conf/obio.sun3"
891.17Sgwr
901.17Sgwr# On-board memory (optional)
911.17Sgwr# See frame-buffers
921.17Sgwrobmem0 at mainbus?
931.17Sgwr
941.17Sgwr# VME bus support (optional)
951.17Sgwr# One unit for each address space
961.17Sgwrvme0 at mainbus? # A16/D16
971.17Sgwrvme1 at mainbus? # A16/D32
981.17Sgwrvme2 at mainbus? # A24/D16
991.17Sgwrvme3 at mainbus? # A24/D32
1001.17Sgwrvme4 at mainbus? # A32/D16
1011.17Sgwrvme5 at mainbus? # A32/D32
1021.17Sgwr
1031.1Sgwr#
1041.1Sgwr# Serial ports
1051.1Sgwr#
1061.11Slukemzstty0	at zsc1 channel 0	# ttya
1071.11Slukemzstty1	at zsc1 channel 1	# ttyb
1081.1Sgwr
1091.11Slukemkbd0	at zsc0 channel 0	# keyboard
1101.11Slukemms0	at zsc0 channel 1	# mouse
1111.1Sgwr
1121.1Sgwr#
1131.1Sgwr# Network devices
1141.1Sgwr#
1151.1Sgwr
1161.1Sgwr# Intel Ethernet (onboard, or VME)
1171.17Sgwrie0 at obio0 addr 0x0C0000 ipl 3
1181.17Sgwrie1 at vme2  addr 0xe88000 ipl 3 vect 0x75
1191.1Sgwr
1201.1Sgwr# Lance Ethernet (only onboard)
1211.17Sgwrle0 at obio0 addr 0x120000 ipl 3
1221.17Sgwr
1231.17Sgwr# All Sun3 machines with an "le" (3/50, 3/60) should be
1241.17Sgwr# presumed to have the old, buggy LANCE chip. (Rev. C)
1251.17Sgwroptions 	LANCE_REVC_BUG
1261.1Sgwr
1271.1Sgwr#
1281.1Sgwr# Disk and tape devices
1291.1Sgwr#
1301.1Sgwr
1311.1Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1321.14Sgwr# See GENERIC for the flags description.
1331.17Sgwrsi0 at obio0 addr 0x140000 ipl 2
1341.17Sgwrsi0 at vme2  addr 0x200000 ipl 2 vect 0x40
1351.17Sgwrsi1 at vme2  addr 0x204000 ipl 2 vect 0x41
1361.17Sgwr
1371.17Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1381.17Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
1391.17Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
1401.14Sgwrxy* at xyc? drive ?
1411.10Sgwr
1421.17Sgwr# Xylogics 7053 controllers (VME A16/D32)
1431.17Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
1441.17Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
1451.14Sgwrxd* at xdc? drive ?
1461.1Sgwr
1471.1Sgwr# Xylogics 472 tape controllers?
1481.1Sgwr
1491.17Sgwr# Sun3/E SCSI+Ethernet board (VME A24/D16)
1501.17Sgwr# Note: the board uses vect and vect+1
1511.17Sgwrsebuf0 at vme2 addr 0x300000 ipl 2 vect 0x74 # and 0x75
1521.17Sgwrsebuf1 at vme2 addr 0x340000 ipl 2 vect 0x76 # and 0x77
1531.14Sgwrsi* at sebuf?
1541.14Sgwrie* at sebuf?
1551.14Sgwr
1561.14Sgwr#
1571.1Sgwr# Frame buffer devices
1581.1Sgwr#
1591.1Sgwr
1601.1Sgwr# The default cgfour address depends on the machine:
1611.1Sgwr# 3/60: obmem 0xFF200000 .. 0xFF9fffff
1621.1Sgwr# 3/110: different? (not tested)
1631.1Sgwrcgfour0 at obmem0 addr ?
1641.1Sgwr
1651.1Sgwr# 3/60 P4 accelerated 8-bit color frame buffer
1661.1Sgwr# cgsix0 at obmem0 addr ?
1671.1Sgwr
1681.1Sgwr# 3/60 P4 24-bit color frame buffer
1691.1Sgwr# cgeight0 at obmem0 addr ?
1701.1Sgwr
1711.1Sgwr# The default bwtwo address depends on the machine:
1721.1Sgwr# 3/50: obmem   0x100000
1731.1Sgwr# else: obmem 0xff000000
1741.1Sgwrbwtwo0 at obmem0 addr ?
1751.1Sgwr# 3/60 P4 color frame buffer overlay plane, or P4 monochrome frame buffer
1761.1Sgwr#bwtwo1 at obmem0 addr 0xff300000
1771.1Sgwr# 3/60 plug-in color frame buffer overlay plane
1781.1Sgwr#bwtwo1 at obmem0 addr 0xff400000
1791.1Sgwr
1801.17Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16).
1811.17Sgwrcgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8
1821.1Sgwr
1831.17Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32).
1841.17Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA
1851.1Sgwr
1861.1Sgwr#
1871.1Sgwr# SCSI infrastructure
1881.1Sgwr#
1891.1Sgwrscsibus* at scsi?
1901.1Sgwr
1911.10Sgwrsd* at scsibus? target ? lun ?		# SCSI disks
1921.10Sgwrst* at scsibus? target ? lun ?		# SCSI tapes
1931.10Sgwrcd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1941.10Sgwrch* at scsibus? target ? lun ?		# SCSI changer devices
1951.10Sgwrss* at scsibus? target ? lun ?		# SCSI scanners
1961.10Sgwruk* at scsibus? target ? lun ?		# unknown SCSI devices
1971.1Sgwr
1981.6Spk# Memory-disk drivers
1991.11Slukempseudo-device	md		2
2001.1Sgwr
2011.1Sgwr# Misc.
2021.11Slukempseudo-device	loop		1	# network loopback
2031.11Slukempseudo-device	bpfilter	8	# packet filter
2041.11Slukempseudo-device	sl		2	# CSLIP
2051.11Slukempseudo-device	ppp		2	# PPP
2061.11Slukempseudo-device	tun		2	# network tunneling over tty
2071.10Sgwr#pseudo-device	ipfilter		# ip filter
2081.14Sgwr# rnd is EXPERIMENTAL
2091.14Sgwr#pseudo-device	rnd			# /dev/random and in-kernel generator
2101.1Sgwr
2111.17Sgwrpseudo-device	pty		32	# pseudo-terminals
2121.11Slukem#pseudo-device	vnd		4	# paging to files
2131.11Slukem#pseudo-device	ccd		4	# concatenated disks
214