GENERIC revision 1.74
1# $NetBSD: GENERIC,v 1.74 1999/01/13 20:35:30 pk Exp $ 2 3include "arch/sparc/conf/std.sparc" 4 5maxusers 32 6 7## System kernel configuration. See options(4) for more detail. 8 9 10# Options for variants of the Sun SPARC architecure. 11# We currently support three architecture types; at least one is required. 12options SUN4 # sun4/100, sun4/200, sun4/300 13options SUN4C # sun4c - SS1, 1+, 2, ELC, SLC, IPC, IPX, etc. 14options SUN4M # sun4m - SS10, SS20, Classic, etc. 15 16#options SUN4_MMU3L # 3-level MMU on sun4/400; (incomplete) 17 18## System options specific to the sparc machine type 19 20# Blink the power LED on some machines to indicate the system load. 21#options BLINK 22 23## Use a faster console than the PROM's slow drawing routines. Not needed 24## for headless (no framebuffer) machines. 25options RASTERCONSOLE # fast rasterop console 26 27 28#### System options that are the same for all ports 29 30## Root device configuration: change the ?'s if you are going to use a 31## nonstandard root partition (other than where the kernel is booted from) 32## and/or nonstandard root type (not ffs or nfs). Normally this can be 33## automagically determined at boot time. 34 35config netbsd root on ? type ? 36 37## System call tracing (see ktrace(1)). 38options KTRACE 39 40## Collect statistics on kernel malloc's and free's. This does have a 41## significant performance hit on slower machines, so it is intended for 42## diagnostic use only. 43#options KMEMSTATS 44 45## System V compatible IPC subsystem. (msgctl(2), semctl(2), and shmctl(2)) 46options SYSVMSG # System V message queues 47options SYSVSEM # System V semaphores 48options SYSVSHM # System V shared memory 49#options SHMMAXPGS=1024 # 1024 pages is the default 50 51## Loadable kernel module support; still under development. 52options LKM 53 54## NFS boot options; default on sparc is the bootparam protocol 55options NFS_BOOT_BOOTPARAM 56#options NFS_BOOT_BOOTP 57#options NFS_BOOT_DHCP 58 59#### Debugging options 60 61## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at 62## serial console break or keyboard reset, where the PROM would normally 63## intercept. DDB_HISTORY_SIZE adds up/down arrow command history. 64#options DDB # kernel dynamic debugger 65#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 66#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic' 67 68## You may also use gdb, on another computer connected to this machine over 69## a serial port. Both KGDBDEV and KGDBRATE should be specified; KGDBDEV is 70## a dev_t encoded device number of the serial port to use. 71## (0xc01 = ttya, 0xc02 = ttyb.) 72#options KGDB # support for kernel gdb 73#options KGDBDEV=0xc01 # kgdb device number (this sample is `ttyb') 74#options KGDBRATE=38400 # baud rate 75 76 77## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file), 78## such that gdb(1) can be used on a kernel coredump. 79 80#makeoptions DEBUG="-g" 81 82 83## Adds code to the kernel that does internal consistency checks, and will 84## cause the kernel to panic if corruption of internal data structures 85## is detected. 86#options DIAGNOSTIC # extra kernel sanity checking 87 88## Enable (possibly expensive) debugging code that may also display messages 89## on the system console 90#options DEBUG 91 92## Make SCSI error messages more verbose when explaining their meanings. 93options SCSIVERBOSE 94 95## `INSECURE' turns off the kernel security level (securelevel = 0 always). 96## This allows writing to /dev/mem, loading kernel modules while multi-user, 97## and other insecurities good only for development work. Do not use this 98## option on a production machine. 99#options INSECURE 100 101## Allow non-root users to grab /dev/console with programs such as xconsole. 102## `xconsole' therefore does not need setuid root with this option enabled. 103#options UCONSOLE 104 105## `FDSCRIPTS' allows non-readable but executable scripts by providing a 106## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS', 107## which implies FDSCRIPTS, allows scripts to be set-user-id using the same 108## opaque file mechanism. Perl calls this "secure setuid scripts." 109 110#options FDSCRIPTS 111#options SETUIDSCRIPTS 112 113## Options for compatibility with previous releases foreign system binaries. 114## In the cases of COMPAT_SUNOS and COMPAT_SVR4, you may need to set up 115## additional user-level utilities or system configuration files. See 116## compat_sunos(8) and compat_svr4(8). 117 118options COMPAT_43 # 4.3BSD system interfaces 119options COMPAT_10 # NetBSD 1.0 binary compatibility 120options COMPAT_11 # NetBSD 1.1 binary compatibility 121options COMPAT_12 # NetBSD 1.2 binary compatibility 122options COMPAT_13 # NetBSD 1.3 binary compatibility 123options COMPAT_SUNOS # SunOS 4.x binary compatibility 124options COMPAT_SVR4 # SunOS 5.x binary compatibility 125options EXEC_ELF32 # Exec module for SunOS 5.x binaries. 126 127## File systems. You probably need at least one of FFS or NFS. 128file-system FFS # Berkeley Fast Filesystem 129file-system NFS # Sun NFS-compatible filesystem client 130file-system KERNFS # kernel data-structure filesystem 131file-system NULLFS # NULL layered filesystem 132file-system MFS # memory-based filesystem 133file-system FDESC # user file descriptor filesystem 134file-system UMAPFS # uid/gid remapping filesystem 135file-system LFS # Log-based filesystem (still experimental) 136file-system PORTAL # portal filesystem (still experimental) 137file-system PROCFS # /proc 138file-system CD9660 # ISO 9660 + Rock Ridge file system 139file-system UNION # union file system 140file-system MSDOSFS # MS-DOS FAT filesystem(s). 141 142## File system options. 143options NFSSERVER # Sun NFS-compatible filesystem server 144options QUOTA # FFS quotas 145#options FFS_EI # FFS Endian Independent support 146 147## Network protocol support. In most environments, INET is required. 148options INET # IP (Internet Protocol) v4 149options TCP_COMPAT_42 # 4.2BSD IP implementation compatibility 150#options GATEWAY # packet forwarding ("router switch") 151#options MROUTING # packet forwarding of multicast packets 152#options DIRECTED_BROADCAST # allow broadcasts through routers 153options NS # Xerox NS networking 154#options NSIP # Xerox NS tunneling over IP 155options ISO,TPIP # OSI networking 156options EON # OSI tunneling over IP 157#options CCITT,LLC,HDLC # X.25 packet switched protocol 158options NETATALK # AppleTalk (over Ethernet) protocol 159options NTP # Network Time Protocol in-kernel support 160#options PPS_SYNC # Add serial line synchronization for NTP 161#options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs. 162#options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device 163#options PPP_BSDCOMP # Add BSD compression to ppp device 164#options PPP_DEFLATE # Add deflate (libz) compression to ppp device 165#options PPP_FILTER # Add active filters for ppp (via bpf) 166 167 168 169#### Main bus and CPU .. all systems. 170mainbus0 at root 171cpu0 at mainbus0 172 173#### Bus types found on SPARC systems. 174 175sbus0 at mainbus0 # sun4c 176obio0 at mainbus0 # sun4 and sun4m 177vme0 at mainbus0 # sun4 178iommu0 at mainbus0 # sun4m 179sbus0 at iommu0 # sun4m 180vme0 at iommu0 # sun4m 181 182## SBus expander box 183xbox* at sbus? slot ? offset ? 184sbus* at xbox? 185 186## SBus to PCMCIA bridge 187nell* at sbus? slot ? offset ? # PCMCIA bridge 188pcmcia* at nell? 189 190#### Standard system devices -- all required for a given architecture 191 192## Auxiliary system registers on sun4c and sun4m 193auxreg0 at mainbus0 # sun4c 194auxreg0 at obio0 # sun4m 195 196## Power status and control register on Sun4m systems 197power0 at obio0 198 199## Mostek clock found on 4/300, sun4c, and sun4m systems. 200## The Mostek clock NVRAM is the "eeprom" on sun4/300 systems. 201clock0 at mainbus0 # sun4c 202clock0 at obio0 # sun4m 203clock0 at obio0 addr 0xf2000000 # sun4/300 204 205## Intersil clock found on 4/100 and 4/200 systems. 206oclock0 at obio0 addr 0xf3000000 # sun4/200 207oclock0 at obio0 addr 0x03000000 # sun4/100 208 209## Memory error registers. 210memreg0 at mainbus0 # sun4c 211memreg0 at obio0 # sun4m 212memreg0 at obio0 addr 0xf4000000 # sun4/200 and sun4/300 213memreg0 at obio0 addr 0x04000000 # sun4/100 214 215## ECC memory control 216eccmemctl0 at mainbus0 # sun4m 217 218## Timer chip found on 4/300, sun4c, and sun4m systems. 219timer0 at mainbus0 # sun4c 220timer0 at obio0 # sun4m 221timer0 at obio0 addr 0xef000000 # sun4/300 222 223## EEPROM found on 4/100 and 4/200 systems. Note that the 4/300 224## doesn't use this driver; the `EEPROM' is in the NVRAM on the 225## Mostek clock chip on 4/300 systems. 226eeprom0 at obio0 addr 0xf2000000 # sun4/200 227eeprom0 at obio0 addr 0x02000000 # sun4/100 228 229 230#### Serial port configuration 231 232## Zilog 8530 serial chips. Each has two-channels. 233## zs0 is ttya and ttyb. zs1 is the keyboard and mouse. 234zs0 at mainbus0 # sun4c 235zs0 at obio0 # sun4m 236zs0 at obio0 addr 0xf1000000 level 12 flags 0x103 # sun4/200 and sun4/300 237zs0 at obio0 addr 0x01000000 level 12 flags 0x103 # sun4/100 238zstty0 at zs0 channel 0 # ttya 239zstty1 at zs0 channel 1 # ttyb 240 241zs1 at mainbus0 # sun4c 242zs1 at obio0 # sun4m 243zs1 at obio0 addr 0xf0000000 level 12 flags 0x103 # sun4/200 and sun4/300 244zs1 at obio0 addr 0x00000000 level 12 flags 0x103 # sun4/100 245kbd0 at zs1 channel 0 # keyboard 246ms0 at zs1 channel 1 # mouse 247 248zs2 at obio0 addr 0xe0000000 level 12 flags 0x103 # sun4/300 249zstty2 at zs2 channel 0 # ttyc 250zstty3 at zs2 channel 1 # ttyd 251 252 253## Magma Serial/Parallel driver 254magma* at sbus? slot ? offset ? 255mtty* at magma? 256mbpp* at magma? 257 258 259#### Disk controllers and disks 260 261# 262 263## The following flags may be set for the NCR53c94 based esp driver: 264## bits 0-7: disable disconnect/reselect for the corresponding target 265## bits 8-15: disable synchronous negotiation for target [bit-8] 266 267## sun4/300, sun4c, sun4m on-board SCSI, and FSBE/S SBus SCSI cards. 268## Both `dma' and `esp' are needed in all cases. 269## Two kinds of additional SBus SCSI interfaces are available. One uses 270## "esp at sbus" like the sun4c on-board; the other uses "esp at dma". 271 272## sun4/300 SCSI - an NCR53c94 or equivalent behind 273## an LSI Logic DMA controller 274 275dma0 at obio0 addr 0xfa001000 level 4 # sun4/300 276esp0 at obio0 addr 0xfa000000 level 4 flags 0x0000 # sun4/300 277 278dma0 at sbus0 slot ? offset ? # sun4c/sun4m 279esp0 at sbus0 slot ? offset ? flags 0x0000 # sun4c 280esp0 at dma0 flags 0x0000 # sun4m 281 282# FSBE/S SCSI 283dma* at sbus? slot ? offset ? # SBus 284esp* at sbus? slot ? offset ? flags 0x0000 # SBus (older proms) 285esp* at dma? flags 0x0000 # SBus 286 287scsibus* at esp? 288 289## Qlogic ISP SBus SCSI Card 290isp* at sbus? slot ? offset ? 291scsibus* at isp? 292 293## NCR5380-based "Sun SCSI 3" VME SCSI controller. 294## This driver has several flags which may be enabled by OR'ing 295## the values and using the "flags" directive. 296## Valid flags are: 297## 298## 0x01 Use DMA (may be polled) 299## 0x02 Use DMA completion interrupts 300## 0x04 Allow disconnect/reselect 301## 302## E.g. the following would enable DMA, interrupts, and reselect: 303## si0 at vme0 addr 0x200000 level 3 vect 0x40 flags 0x07 304## 305## By default, DMA is enabled in the driver. 306 307si0 at vme0 addr 0x200000 pri 2 vec 0x40 308scsibus* at si? 309 310## NCR5380-based "SCSI Weird" on-board SCSI interface found 311## on sun4/100 systems. The flags are the same as the "si" 312## controller. Note, while DMA is enabled by default, only 313## polled DMA works at this time, and reselects do not work 314## on this particular controller. 315 316sw0 at obio0 addr 0x0a000000 level 3 317scsibus* at sw? 318 319## These entries find devices on all SCSI busses and assign 320## unit numbers dynamically. 321sd* at scsibus? target ? lun ? # SCSI disks 322st* at scsibus? target ? lun ? # SCSI tapes 323cd* at scsibus? target ? lun ? # SCSI CD-ROMs 324ch* at scsibus? target ? lun ? # SCSI changer devices 325ss* at scsibus? target ? lun ? # SCSI scanners 326uk* at scsibus? target ? lun ? # unknown SCSI 327 328 329## Xylogics 753 or 7053 VME SMD disk controllers and disks, found 330## on sun4 systems. 331xdc0 at vme0 addr 0xee80 pri 3 vec 0x44 332xdc1 at vme0 addr 0xee90 pri 3 vec 0x45 333xdc2 at vme0 addr 0xeea0 pri 3 vec 0x46 334xdc3 at vme0 addr 0xeeb0 pri 3 vec 0x47 335xd* at xdc? drive ? 336 337## Xylogics 451 or 451 VME SMD disk controllers and disks, found 338## on sun4 systems. 339xyc0 at vme0 addr 0xee40 pri 3 vec 0x48 340xyc1 at vme0 addr 0xee48 pri 3 vec 0x49 341xy* at xyc? drive ? 342 343 344## Floppy controller and drive found on SPARCstations. 345 346fdc0 at mainbus0 # sun4c controller 347fdc0 at obio0 # sun4m controller 348fd* at fdc0 # the drive itself 349 350## A disk-like interface to files. Can be used to create floppy, CD, 351## miniroot images, etc. 352 353pseudo-device vnd 4 354 355## Concatenated and striped disks; with this, you can create a software-based 356## disk array similar to a "RAID 0" setup. See ccd(4). 357 358pseudo-device ccd 4 359 360## RAIDframe disk driver: software RAID driver. See raid(4). 361 362#pseudo-device raid 4 363 364## Memory disk device, used on boot floppies with compressed 365## kernel-plus-root-disk images. 366 367#pseudo-device md 1 368 369 370#### Network interfaces 371 372## LANCE Ethernet - an AMD 7990 LANCE behind specialized DMA glue 373## Three flavors of additional SBus ethernets are available. One attaches 374## directly like the sun4c on-board, one uses the ledma device like the 375## sun4m on-board, and one uses the lebuffer device. 376 377le0 at obio0 addr 0xf9000000 level 6 # sun4/300 378le0 at sbus0 slot ? offset ? # sun4c on-board 379ledma0 at sbus0 slot ? offset ? # sun4m on-board 380le0 at ledma0 # sun4m on-board 381le* at sbus? slot ? offset ? # SBus 382ledma* at sbus? slot ? offset ? # SBus 383le* at ledma? # SBus 384lebuffer0 at sbus? slot ? offset ? # SBus 385le0 at lebuffer? # SBus 386lebuffer* at sbus? slot ? offset ? # SBus 387le* at lebuffer? # SBus 388 389 390## sun4/100 and sun4/200 Ethernet - an Intel 82586 on-board 391## or on a Multibus/VME card. 392ie0 at obio0 addr 0xf6000000 level 6 # sun4/200 on-board 393ie0 at obio0 addr 0x06000000 level 6 # sun4/100 on-board 394ie1 at vme0 addr 0xe88000 pri 3 vec 0x75 # VME 395ie2 at vme0 addr 0x31ff02 pri 3 vec 0x76 # VME 396ie3 at vme0 addr 0x35ff02 pri 3 vec 0x77 # VME 397ie4 at vme0 addr 0x2dff02 pri 3 vec 0x7c # VME 398 399## qec/be, qec/hme 400qec* at sbus? slot ? offset ? 401#be* at qec? 402#hme* at qec? 403 404# midway ATM 405en0 at sbus? slot ? offset ? 406 407## Loopback network interface; required 408pseudo-device loop 409 410## SLIP and CSLIP interfaces, for IP over a serial line. 411pseudo-device sl 2 412 413## PPP, the successor to SLIP. See pppd(8). 414pseudo-device ppp 2 415 416## Starmode Radio IP, a special hardware network device. 417#pseudo-device strip 1 418 419## Network "tunnel" device, allowing protocol stacks to run in the userland. 420## This is used by the third-party user-mode "ppp" program, and others. 421pseudo-device tun 4 422 423## Generic L3 over IP tunnel 424#pseudo-device gre 2 # generic L3 over IP tunnel 425 426## Berkeley Packet Filter, required to run RARPD. A generic C-language 427## interface that allows selective examining of incoming packets. 428pseudo-device bpfilter 8 429 430## IP Filter, used in firewall and NAT applications. See ipnat(8) for 431## one example of the use of the IP Filter. 432pseudo-device ipfilter 433 434 435#### Audio and video devices 436 437## /dev/audio support (`audioamd' plus `audio') 438## 439audioamd0 at mainbus0 # sun4c 440#audioamd0 at obio0 # sun4m 441audioamd0 at sbus0 slot ? offset ? # sun4m 442audio* at audioamd0 443 444audiocs0 at sbus0 slot ? offset ? # SUNW,CS4231 445audio* at audiocs0 446 447 448## Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m 449## systems. If your sun4 system has a cgfour installed in the P4 slot, 450## the P4 entries for "bwtwo" will attach to the overlay plane of the 451## "cgfour". 452 453bwtwo0 at sbus0 slot ? offset ? # sun4c and sun4m 454bwtwo* at sbus? slot ? offset ? # 455bwtwo0 at obio0 addr 0xfd000000 level 4 # sun4/200 456bwtwo0 at obio0 addr 0xfb300000 level 4 # sun4/300 in P4 slot 457bwtwo0 at obio0 addr 0x0b300000 level 4 # sun4/100 in P4 slot 458 459## Sun "cgtwo" VME color framebuffer 460cgtwo0 at vme0 addr 0x400000 pri ? vec 0xa8 461 462## Sun "cgthree" Sbus color framebuffer 463cgthree0 at sbus? slot ? offset ? 464cgthree* at sbus? slot ? offset ? 465#cgthree0 at obio? slot ? offset ? # sun4m 466 467## Sun "cgfour" color framebuffer with overlay plane. See above comment 468## regarding overlay plane. 469cgfour0 at obio0 addr 0xfb300000 level 4 # sun4/300 P4 470cgfour0 at obio0 addr 0x0b300000 level 4 # sun4/100 P4 471 472## Sun "cgsix" accelerated color framebuffer. 473cgsix0 at sbus? slot ? offset ? 474cgsix* at sbus? slot ? offset ? 475cgsix0 at obio0 addr 0xfb000000 level 4 # sun4/300 P4 476cgsix0 at obio0 addr 0x0b000000 level 4 # sun4/100 P4 477 478## Sun "cgeight" 24-bit framebuffer 479cgeight0 at obio0 addr 0xfb300000 level 4 # sun4/300 P4 480cgeight0 at obio0 addr 0x0b300000 level 4 # sun4/100 P4 481 482## Sun "tcx" accelerated color framebuffer. 483tcx0 at sbus? slot ? offset ? 484tcx* at sbus? slot ? offset ? 485 486# Sun "cgfourteen" accelerated 24-bit framebuffer. 487cgfourteen0 at obio0 # sun4m 488 489 490#### Other device configuration 491 492## Pseudo ttys, required for network logins and programs like screen. 493## 32 is a good number for average systems; you may have as many as you 494## like, though 256 is more or less the upper limit. Increasing this 495## number still requires you to run /dev/MAKEDEV to create the files 496## for the ptys. 497 498pseudo-device pty 32 # pseudo-ttys (for network, etc.) 499 500## Random device, used to implement /dev/random (a source of random noise), 501## and generate randomness for some kernel formulae. 502## THIS DEVICE IS EXPERIMENTAL; use at your own risk. 503 504#pseudo-device rnd 505