GENERIC revision 1.74
1# $NetBSD: GENERIC,v 1.74 2002/01/27 13:23:29 jdolecek 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 21include "arch/x68k/conf/std.x68k" 22 23#ident "GENERIC-$Revision: 1.74 $" 24 25maxusers 8 26 27## System kernel configuration. See options(4) for more detail. 28 29 30## Options for variants of the m68k MPU 31## you must have at least the correct one; REQUIRED 32options M68030 33options M68040 34options M68060 35## If you want an optimized kernel for a specific processor, use either: 36#makeoptions CMACHFLAGS="-m68030" 37#makeoptions CMACHFLAGS="-m68040 -Wa,-m68030 -Wa,-m68851" 38#makeoptions CMACHFLAGS="-m68060 -Wa,-m68030 -Wa,-m68851" 39 40 41#### System options specific to the x68k port 42 43options EXTENDED_MEMORY # support for >16MB memory 44options FPU_EMULATE # software fpu emulation for MC68030 45options FPSP # floating point emulation for MC68040 46options M060SP # int/fp emulation for MC68060 47#options JUPITER # support for "Jupiter-X" accelerator 48#options MAPPEDCOPY # use page mapping for large copyin/copyout 49#options ZSCONSOLE,ZSCN_SPEED="9600" # use serial console 50 51 52#### System options that are the same for all ports 53 54## Root device configuration: change the ?'s if you are going to use a 55## nonstandard root partition (other than where the kernel is booted from) 56## and/or nonstandard root type (not ffs or nfs). Normally this can be 57## automagically determined at boot time. 58 59config netbsd root on ? type ? 60#config netbsd root on sd0 type ffs 61 62## RTC is offset from GMT; -540 means JST-9 63options RTC_OFFSET=-540 # hardware clock is this many mins. west of GMT 64 65## System call tracing (see ktrace(1)). 66options KTRACE 67 68## Collect statistics on kernel malloc's and free's. This does have a 69## significant performance hit on slower machines, so it is intended for 70## diagnostic use only. 71#options KMEMSTATS 72 73## System V compatible IPC subsystem. (msgctl(2), semctl(2), and shmctl(2)) 74options SYSVMSG # System V message queues 75options SYSVSEM # System V semaphores 76#options SEMMNI=10 # number of semaphore identifiers 77#options SEMMNS=60 # number of semaphores in system 78#options SEMUME=10 # max number of undo entries per process 79#options SEMMNU=30 # number of undo structures in system 80options SYSVSHM # System V shared memory 81#options SHMMAXPGS=1024 # 1024 pages is the default 82 83## Loadable kernel module support 84#options LKM 85 86#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 87 88## NFS boot options; not supported currently: needs nfsboot program 89#options NFS_BOOT_BOOTPARAM 90#options NFS_BOOT_BOOTP 91#options NFS_BOOT_DHCP 92 93#### Debugging options 94 95## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at 96## serial console break or keyboard reset, where the PROM would normally 97## intercept. DDB_HISTORY_SIZE adds up/down arrow command history. 98#options DDB # kernel dynamic debugger 99#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 100#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic' 101#options PANICBUTTON # interrupt switch invokes DDB 102 103## You may also use gdb, on another computer connected to this machine over 104## a serial port. Both KGDB_DEV and KGDB_DEVRATE should be specified; 105## KGDB_DEV is a dev_t encoded device number of the serial port to use. 106## KGDB is not supported for now. 107#options KGDB # support for kernel gdb 108#options KGDB_DEV=0xc00 # kgdb device number 109#options KGDB_DEVRATE=9600 # baud rate 110 111## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file), 112## such that gdb(1) can be used on a kernel coredump. 113 114#makeoptions DEBUG="-g" 115 116## Adds code to the kernel that does internal consistency checks, and will 117## cause the kernel to panic if corruption of internal data structures 118## is detected. 119#options DIAGNOSTIC # extra kernel sanity checking 120 121## Enable (possibly expensive) debugging code that may also display messages 122## on the system console 123#options DEBUG 124 125## Make SCSI error messages more verbose when explaining their meanings. 126#options SCSIVERBOSE 127 128## `INSECURE' turns off the kernel security level (securelevel = 0 always). 129## This allows writing to /dev/mem, loading kernel modules while multi-user, 130## and other insecurities good only for development work. Do not use this 131## option on a production machine. 132#options INSECURE 133 134## Allow non-root users to grab /dev/console with programs such as xconsole. 135## `xconsole' therefore does not need setuid root with this option enabled. 136#options UCONSOLE 137 138## `FDSCRIPTS' allows non-readable but executable scripts by providing a 139## pre-opened opaque file to the script interpreter. `SETUIDSCRIPTS', 140## which implies FDSCRIPTS, allows scripts to be set-user-id using the same 141## opaque file mechanism. Perl calls this "secure setuid scripts." 142 143#options FDSCRIPTS 144#options SETUIDSCRIPTS 145 146## Options for compatibility with previous releases foreign system binaries. 147 148options COMPAT_43 # 4.3BSD system interfaces 149options COMPAT_09 # NetBSD 0.9 binary compatibility 150options COMPAT_10 # NetBSD 1.0 binary compatibility 151options COMPAT_11 # NetBSD 1.1 binary compatibility 152options COMPAT_12 # NetBSD 1.2 binary compatibility 153options COMPAT_13 # NetBSD 1.3 binary compatibility 154options COMPAT_14 # NetBSD 1.4 binary compatibility 155options COMPAT_AOUT_M68K # compatibility with NetBSD/m68k a.out 156#options COMPAT_M68K4K # NetBSD/m68k4k binaries 157#options COMPAT_SUNOS # SunOS 4.x binary compatibility; broken 158#options COMPAT_SVR4 # SVR4 binary compatibility; broken 159#options COMPAT_LINUX # Linux/m68k binary compatibility 160#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 161 162## File systems. 163file-system FFS # Berkeley Fast Filesystem 164file-system NFS # Sun NFS-compatible filesystem client 165file-system KERNFS # kernel data-structure filesystem 166#file-system NULLFS # NULL layered filesystem (buggy) 167#file-system OVERLAY # overlay file system 168file-system MFS # memory-based filesystem 169#file-system FDESC # user file descriptor filesystem 170file-system UMAPFS # uid/gid remapping filesystem 171#file-system LFS # Log-structured filesystem (experimental) 172#file-system PORTAL # portal filesystem (experimental) 173file-system PROCFS # /proc 174file-system CD9660 # ISO 9660 + Rock Ridge file system 175#file-system UNION # union file system (a little buggy) 176file-system MSDOSFS # MS-DOS FAT filesystem(s). 177#file-system ADOSFS # AmigaDOS filesystem 178 179## File system options. 180options NFSSERVER # Sun NFS-compatible filesystem server 181#options QUOTA # FFS quotas 182#options FFS_EI # FFS Endian Independent support 183options SOFTDEP # FFS soft updates support. 184 185## Network protocol support. In most environments, INET is required. 186options INET # IP (Internet Protocol) v4 187options INET6 # IPV6 188#options IPSEC # IP security 189#options IPSEC_ESP # IP security (encryption part; define w/IPSEC) 190#options IPSEC_DEBUG # debug for IP security 191#options GATEWAY # packet forwarding ("router switch") 192#options MROUTING # packet forwarding of multicast packets 193#options DIRECTED_BROADCAST # allow broadcasts through routers 194#options NS # Xerox NS networking 195#options NSIP # Xerox NS tunneling over IP 196#options ISO,TPIP # OSI networking 197#options EON # OSI tunneling over IP 198#options CCITT,LLC,HDLC # X.25 packet switched protocol 199#options NETATALK # AppleTalk (over Ethernet) protocol 200#options NTP # Network Time Protocol in-kernel support 201#options PPS_SYNC # Add serial line synchronization for NTP 202options PFIL_HOOKS # Add pfil(9) hooks, intended for custom LKMs. 203#options IPFILTER_LOG # Add ipmon(8) logging for ipfilter device 204#options PPP_BSDCOMP # Add BSD compression to ppp device 205#options PPP_DEFLATE # Add deflate (libz) compression to ppp device 206#options PPP_FILTER # Add active filters for ppp (via bpf) 207#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 208 209 210#### Device configurations 211 212## Fundamental devices; see also std.x68k 213dmac0 at intio0 addr 0xe84000 # DMA controler 214xel0 at intio0 215opm0 at intio0 addr 0xe90000 # OPM: required for fdc 216 217## Display devices and console 218grfbus0 at mainbus0 # bitmapped displays 219grf0 at grfbus0 # multiplane graphics 220grf1 at grfbus0 # flexible graphics 221 222kbd0 at mfp0 # standard keyboard 223ite0 at grf0 # internal terminal emulator 224options ITE_KERNEL_ATTR=4 # bold for kernel messages 225 # see /sys/arch/x68k/dev/itevar.h 226pseudo-device pow 2 # software power switch 227 228## floppy disks 229fdc0 at intio0 addr 0xe94000 intr 96 dma 0 dmaintr 100 # floppy controler 230fd* at fdc0 unit ? # builtin floppy drives 231 232## SCSI devices 233scsirom0 at intio0 addr 0xfc0000 # Built-in SCSI BIOS 234scsirom1 at intio0 addr 0xea0020 # External SCSI BIOS 235spc0 at scsirom0 # genuin SCSI 236spc1 at scsirom1 # genuin SCSI 237scsibus* at spc? 238mha0 at scsirom1 # Mankai MK-HA1 (Mach-2) 239scsibus* at mha0 240 241sd* at scsibus? target ? lun ? # SCSI disks 242cd* at scsibus? target ? lun ? # SCSI CD-ROMs 243#st* at scsibus? target ? lun ? # SCSI tapes 244#ss* at scsibus? target ? lun ? # SCSI scanners 245#ch* at scsibus? target ? lun ? # SCSI changer devices 246#uk* at scsibus? target ? lun ? # SCSI unknown devices 247 248## Ports 249zsc0 at intio0 addr 0xe98000 intr 112 250zstty0 at zsc0 channel 0 # built-in RS-232C 251ms0 at zsc0 channel 1 # standard mouse 252#zsc1 at intio0 addr 0xeafc00 intr 113 253#zstty2 at zsc1 channel 0 254#zstty3 at zsc1 channel 1 255#zsc2 at intio0 addr 0xeafc10 intr 114 256#zstty4 at zsc2 channel 0 257#zstty5 at zsc2 channel 1 258par0 at intio0 addr 0xe8c000 # Builtin printer port 259 260pseudo-device sram # battery-backuped static RAM 261pseudo-device bell # OPM bell 262 263xcom0 at mainbus0 # NS16550 fast serial 264xcom1 at mainbus0 265 266## Audio device 267vs0 at intio0 addr 0xe92000 dma 3 dmaintr 106 268audio* at vs? 269 270## Network interfaces 271ne* at intio0 addr 0xece300 intr 249 # Nereid Ethernet 272ne* at intio0 addr 0xeceb00 intr 248 # Nereid Ethernet 273neptune0 at intio0 addr 0xece000 intr 249 # Neptune-X 274neptune1 at intio0 addr 0xece400 intr 249 # Neptune-X at alt. addr. 275ne* at neptune? addr 0x300 # NE2000 or clone 276 277 278#### Pseudo devices 279 280## A disk-like interface to files. Can be used to create floppy, CD, 281## miniroot images, etc. 282 283pseudo-device vnd 4 284 285## Concatenated and striped disks; with this, you can create a software-based 286## disk array similar to a "RAID 0" setup. See ccd(4). 287 288#pseudo-device ccd 4 289 290## RAIDframe disk driver: software RAID driver. See raid(4). 291 292pseudo-device raid 8 293options RAID_AUTOCONFIG # auto-configuration of RAID components 294# Options to enable various other RAIDframe RAID types. 295# options RF_INCLUDE_EVENODD=1 296# options RF_INCLUDE_RAID5_RS=1 297# options RF_INCLUDE_PARITYLOGGING=1 298# options RF_INCLUDE_CHAINDECLUSTER=1 299# options RF_INCLUDE_INTERDECLUSTER=1 300# options RF_INCLUDE_PARITY_DECLUSTERING=1 301# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 302 303 304## Memory disk device, used on boot floppies with compressed 305## kernel-plus-root-disk images. 306 307#pseudo-device md 1 308 309## Loopback network interface; required 310pseudo-device loop 311 312## SLIP and CSLIP interfaces, for IP over a serial line. 313pseudo-device sl 1 314 315## PPP, the successor to SLIP. See pppd(8). 316pseudo-device ppp 1 317 318## PPP over Ethernet (RFC 2516) 319pseudo-device pppoe 320 321## Network "tunnel" device, allowing protocol stacks to run in the userland. 322## This is used by the third-party user-mode "ppp" program, and others. 323#pseudo-device tun 4 324 325## Generic L3 over IP tunnel 326#pseudo-device gre 2 # generic L3 over IP tunnel 327 328## Berkeley Packet Filter, required to run RARPD. A generic C-language 329## interface that allows selective examining of incoming packets. 330pseudo-device bpfilter 4 331 332## IP Filter, used in firewall and NAT applications. See ipnat(8) for 333## one example of the use of the IP Filter. 334#pseudo-device ipfilter 335 336## for IPv6 337pseudo-device gif 1 # IPv[46] over IPv[46] tunnel (RFC1933) 338#pseudo-device faith 1 # IPv[46] tcp relay translation i/f 339#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation 340 341## IEEE 802.1Q Virtual LAN encapsulation, see vlan(4). 342pseudo-device vlan 343 344## Simple inter-network traffic bridging 345pseudo-device bridge 346 347#### Other device configuration 348 349## Pseudo ttys, required for network logins and programs like screen. 350 351pseudo-device pty # pseudo-terminals 352 353## Random device, used to implement /dev/random (a source of random noise), 354## and generate randomness for some kernel formulae. 355 356pseudo-device rnd 357