GENERIC revision 1.15
1# $NetBSD: GENERIC,v 1.15 2002/04/12 08:11:22 gmcgarry Exp $ 2# 3# GENERIC machine description file 4# 5# This machine description file is used to generate the default NetBSD 6# kernel. The generic kernel does not include all options, subsystems 7# and device drivers, but should be useful for most applications. 8# 9# The machine description file can be customised for your specific 10# machine to reduce the kernel size and improve its performance. 11# 12# For further information on compiling NetBSD kernels, see the config(8) 13# man page. 14# 15# For further information on hardware support for this architecture, see 16# the intro(4) man page. For further information about kernel options 17# for this architecture, see the options(4) man page. For an explanation 18# of each device driver in this file see the section 4 man page for the 19# device. 20 21# Supports Sun2 (2/120, 2/170, 2/50, ...) 22# Supports root on: ie0, sd*, ... 23 24include "arch/sun2/conf/std.sun2" 25 26#ident "GENERIC-$Revision: 1.15 $" 27 28# Machines to be supported by this kernel 29#options FPU_EMULATE 30 31# Needs to be set per system. i.e change these as you see fit 32maxusers 8 33 34# Standard system options 35options KTRACE # system call tracing 36options SYSVMSG # System V message queues 37options SYSVSEM # System V semaphores 38#options SEMMNI=10 # number of semaphore identifiers 39#options SEMMNS=60 # number of semaphores in system 40#options SEMUME=10 # max number of undo entries per process 41#options SEMMNU=30 # number of undo structures in system 42options SYSVSHM # System V shared memory 43#options SHMMAXPGS=1024 # 1024 pages is the default 44options LKM # loadable kernel modules 45#options INSECURE # disable kernel security level 46#options UCONSOLE # Allow non-root TIOCCONS 47#options USERCONF # userconf(4) support 48#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 49 50# Which kernel debugger? Uncomment either this: 51options DDB 52# ... or these for KGDB (gdb remote target) 53#makeoptions DEBUG="-g" # debugging symbols for gdb 54#options KGDB 55#options KGDB_DEV=0x0C00 # ttya=0C00 ttyb=0C01 56 57# Other debugging options 58#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 59#options DEBUG # kernel debugging code 60#options DIAGNOSTIC # extra kernel sanity checking 61#options KMEMSTATS # kernel memory statistics (vmstat -m) 62#options PMAP_DEBUG 63#options SCSIDEBUG 64#options SCSIVERBOSE # Verbose SCSI errors 65 66# Compatibility options 67#options COMPAT_SUNOS # can run SunOS 4.1.1 executables 68options COMPAT_43 # and 4.3BSD and ... 69options COMPAT_AOUT_M68K # support for NetBSD a.out executables 70#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 71options EXEC_AOUT # support for a.out executables 72 73# Filesystem options 74file-system FFS # Berkeley Fast Filesystem 75file-system NFS # Sun NFS client support 76file-system CD9660 # ISO 9660 + Rock Ridge file system 77file-system FDESC # /dev/fd/* 78file-system KERNFS # /kern 79file-system NULLFS # loopback file system 80file-system OVERLAY # overlay file system 81#file-system PROCFS # /proc 82file-system UNION # union file system 83file-system MFS # memory-based filesystem 84 85options NFSSERVER # nfs server support 86options QUOTA # FFS quotas 87#options FFS_EI # FFS Endian Independant support 88options SOFTDEP # FFS soft updates support. 89#options NFS_V2_ONLY # Exclude NFS3 and NQNFS code to save space 90options VNODE_OP_NOINLINE # Save space by not inlining vnode op calls 91 92# Networking options 93options INET # IP prototol stack support 94#options INET6 # IPV6 95#options IPSEC # IP security 96#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 97#options IPSEC_DEBUG # debug for IP security 98#options GATEWAY # IP packet forwarding 99#options ISO,TPIP # OSI networking 100#options EON # OSI tunneling over IP 101#options CCITT,LLC,HDLC # X.25 102options PFIL_HOOKS # pfil(9) packet filter hooks. 103#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 104 105# Work-around for root on slow servers (insurance...) 106options NFS_BOOT_RWSIZE=1024 107options NFS_BOOT_BOOTPARAM 108 109config netbsd root on ? type ? 110 111#### Main bus. 112mainbus0 at root 113 114#### Bus types. 115 116obio0 at mainbus? # all Sun-2 117obmem0 at mainbus? # all Sun-2 118mbmem0 at mainbus? # 2/120, 2/170 119mbio0 at mainbus? # 2/120, 2/170 120sun68kvme0 at mainbus? # 2/50, 2/130, 2/160 121vme0 at sun68kvme0 # mi VME attachment 122 123#### Standard system devices. 124 125## The AM9513 clock chip. 126clock0 at obio0 addr 0x002800 # 2/120, 2/170 127clock0 at obio0 addr 0x7f2800 # 2/50, 2/130, 2/160 128 129## The MM58167 time-of-day chip. 130tod0 at obio0 addr 0x003800 # 2/120, 2/170 131tod0 at vme0 addr 0x200800 # 2/50, 2/130, 2/160 132 133#### Serial port configuration. 134 135## Zilog 8530 serial chips. Each has two channels. 136## zs0 is ttya and ttyb. zs1 is the keyboard and mouse. 137## zs0 is REQUIRED to use KGDB. 138zs0 at obio0 addr 0x002000 # 2/120, 2/170 139zs0 at obio0 addr 0x7f2000 # 2/50 140zs1 at obmem0 addr 0x780000 # 2/120, 2/170 141zs1 at obio0 addr 0x7f1800 # 2/50 142zs2 at mbmem0 addr 0x080800 # 2/120, 2/170 (first sc SCSI) 143zs3 at mbmem0 addr 0x081000 # 2/120, 2/170 (first sc SCSI) 144zs4 at mbmem0 addr 0x084800 # 2/120, 2/170 (second sc SCSI) 145zs5 at mbmem0 addr 0x085000 # 2/120, 2/170 (second sc SCSI) 146zstty* at zs? channel ? # ttya 147kbd0 at zstty? # keyboard 148ms0 at zstty? # mouse 149 150#### Disk controllers and disks. 151 152## PAL+logic-based "Sun SCSI 2" Multibus/VME SCSI controller. 153## This driver has several flags which may be enabled using 154## the "flags" directive. Valid flags are: 155## 156## 0x0ff Set (1<<target) to disable parity checking 157## 0x100 Set this bit to disable DMA interrupts (poll) 158## 0x200 Set this bit to disable DMA entirely (use PIO) 159## 160## For example: "flags 0x10f" would disable DMA interrupts, 161## and disable parity for targets 0-3 162 163sc0 at mbmem0 addr 0x80000 ipl 2 flags 0xff 164sc0 at vme0 addr 0x200000 irq 2 vect 0x40 flags 0xff 165sc1 at mbmem0 addr 0x84000 ipl 2 flags 0xff 166 167## NCR5380-based "Sun SCSI 3" VME SCSI controller. 168## This driver has several flags which may be enabled by OR'ing 169## the values and using the "flags" directive. 170## Valid flags are: 171## 172## 0x01 Use DMA (may be polled) 173## 0x02 Use DMA completion interrupts 174## 0x04 Allow disconnect/reselect 175## 176## E.g. the following would enable DMA, interrupts, and reselect: 177## si0 at vme0 addr 0x200000 ipl 3 vect 0x40 flags 0x07 178## 179## By default, DMA is enabled in the driver. 180 181si0 at vme0 addr 0x200000 irq 2 vect 0x40 182 183## These entries find devices on all SCSI busses and assign 184## unit numbers dynamically. 185scsibus* at sc? 186scsibus* at si? 187sd* at scsibus? target ? lun ? # SCSI disks 188st* at scsibus? target ? lun ? # SCSI tapes 189cd* at scsibus? target ? lun ? # SCSI CD-ROMs 190#ch* at scsibus? target ? lun ? # SCSI changer devices 191#ss* at scsibus? target ? lun ? # SCSI scanners 192#ses* at scsibus? target ? lun ? # SCSI SES/SAF-TE 193#uk* at scsibus? target ? lun ? # unknown SCSI 194 195# support old SCSI devices that don't understand the INQUIRY command 196options SCSI_OLD_NOINQUIRY 197 198## Xylogics 450 or 451 Multibus/VME SMD disk controllers and disks. 199#xyc0 at mbio0 addr 0xee40 ipl 2 200xyc0 at vme0 addr 0xee40 irq 2 vect 0x48 201#xyc1 at mbio0 addr 0xee48 ipl 2 202xyc1 at vme0 addr 0xee48 irq 2 vect 0x49 203xy* at xyc? drive ? 204 205## Memory-disk device. 206pseudo-device md 2 207 208#### Network interfaces. 209 210## Intel Ethernet (onboard, or Multibus/VME) 211ie0 at obio0 addr 0x7f0800 ipl 3 # 2/50 212ie0 at mbmem0 addr 0x88000 ipl 3 213ie1 at mbmem0 addr 0x8c000 ipl 3 214## VME: the first [addr,len] pair specifies the device registers; 215## the second pair specifies the on-board memory buffer 216ie1 at vme0 addr 0xe88000,0xe00000 len -1,0x40000 irq 3 vect 0x75 217 218## 3Com Ethernet (Multibus only) 219ec0 at mbmem0 addr 0xe0000 ipl 3 220ec1 at mbmem0 addr 0xe2000 ipl 3 221 222## Frame buffers. 223 224## Sun "bwtwo" black and white framebuffer. 225bwtwo0 at obmem0 addr 0x700000 # 2/120, 2/170 226bwtwo0 at obio0 addr 0x0 # 2/50 227 228## PROM console driver -- if all else fails 229pcons0 at mainbus0 # PROM console 230 231#### Miscellaneous. 232pseudo-device loop 1 # network loopback 233#pseudo-device bpfilter 8 # packet filter 234#pseudo-device bridge # simple inter-network bridging 235#pseudo-device sl 2 # CSLIP 236#pseudo-device ppp 2 # PPP 237#pseudo-device pppoe # PPP over Ethernet (RFC 2516) 238#pseudo-device tun 2 # network tunneling over tty 239#pseudo-device gre 2 # generic L3 over IP tunnel 240#pseudo-device ipfilter # ip filter 241#pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933) 242#pseudo-device faith 1 # IPv[46] tcp relay translation i/f 243#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation 244# rnd is EXPERIMENTAL 245#pseudo-device rnd # /dev/random and in-kernel generator 246 247pseudo-device pty 32 # pseudo-terminals 248#pseudo-device vnd 4 # paging to files 249#pseudo-device ccd 4 # concatenated disks 250#pseudo-device raid 4 # RAIDframe disk driver 251#options RAID_AUTOCONFIG # auto-configuration of RAID components 252# Options to enable various other RAIDframe RAID types. 253# options RF_INCLUDE_EVENODD=1 254# options RF_INCLUDE_RAID5_RS=1 255# options RF_INCLUDE_PARITYLOGGING=1 256# options RF_INCLUDE_CHAINDECLUSTER=1 257# options RF_INCLUDE_INTERDECLUSTER=1 258# options RF_INCLUDE_PARITY_DECLUSTERING=1 259# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 260