KGDB3X revision 1.22
11.22Sgwr# $NetBSD: KGDB3X,v 1.22 1999/04/08 06:49:54 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.19Sgwrinclude "arch/sun3/conf/std.sun3x" 101.18Sgwr 111.19Sgwr# Machines to be supported by this kernel 121.19Sgwr# options FPU_EMULATE # XXX - Ever needed? 131.18Sgwr# options HAVE_IOCACHE # XXX - Not yet supported. 141.1Sjeremy 151.1Sjeremy# Needs to be set per system. i.e change these as you see fit 161.1Sjeremymaxusers 4 171.1Sjeremy 181.1Sjeremy# Standard system options 191.10Sgwroptions KTRACE # system call tracing 201.10Sgwroptions SYSVMSG # System V message queues 211.10Sgwroptions SYSVSEM # System V semaphores 221.10Sgwroptions SYSVSHM # System V shared memory 231.10Sgwr#options SHMMAXPGS=1024 # 1024 pages is the default 241.10Sgwr#options LKM # loadable kernel modules 251.10Sgwr#options INSECURE # disable kernel security level 261.10Sgwr#options UCONSOLE # Allow non-root TIOCCONS 271.1Sjeremy 281.10Sgwr# Which kernel debugger? Uncomment either this: 291.18Sgwr#options DDB 301.1Sjeremy# ... or these for KGDB (gdb remote target) 311.18Sgwrmakeoptions DEBUG="-g" # debugging symbols for gdb 321.18Sgwroptions KGDB 331.18Sgwroptions KGDBDEV=0x0C01 # ttya=0C00 ttyb=0C01 341.10Sgwr 351.10Sgwr# Other debugging options 361.14Slukem#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 371.18Sgwroptions DEBUG # kernel debugging code 381.18Sgwroptions DIAGNOSTIC # extra kernel sanity checking 391.10Sgwr#options KMEMSTATS # kernel memory statistics (vmstat -m) 401.10Sgwr#options PMAP_DEBUG 411.10Sgwr#options SCSIDEBUG 421.9Smjacob#options SCSIVERBOSE # Verbose SCSI errors 431.1Sjeremy 441.10Sgwr# Compatability options 451.10Sgwroptions COMPAT_SUNOS # can run SunOS 4.1.1 executables 461.10Sgwroptions COMPAT_43 # and 4.3BSD and ... 471.13Sgwroptions COMPAT_10 # NetBSD 1.0 481.13Sgwroptions COMPAT_11 # NetBSD 1.1 491.10Sgwroptions COMPAT_12 # NetBSD 1.2 501.16Skleinkoptions COMPAT_13 # NetBSD 1.3 511.10Sgwr 521.1Sjeremy# Filesystem options 531.10Sgwrfile-system FFS # Berkeley Fast Filesystem 541.10Sgwrfile-system NFS # Sun NFS client support 551.7Slukemfile-system CD9660 # ISO 9660 + Rock Ridge file system 561.5Sjeremyfile-system MSDOSFS # MS-DOS FAT file system 571.7Slukemfile-system FDESC # /dev/fd/* 581.7Slukemfile-system KERNFS # /kern 591.7Slukemfile-system NULLFS # loopback file system 601.7Slukemfile-system PROCFS # /proc 611.7Slukemfile-system UNION # union file system 621.7Slukemfile-system MFS # memory-based filesystem 631.1Sjeremy 641.1Sjeremyoptions NFSSERVER # nfs server support 651.10Sgwroptions QUOTA # FFS quotas 661.1Sjeremy 671.1Sjeremy# Networking options 681.1Sjeremyoptions INET # IP prototol stack support 691.10Sgwroptions TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP 701.7Slukem#options GATEWAY # IP packet forwarding 711.10Sgwr#options ISO,TPIP # OSI networking 721.10Sgwr#options EON # OSI tunneling over IP 731.10Sgwr#options CCITT,LLC,HDLC # X.25 741.10Sgwr#options PFIL_HOOKS # pfil(9) packet filter hooks. 751.10Sgwr 761.10Sgwr# Work-around for root on slow servers (insurance...) 771.1Sjeremyoptions NFS_BOOT_RWSIZE=1024 781.18Sgwroptions NFS_BOOT_BOOTPARAM 791.1Sjeremy 801.1Sjeremyconfig netbsd root on ? type ? 811.1Sjeremy 821.18Sgwr# On-board I/O space (required) 831.18Sgwrinclude "arch/sun3/conf/obio.sun3x" 841.18Sgwr 851.18Sgwr# On-board memory (optional) 861.18Sgwr# See frame-buffers 871.18Sgwrobmem0 at mainbus? 881.18Sgwr 891.18Sgwr# VME bus support (optional) 901.18Sgwr# One unit for each address space 911.18Sgwrvme0 at mainbus? # A16/D16 921.18Sgwrvme1 at mainbus? # A16/D32 931.18Sgwrvme2 at mainbus? # A24/D16 941.18Sgwrvme3 at mainbus? # A24/D32 951.18Sgwrvme4 at mainbus? # A32/D16 961.18Sgwrvme5 at mainbus? # A32/D32 971.18Sgwr 981.1Sjeremy# 991.1Sjeremy# Serial ports 1001.1Sjeremy# 1011.11Sgwrzstty0 at zsc1 channel 0 # ttya 1021.11Sgwrzstty1 at zsc1 channel 1 # ttyb 1031.1Sjeremy 1041.11Sgwrkbd0 at zsc0 channel 0 # keyboard 1051.11Sgwrms0 at zsc0 channel 1 # mouse 1061.1Sjeremy 1071.1Sjeremy# 1081.1Sjeremy# Network devices 1091.1Sjeremy# 1101.10Sgwr 1111.18Sgwr# Intel Ethernet (onboard, or VME) 1121.10Sgwrie0 at obio0 addr 0x65000000 ipl 3 1131.12Sgwrie1 at vme2 addr 0xe88000 ipl 3 vect 0x75 1141.1Sjeremy 1151.1Sjeremy# Lance Ethernet (only onboard) 1161.1Sjeremyle0 at obio0 addr 0x65002000 ipl 3 1171.1Sjeremy 1181.1Sjeremy# 1191.1Sjeremy# Disk and tape devices 1201.1Sjeremy# 1211.1Sjeremy 1221.11Sgwr# Emulex SCSI (3/80 only) 1231.22Sgwr# Both `dma' and `esp' are needed. 1241.20Sgwr# See GENERIC3X for the flags description. 1251.22Sgwrdma0 at obio0 addr 0x66001000 ipl 2 1261.6Sgwresp0 at obio0 addr 0x66000000 ipl 2 flags 0xff0f 1271.5Sjeremy 1281.5Sjeremy# Floppy drive 1291.5Sjeremyfdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40 1301.5Sjeremyfd0 at fdc0 # First (and only) floppy drive. 1311.12Sgwr 1321.12Sgwr# Sun3 "si" SCSI controller (NCR 5380) 1331.20Sgwr# See GENERIC3X for the flags description. 1341.18Sgwrsi0 at vme2 addr 0x200000 ipl 2 vect 0x40 1351.18Sgwrsi1 at vme2 addr 0x204000 ipl 2 vect 0x41 1361.18Sgwr 1371.18Sgwr# Xylogics 450/451 controllers (VME A16/D16) 1381.18Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48 1391.18Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49 1401.18Sgwrxy* at xyc? drive ? 1411.18Sgwr 1421.18Sgwr# Xylogics 7053 controllers (VME A16/D32) 1431.18Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44 1441.18Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45 1451.18Sgwrxd* at xdc? drive ? 1461.18Sgwr 1471.18Sgwr# Xylogics 472 tape controllers? 1481.1Sjeremy 1491.1Sjeremy# 1501.1Sjeremy# Frame buffer devices 1511.1Sjeremy# 1521.1Sjeremy 1531.19Sgwr# P4 Monochrome frame buffer. 1541.19Sgwrbwtwo0 at obmem0 addr 0x50300000 1551.19Sgwr 1561.19Sgwr# P4 8-bit color frame buffer 1571.19Sgwrcgfour0 at obmem0 addr 0x50300000 1581.19Sgwr 1591.19Sgwr# P4 accelerated 8-bit color frame buffer 1601.22Sgwr# cgsix0 at obmem0 addr 0x50000000 1611.19Sgwr 1621.19Sgwr# P4 24-bit color frame buffer 1631.19Sgwr# cgeight0 at obmem0 addr 0x50300000 1641.19Sgwr 1651.19Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16). 1661.19Sgwr# This driver is going to need work in its mmap function. 1671.19Sgwr# cgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8 1681.19Sgwr 1691.19Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32). 1701.19Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA 1711.1Sjeremy 1721.1Sjeremy# 1731.1Sjeremy# SCSI infrastructure 1741.1Sjeremy# 1751.1Sjeremyscsibus* at scsi? 1761.1Sjeremy 1771.1Sjeremysd* at scsibus? target ? lun ? # SCSI disks 1781.1Sjeremyst* at scsibus? target ? lun ? # SCSI tapes 1791.1Sjeremycd* at scsibus? target ? lun ? # SCSI CD-ROMs 1801.1Sjeremych* at scsibus? target ? lun ? # SCSI changer devices 1811.1Sjeremyss* at scsibus? target ? lun ? # SCSI scanners 1821.1Sjeremyuk* at scsibus? target ? lun ? # unknown SCSI devices 1831.1Sjeremy 1841.1Sjeremy# Memory-disk drivers 1851.7Slukempseudo-device md 2 1861.1Sjeremy 1871.1Sjeremy# Misc. 1881.7Slukempseudo-device loop 1 # network loopback 1891.7Slukempseudo-device bpfilter 8 # packet filter 1901.7Slukempseudo-device sl 2 # CSLIP 1911.7Slukempseudo-device ppp 2 # PPP 1921.7Slukempseudo-device tun 2 # network tunneling over tty 1931.22Sgwr#pseudo-device gre 2 # generic L3 over IP tunnel 1941.1Sjeremy#pseudo-device ipfilter # ip filter 1951.15Sfair# rnd is EXPERIMENTAL 1961.15Sfair#pseudo-device rnd # /dev/random and in-kernel generator 1971.1Sjeremy 1981.18Sgwrpseudo-device pty 32 # pseudo-terminals 1991.7Slukem#pseudo-device vnd 4 # paging to files 2001.7Slukem#pseudo-device ccd 4 # concatenated disks 201