KGDB3X revision 1.18
11.18Sgwr# $NetBSD: KGDB3X,v 1.18 1998/02/05 04:56:29 gwr Exp $ 21.11Sgwr 31.18Sgwr# KGDB3X Sun3X (3/80, 3/470) 41.18Sgwr# like GENERIC but supports gdb on other machine, i.e.: 51.18Sgwr# % gdb -k netbsd.gdb 61.18Sgwr# (gdb) set remotebaud 19200 71.18Sgwr# (gdb) target remote /dev/ttyb 81.18Sgwr 91.18Sgwrinclude "arch/sun3/conf/std.sun3" 101.18Sgwr 111.18Sgwr# Machines to be supported by this kernel. Note: 121.18Sgwr# The SUN3 and SUN3X options are mutually exclusive! 131.18Sgwr# (Your kernel will only run on one or the other.) 141.18Sgwrmakeoptions MACHTYPE=sun3x 151.18Sgwroptions _SUN3X_ 161.1Sjeremy 171.18Sgwr# options FPU_EMULATE # Every Sun3X has an FPU, right? 181.18Sgwr# options HAVE_IOCACHE # XXX - Not yet supported. 191.1Sjeremy 201.1Sjeremy# Needs to be set per system. i.e change these as you see fit 211.1Sjeremymaxusers 4 221.1Sjeremy 231.1Sjeremy# Standard system options 241.10Sgwroptions KTRACE # system call tracing 251.10Sgwroptions SYSVMSG # System V message queues 261.10Sgwroptions SYSVSEM # System V semaphores 271.10Sgwroptions SYSVSHM # System V shared memory 281.10Sgwr#options SHMMAXPGS=1024 # 1024 pages is the default 291.10Sgwr#options LKM # loadable kernel modules 301.10Sgwr#options INSECURE # disable kernel security level 311.10Sgwr#options UCONSOLE # Allow non-root TIOCCONS 321.1Sjeremy 331.10Sgwr# Which kernel debugger? Uncomment either this: 341.18Sgwr#options DDB 351.1Sjeremy# ... or these for KGDB (gdb remote target) 361.18Sgwrmakeoptions DEBUG="-g" # debugging symbols for gdb 371.18Sgwroptions KGDB 381.18Sgwroptions KGDBDEV=0x0C01 # ttya=0C00 ttyb=0C01 391.10Sgwr 401.10Sgwr# Other debugging options 411.14Slukem#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 421.18Sgwroptions DEBUG # kernel debugging code 431.18Sgwroptions DIAGNOSTIC # extra kernel sanity checking 441.10Sgwr#options KMEMSTATS # kernel memory statistics (vmstat -m) 451.10Sgwr#options PMAP_DEBUG 461.10Sgwr#options SCSIDEBUG 471.9Smjacob#options SCSIVERBOSE # Verbose SCSI errors 481.1Sjeremy 491.10Sgwr# Compatability options 501.10Sgwroptions COMPAT_SUNOS # can run SunOS 4.1.1 executables 511.10Sgwroptions COMPAT_43 # and 4.3BSD and ... 521.13Sgwroptions COMPAT_10 # NetBSD 1.0 531.13Sgwroptions COMPAT_11 # NetBSD 1.1 541.10Sgwroptions COMPAT_12 # NetBSD 1.2 551.16Skleinkoptions COMPAT_13 # NetBSD 1.3 561.10Sgwr 571.1Sjeremy# Filesystem options 581.10Sgwrfile-system FFS # Berkeley Fast Filesystem 591.10Sgwrfile-system NFS # Sun NFS client support 601.7Slukemfile-system CD9660 # ISO 9660 + Rock Ridge file system 611.5Sjeremyfile-system MSDOSFS # MS-DOS FAT file system 621.7Slukemfile-system FDESC # /dev/fd/* 631.7Slukemfile-system KERNFS # /kern 641.7Slukemfile-system NULLFS # loopback file system 651.7Slukemfile-system PROCFS # /proc 661.7Slukemfile-system UNION # union file system 671.7Slukemfile-system MFS # memory-based filesystem 681.1Sjeremy 691.10Sgwroptions FIFO # FIFOs; RECOMMENDED 701.1Sjeremyoptions NFSSERVER # nfs server support 711.10Sgwroptions QUOTA # FFS quotas 721.1Sjeremy 731.1Sjeremy# Networking options 741.1Sjeremyoptions INET # IP prototol stack support 751.10Sgwroptions TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP 761.7Slukem#options GATEWAY # IP packet forwarding 771.10Sgwr#options ISO,TPIP # OSI networking 781.10Sgwr#options EON # OSI tunneling over IP 791.10Sgwr#options CCITT,LLC,HDLC # X.25 801.10Sgwr#options PFIL_HOOKS # pfil(9) packet filter hooks. 811.10Sgwr 821.10Sgwr# Work-around for root on slow servers (insurance...) 831.1Sjeremyoptions NFS_BOOT_RWSIZE=1024 841.18Sgwroptions NFS_BOOT_BOOTPARAM 851.1Sjeremy 861.1Sjeremyconfig netbsd root on ? type ? 871.1Sjeremy 881.18Sgwr# On-board I/O space (required) 891.18Sgwrinclude "arch/sun3/conf/obio.sun3x" 901.18Sgwr 911.18Sgwr# On-board memory (optional) 921.18Sgwr# See frame-buffers 931.18Sgwrobmem0 at mainbus? 941.18Sgwr 951.18Sgwr# VME bus support (optional) 961.18Sgwr# One unit for each address space 971.18Sgwrvme0 at mainbus? # A16/D16 981.18Sgwrvme1 at mainbus? # A16/D32 991.18Sgwrvme2 at mainbus? # A24/D16 1001.18Sgwrvme3 at mainbus? # A24/D32 1011.18Sgwrvme4 at mainbus? # A32/D16 1021.18Sgwrvme5 at mainbus? # A32/D32 1031.18Sgwr 1041.1Sjeremy# 1051.1Sjeremy# Serial ports 1061.1Sjeremy# 1071.11Sgwrzstty0 at zsc1 channel 0 # ttya 1081.11Sgwrzstty1 at zsc1 channel 1 # ttyb 1091.1Sjeremy 1101.11Sgwrkbd0 at zsc0 channel 0 # keyboard 1111.11Sgwrms0 at zsc0 channel 1 # mouse 1121.1Sjeremy 1131.1Sjeremy# 1141.1Sjeremy# Network devices 1151.1Sjeremy# 1161.10Sgwr 1171.18Sgwr# Intel Ethernet (onboard, or VME) 1181.10Sgwrie0 at obio0 addr 0x65000000 ipl 3 1191.12Sgwrie1 at vme2 addr 0xe88000 ipl 3 vect 0x75 1201.1Sjeremy 1211.1Sjeremy# Lance Ethernet (only onboard) 1221.1Sjeremyle0 at obio0 addr 0x65002000 ipl 3 1231.1Sjeremy 1241.1Sjeremy# 1251.1Sjeremy# Disk and tape devices 1261.1Sjeremy# 1271.1Sjeremy 1281.11Sgwr# Emulex SCSI (3/80 only) 1291.6Sgwr# Note the flags on the esp entries below, that work around 1301.6Sgwr# deficiencies in the current driver: 1311.6Sgwr# bits 0-7: disable disconnect/reselect for the corresponding target 1321.6Sgwr# bits 8-15: disable synch negotiation for target [bit-8] 1331.6Sgwr# Note: targets 4-7 have disconnect/reselect enabled on the premise 1341.6Sgwr# that tape devices normally have one of these targets. Tape 1351.6Sgwr# devices should be allowed to disconnect for the SCSI bus 1361.6Sgwr# to operate acceptably. 1371.6Sgwr# 1381.6Sgwresp0 at obio0 addr 0x66000000 ipl 2 flags 0xff0f 1391.5Sjeremy 1401.5Sjeremy# Floppy drive 1411.5Sjeremyfdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40 1421.5Sjeremyfd0 at fdc0 # First (and only) floppy drive. 1431.12Sgwr 1441.12Sgwr# Sun3 "si" SCSI controller (NCR 5380) 1451.18Sgwr# See GENERIC for the flags description. 1461.18Sgwrsi0 at vme2 addr 0x200000 ipl 2 vect 0x40 1471.18Sgwrsi1 at vme2 addr 0x204000 ipl 2 vect 0x41 1481.18Sgwr 1491.18Sgwr# Xylogics 450/451 controllers (VME A16/D16) 1501.18Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48 1511.18Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49 1521.18Sgwrxy* at xyc? drive ? 1531.18Sgwr 1541.18Sgwr# Xylogics 7053 controllers (VME A16/D32) 1551.18Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44 1561.18Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45 1571.18Sgwrxd* at xdc? drive ? 1581.18Sgwr 1591.18Sgwr# Xylogics 472 tape controllers? 1601.1Sjeremy 1611.1Sjeremy# 1621.1Sjeremy# Frame buffer devices 1631.1Sjeremy# 1641.1Sjeremy 1651.1Sjeremy# bwtwo - Monochrome frame buffer. 1661.3Sjeremybwtwo0 at obmem0 addr 0x50400000 ipl 4 1671.1Sjeremy 1681.1Sjeremy# 1691.1Sjeremy# SCSI infrastructure 1701.1Sjeremy# 1711.1Sjeremyscsibus* at scsi? 1721.1Sjeremy 1731.1Sjeremysd* at scsibus? target ? lun ? # SCSI disks 1741.1Sjeremyst* at scsibus? target ? lun ? # SCSI tapes 1751.1Sjeremycd* at scsibus? target ? lun ? # SCSI CD-ROMs 1761.1Sjeremych* at scsibus? target ? lun ? # SCSI changer devices 1771.1Sjeremyss* at scsibus? target ? lun ? # SCSI scanners 1781.1Sjeremyuk* at scsibus? target ? lun ? # unknown SCSI devices 1791.1Sjeremy 1801.1Sjeremy# Memory-disk drivers 1811.7Slukempseudo-device md 2 1821.1Sjeremy 1831.1Sjeremy# Misc. 1841.7Slukempseudo-device loop 1 # network loopback 1851.7Slukempseudo-device bpfilter 8 # packet filter 1861.7Slukempseudo-device sl 2 # CSLIP 1871.7Slukempseudo-device ppp 2 # PPP 1881.7Slukempseudo-device tun 2 # network tunneling over tty 1891.1Sjeremy#pseudo-device ipfilter # ip filter 1901.15Sfair# rnd is EXPERIMENTAL 1911.15Sfair#pseudo-device rnd # /dev/random and in-kernel generator 1921.1Sjeremy 1931.18Sgwrpseudo-device pty 32 # pseudo-terminals 1941.7Slukem#pseudo-device vnd 4 # paging to files 1951.7Slukem#pseudo-device ccd 4 # concatenated disks 196