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