KGDB3X revision 1.33
11.33Satatat# $NetBSD: KGDB3X,v 1.33 2002/04/25 15:06:39 atatat 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.33Satatat 111.33Satatat#options INCLUDE_CONFIG_FILE # embed config file in kernel binary 121.18Sgwr 131.19Sgwr# Machines to be supported by this kernel 141.19Sgwr# options FPU_EMULATE # XXX - Ever needed? 151.18Sgwr# options HAVE_IOCACHE # XXX - Not yet supported. 161.1Sjeremy 171.1Sjeremy# Needs to be set per system. i.e change these as you see fit 181.1Sjeremymaxusers 4 191.1Sjeremy 201.1Sjeremy# Standard system options 211.10Sgwroptions KTRACE # system call tracing 221.10Sgwroptions SYSVMSG # System V message queues 231.10Sgwroptions SYSVSEM # System V semaphores 241.10Sgwroptions SYSVSHM # System V shared memory 251.10Sgwr#options SHMMAXPGS=1024 # 1024 pages is the default 261.10Sgwr#options LKM # loadable kernel modules 271.10Sgwr#options INSECURE # disable kernel security level 281.10Sgwr#options UCONSOLE # Allow non-root TIOCCONS 291.32Sgmcgarry#options USERCONF # userconf(4) support 301.31Sjdolecek#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 311.1Sjeremy 321.10Sgwr# Which kernel debugger? Uncomment either this: 331.18Sgwr#options DDB 341.1Sjeremy# ... or these for KGDB (gdb remote target) 351.30Slukemmakeoptions DEBUG="-g" # debugging symbols for gdb 361.18Sgwroptions KGDB 371.29Slukemoptions KGDB_DEV=0x0C01 # ttya=0C00 ttyb=0C01 381.10Sgwr 391.10Sgwr# Other debugging options 401.14Slukem#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 411.18Sgwroptions DEBUG # kernel debugging code 421.18Sgwroptions DIAGNOSTIC # extra kernel sanity checking 431.10Sgwr#options KMEMSTATS # kernel memory statistics (vmstat -m) 441.10Sgwr#options PMAP_DEBUG 451.10Sgwr#options SCSIDEBUG 461.9Smjacob#options SCSIVERBOSE # Verbose SCSI errors 471.1Sjeremy 481.27Swiz# Compatibility options 491.10Sgwroptions COMPAT_SUNOS # can run SunOS 4.1.1 executables 501.10Sgwroptions COMPAT_43 # and 4.3BSD and ... 511.13Sgwroptions COMPAT_10 # NetBSD 1.0 521.13Sgwroptions COMPAT_11 # NetBSD 1.1 531.10Sgwroptions COMPAT_12 # NetBSD 1.2 541.16Skleinkoptions COMPAT_13 # NetBSD 1.3 551.23Saugustssoptions COMPAT_14 # NetBSD 1.4 561.26Schsoptions COMPAT_AOUT_M68K # support for NetBSD a.out executables 571.26Schs#options COMPAT_LINUX # can run Linux/m68k executables 581.26Schsoptions EXEC_AOUT # support for a.out executables 591.28Sabs#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 601.10Sgwr 611.1Sjeremy# Filesystem options 621.10Sgwrfile-system FFS # Berkeley Fast Filesystem 631.10Sgwrfile-system NFS # Sun NFS client support 641.7Slukemfile-system CD9660 # ISO 9660 + Rock Ridge file system 651.5Sjeremyfile-system MSDOSFS # MS-DOS FAT file system 661.7Slukemfile-system FDESC # /dev/fd/* 671.7Slukemfile-system KERNFS # /kern 681.7Slukemfile-system NULLFS # loopback file system 691.7Slukemfile-system PROCFS # /proc 701.7Slukemfile-system UNION # union file system 711.7Slukemfile-system MFS # memory-based filesystem 721.1Sjeremy 731.1Sjeremyoptions NFSSERVER # nfs server support 741.10Sgwroptions QUOTA # FFS quotas 751.1Sjeremy 761.1Sjeremy# Networking options 771.1Sjeremyoptions INET # IP prototol stack support 781.7Slukem#options GATEWAY # IP packet forwarding 791.10Sgwr#options ISO,TPIP # OSI networking 801.10Sgwr#options EON # OSI tunneling over IP 811.10Sgwr#options CCITT,LLC,HDLC # X.25 821.10Sgwr#options PFIL_HOOKS # pfil(9) packet filter hooks. 831.28Sabs#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 841.10Sgwr 851.10Sgwr# Work-around for root on slow servers (insurance...) 861.1Sjeremyoptions NFS_BOOT_RWSIZE=1024 871.18Sgwroptions NFS_BOOT_BOOTPARAM 881.1Sjeremy 891.1Sjeremyconfig netbsd root on ? type ? 901.1Sjeremy 911.18Sgwr# On-board I/O space (required) 921.18Sgwrinclude "arch/sun3/conf/obio.sun3x" 931.18Sgwr 941.18Sgwr# On-board memory (optional) 951.18Sgwr# See frame-buffers 961.18Sgwrobmem0 at mainbus? 971.18Sgwr 981.18Sgwr# VME bus support (optional) 991.18Sgwr# One unit for each address space 1001.18Sgwrvme0 at mainbus? # A16/D16 1011.18Sgwrvme1 at mainbus? # A16/D32 1021.18Sgwrvme2 at mainbus? # A24/D16 1031.18Sgwrvme3 at mainbus? # A24/D32 1041.18Sgwrvme4 at mainbus? # A32/D16 1051.18Sgwrvme5 at mainbus? # A32/D32 1061.18Sgwr 1071.1Sjeremy# 1081.1Sjeremy# Serial ports 1091.1Sjeremy# 1101.11Sgwrzstty0 at zsc1 channel 0 # ttya 1111.11Sgwrzstty1 at zsc1 channel 1 # ttyb 1121.1Sjeremy 1131.11Sgwrkbd0 at zsc0 channel 0 # keyboard 1141.11Sgwrms0 at zsc0 channel 1 # mouse 1151.1Sjeremy 1161.1Sjeremy# 1171.1Sjeremy# Network devices 1181.1Sjeremy# 1191.10Sgwr 1201.18Sgwr# Intel Ethernet (onboard, or VME) 1211.10Sgwrie0 at obio0 addr 0x65000000 ipl 3 1221.30Slukemie1 at vme2 addr 0xe88000 ipl 3 vect 0x75 1231.1Sjeremy 1241.1Sjeremy# Lance Ethernet (only onboard) 1251.1Sjeremyle0 at obio0 addr 0x65002000 ipl 3 1261.1Sjeremy 1271.1Sjeremy# 1281.1Sjeremy# Disk and tape devices 1291.1Sjeremy# 1301.1Sjeremy 1311.11Sgwr# Emulex SCSI (3/80 only) 1321.22Sgwr# Both `dma' and `esp' are needed. 1331.20Sgwr# See GENERIC3X for the flags description. 1341.22Sgwrdma0 at obio0 addr 0x66001000 ipl 2 1351.6Sgwresp0 at obio0 addr 0x66000000 ipl 2 flags 0xff0f 1361.5Sjeremy 1371.5Sjeremy# Floppy drive 1381.5Sjeremyfdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40 1391.30Slukemfd0 at fdc0 # First (and only) floppy drive. 1401.12Sgwr 1411.12Sgwr# Sun3 "si" SCSI controller (NCR 5380) 1421.20Sgwr# See GENERIC3X for the flags description. 1431.30Slukemsi0 at vme2 addr 0x200000 ipl 2 vect 0x40 1441.30Slukemsi1 at vme2 addr 0x204000 ipl 2 vect 0x41 1451.18Sgwr 1461.18Sgwr# Xylogics 450/451 controllers (VME A16/D16) 1471.18Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48 1481.18Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49 1491.18Sgwrxy* at xyc? drive ? 1501.18Sgwr 1511.18Sgwr# Xylogics 7053 controllers (VME A16/D32) 1521.18Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44 1531.18Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45 1541.18Sgwrxd* at xdc? drive ? 1551.18Sgwr 1561.18Sgwr# Xylogics 472 tape controllers? 1571.1Sjeremy 1581.1Sjeremy# 1591.1Sjeremy# Frame buffer devices 1601.1Sjeremy# 1611.1Sjeremy 1621.19Sgwr# P4 Monochrome frame buffer. 1631.30Slukembwtwo0 at obmem0 addr 0x50300000 1641.19Sgwr 1651.19Sgwr# P4 8-bit color frame buffer 1661.19Sgwrcgfour0 at obmem0 addr 0x50300000 1671.19Sgwr 1681.19Sgwr# P4 accelerated 8-bit color frame buffer 1691.22Sgwr# cgsix0 at obmem0 addr 0x50000000 1701.19Sgwr 1711.19Sgwr# P4 24-bit color frame buffer 1721.19Sgwr# cgeight0 at obmem0 addr 0x50300000 1731.19Sgwr 1741.19Sgwr# Sun-3 color board, or CG5 8-bit frame buffer (VME A24/D16). 1751.19Sgwr# This driver is going to need work in its mmap function. 1761.19Sgwr# cgtwo0 at vme2 addr 0x400000 ipl 4 vect 0xA8 1771.19Sgwr 1781.19Sgwr# Support for the CG9 24-bit frame buffer (VME A32/D32). 1791.19Sgwr# cgnine0 at vme5 addr 0x08000000 ipl 4 vect 0xAA 1801.1Sjeremy 1811.1Sjeremy# 1821.1Sjeremy# SCSI infrastructure 1831.1Sjeremy# 1841.1Sjeremyscsibus* at scsi? 1851.1Sjeremy 1861.1Sjeremysd* at scsibus? target ? lun ? # SCSI disks 1871.1Sjeremyst* at scsibus? target ? lun ? # SCSI tapes 1881.1Sjeremycd* at scsibus? target ? lun ? # SCSI CD-ROMs 1891.1Sjeremych* at scsibus? target ? lun ? # SCSI changer devices 1901.1Sjeremyss* at scsibus? target ? lun ? # SCSI scanners 1911.1Sjeremyuk* at scsibus? target ? lun ? # unknown SCSI devices 1921.1Sjeremy 1931.1Sjeremy# Memory-disk drivers 1941.7Slukempseudo-device md 2 1951.1Sjeremy 1961.1Sjeremy# Misc. 1971.7Slukempseudo-device loop 1 # network loopback 1981.7Slukempseudo-device bpfilter 8 # packet filter 1991.7Slukempseudo-device sl 2 # CSLIP 2001.7Slukempseudo-device ppp 2 # PPP 2011.7Slukempseudo-device tun 2 # network tunneling over tty 2021.22Sgwr#pseudo-device gre 2 # generic L3 over IP tunnel 2031.1Sjeremy#pseudo-device ipfilter # ip filter 2041.15Sfair#pseudo-device rnd # /dev/random and in-kernel generator 2051.1Sjeremy 2061.24Sjdolecekpseudo-device pty # pseudo-terminals 2071.7Slukem#pseudo-device vnd 4 # paging to files 2081.7Slukem#pseudo-device ccd 4 # concatenated disks 209