1# $NetBSD: INSTALL_TINY,v 1.135 2012/06/05 08:44:13 abs Exp $ 2# 3# This kernel should be derived from INSTALL (which is derived 4# from GENERIC) with some features commented out. 5# 6# This kernel has been optimized for space. It is targeted towards 7# small memory machines (4M). It has no SCSI, PCI or EISA. It does 8# have pcmcia, for old laptops. 9# 10 11include "arch/i386/conf/std.i386" 12 13#options INCLUDE_CONFIG_FILE # embed config file in kernel binary 14 15makeoptions COPTS="-Os" # Optimise for space. Implies -O2 16makeoptions USE_SSP="no" 17 18# Enable the hooks used for initializing the root memory-disk. 19options MEMORY_DISK_HOOKS 20options MEMORY_DISK_IS_ROOT # force root on memory disk 21options MEMORY_DISK_SERVER=0 # no userspace memory disk support 22options MEMORY_DISK_ROOT_SIZE=3100 # size of memory disk, in blocks 23options MEMORY_DISK_RBFLAGS=RB_SINGLE # boot in single-user mode 24 25maxusers 2 # estimated number of users 26 27# CPU-related options. 28#options VM86 # virtual 8086 emulation 29#options USER_LDT # user-settable LDT; used by WINE 30 31# This option allows you to force a serial console at the specified 32# I/O address. 33#options CONSDEVNAME="\"com\"",CONADDR=0x3f8,CONSPEED=9600 34 35# The following options override the memory sizes passed in from the boot 36# block. Use them *only* if the boot block is unable to determine the correct 37# values. Note that the BIOS may *correctly* report less than 640k of base 38# memory if the extended BIOS data area is located at the top of base memory 39# (as is the case on most recent systems). 40#options REALBASEMEM=... # size of base memory 41#options REALEXTMEM=... # size of extended memory 42 43options INSECURE # disable kernel security levels 44 45options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 46#options NTP # NTP phase/frequency locked loop 47 48#options KTRACE # system call tracing via ktrace(1) 49 50#options SYSVSEM # System V-like semaphores 51#options SYSVSHM # System V-like memory sharing 52 53#options USERCONF # userconf(4) support 54options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 55#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 56no options EXEC_AOUT # we don't a.out support 57 58# Diagnostic/debugging support options 59#options DIAGNOSTIC # expensive kernel consistency checks 60#options DEBUG # expensive debugging checks/support 61#options KMEMSTATS # kernel memory statistics (vmstat -m) 62#options DDB # in-kernel debugger 63#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic' 64#options DDB_HISTORY_SIZE=512 # enable history editing in DDB 65#options KGDB # remote debugger 66#options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600 67#makeoptions DEBUG="-g" # compile full symbol table 68 69# Compatibility options 70#options COMPAT_NOMID # NetBSD 0.8, 386BSD, and BSDI 71#options COMPAT_09 # NetBSD 0.9 72#options COMPAT_10 # NetBSD 1.0 73#options COMPAT_11 # NetBSD 1.1 74#options COMPAT_12 # NetBSD 1.2, 386BSD, and BSDI 75#options COMPAT_13 # NetBSD 1.3, 386BSD, and BSDI 76#options COMPAT_14 # NetBSD 1.4 77#options COMPAT_15 # NetBSD 1.5 78#options COMPAT_16 # NetBSD 1.6 79#options COMPAT_20 # NetBSD 2.0 80#options COMPAT_30 # NetBSD 3.0 compatibility. 81#options COMPAT_40 # NetBSD 4.0 82#options COMPAT_43 # 4.3BSD, 386BSD, and BSDI 83#options COMPAT_386BSD_MBRPART # recognize old partition ID 84#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 85 86#options COMPAT_SVR4 # binary compatibility with SVR4 87#options COMPAT_IBCS2 # binary compatibility with SCO and ISC 88#options COMPAT_LINUX # binary compatibility with Linux 89#options COMPAT_FREEBSD # binary compatibility with FreeBSD 90options COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 91 92# File systems 93file-system FFS # UFS 94#file-system EXT2FS # second extended file system (linux) 95#file-system LFS # log-structured file system 96#file-system MFS # memory file system 97file-system NFS # Network File System client 98file-system CD9660 # ISO 9660 + Rock Ridge file system 99file-system MSDOSFS # MS-DOS file system 100#file-system FDESC # /dev/fd 101#file-system KERNFS # /kern 102#file-system NULLFS # loopback file system 103#file-system PROCFS # /proc 104#file-system UMAPFS # NULLFS + uid and gid remapping 105#file-system UNION # union file system 106#file-system PTYFS # /dev/pts/N support 107#file-system TMPFS # Efficient memory file-system 108 109# Filesystem options 110#options QUOTA # legacy UFS quotas 111#options QUOTA2 # new, in-filesystem UFS quotas 112#options NFSSERVER # Network File System server 113options NFS_V2_ONLY # Exclude NFS3 code to save space 114options FFS_NO_SNAPSHOT # No FFS snapshot support 115#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 116 # immutable) behave as system flags. 117 118# Networking options 119#options GATEWAY # packet forwarding 120options INET # IP + ICMP + TCP + UDP 121#options MROUTING # IP multicast routing 122#options PIM # Protocol Independent Multicast 123#options ISO,TPIP # OSI 124#options EON # OSI tunneling over IP 125#options NETATALK # AppleTalk networking protocols 126#options PPP_BSDCOMP # BSD-Compress compression support for PPP 127#options PPP_DEFLATE # Deflate compression support for PPP 128#options PPP_FILTER # Active filter support for PPP (requires bpf) 129#options PFIL_HOOKS # pfil(9) packet filter hooks 130#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 131 132# These options enable verbose messages for several subsystems. 133# Warning, these may compile large string tables into the kernel! 134#options EISAVERBOSE # verbose EISA device autoconfig messages 135#options PCIVERBOSE # verbose PCI device autoconfig messages 136#options PCI_CONFIG_DUMP # verbosely dump PCI config space 137#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 138#options SCSIVERBOSE # human readable SCSI error messages 139 140# Squeeze... 141options NVNODE=50 142options NBUF=20 143options BUFPAGES=20 144 145# Kernel root file system and dump configuration. 146config netbsd root on ? type ? 147#config netbsd root on sd0a type ffs 148#config netbsd root on ? type nfs 149 150# 151# wscons options 152# 153# builtin terminal emulations 154#options WSEMUL_SUN # sun terminal emulation 155options WSEMUL_VT100 # VT100 / VT220 emulation 156# customization of console and kernel output - see dev/wscons/wsdisplayvar.h 157#options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8) 158#options WS_DEFAULT_FG=WSCOL_WHITE 159#options WS_DEFAULT_BG=WSCOL_BLACK 160#options WS_DEFAULT_COLATTR="(0)" 161#options WS_DEFAULT_MONOATTR="(0)" 162options WS_KERNEL_FG=WSCOL_GREEN 163#options WS_KERNEL_BG=WSCOL_BLACK 164#options WS_KERNEL_COLATTR="" 165#options WS_KERNEL_MONOATTR="" 166# customization of console border color 167#options WSDISPLAY_CUSTOM_BORDER # border customization from wsconsctl(8) 168#options WSDISPLAY_BORDER_COLOR=WSCOL_BLUE # default color 169# compatibility to other console drivers 170options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 171options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 172options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 173options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 174# see dev/pckbport/wskbdmap_mfii.c for implemented layouts 175#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for pckbd driver 176#options UKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for ukbd driver 177# allocate a number of virtual screens at autoconfiguration time 178#options WSDISPLAY_DEFAULTSCREENS=4 179# use a large software cursor that doesn't blink 180options PCDISPLAY_SOFTCURSOR 181 182# 183# Device configuration 184# 185 186#apm0 at mainbus0 # Advanced power management 187 188 189# Basic Bus Support 190 191# PCI bus support 192#pci* at mainbus? bus ? 193#pci* at pchb? bus ? 194#pci* at ppb? bus ? 195 196# PCI bridges 197#pchb* at pci? dev ? function ? # PCI-Host bridges 198#pceb* at pci? dev ? function ? # PCI-EISA bridges 199#pcib* at pci? dev ? function ? # PCI-ISA bridges 200#ppb* at pci? dev ? function ? # PCI-PCI bridges 201# XXX 'puc's aren't really bridges, but there's no better place for them here 202#puc* at pci? dev ? function ? # PCI "universal" comm. cards 203 204# As well as 5 and 7, avoid irq 4 and 3 because we do not probe com* here 205options PCIC_ISA_INTR_ALLOC_MASK=0xff47 206 207# PCMCIA bus support 208pcmcia* at pcic? controller ? socket ? 209#pcmcia* at tcic? controller ? socket ? 210 211# ISA PCMCIA controllers 212pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000 213pcic1 at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000 214 215# EISA bus support 216#eisa0 at mainbus? 217#eisa0 at pceb? 218 219# ISA bus support 220isa0 at mainbus? 221#isa0 at pceb? 222#isa0 at pcib? 223 224# ISA Plug-and-Play bus support 225#isapnp0 at isa? 226 227# Coprocessor Support 228 229# Math Coprocessor support 230npx0 at isa? port 0xf0 irq 13 # x86 math coprocessor 231 232 233# Console Devices 234 235# wscons 236pckbc0 at isa? # PC keyboard controller 237pckbd* at pckbc? # PC keyboard 238pcdisplay0 at isa? # CGA, MDA, EGA, HGA 239wsdisplay* at pcdisplay? console ? 240wskbd* at pckbd? console ? 241#wsmouse* at pms? mux 0 242 243# Serial Devices 244 245# PCI serial interfaces 246#com* at puc? port ? # 16x50s on "universal" comm boards 247#cy* at pci? dev ? function ? # Cyclades Cyclom-Y serial boards 248 249# ISA Plug-and-Play serial interfaces 250#com* at isapnp? # Modems and serial boards 251 252# PCMCIA serial interfaces 253#com* at pcmcia? function ? # Modems and serial cards 254 255# ISA serial interfaces 256#options COM_HAYESP # adds Hayes ESP serial board support 257#com0 at isa? port 0x3f8 irq 4 # Standard PC serial ports 258#com1 at isa? port 0x2f8 irq 3 259#com2 at isa? port 0x3e8 irq 5 260#com3 at isa? port 0x2e8 irq 9 261#ast0 at isa? port 0x1a0 irq 5 # AST 4-port serial cards 262#com* at ast? slave ? 263#boca0 at isa? port 0x100 irq 5 # BOCA 8-port serial cards 264#com* at boca? slave ? 265#rtfps0 at isa? port 0x1230 irq 10 # RT 4-port serial cards 266#com* at rtfps? slave ? 267#cy0 at isa? iomem 0xd4000 irq 12 # Cyclades serial cards 268 269 270# Parallel Printer Interfaces 271 272# PCI parallel printer interfaces 273#lpt* at puc? port ? # || ports on "universal" comm boards 274 275# ISA parallel printer interfaces 276#lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports 277#lpt1 at isa? port 0x278 278#lpt2 at isa? port 0x3bc 279 280# I2O devices 281#iop* at pci? dev ? function ? # I/O processor 282#iopsp* at iop? tid ? # SCSI/FC-AL ports 283#ld* at iop? tid ? # block devices 284#dpti* at iop? tid 0 # DPT/Adaptec control interface 285 286# SCSI Controllers and Devices 287 288# PCI SCSI controllers 289#ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI 290#bha* at pci? dev ? function ? # BusLogic 9xx SCSI 291#dpt* at pci? dev ? function ? # DPT SmartCache/SmartRAID 292#isp* at pci? dev ? function ? # Qlogic ISP [12]0x0 SCSI/FibreChannel 293#mly* at pci? dev ? function ? # Mylex AcceleRAID and eXtremeRAID 294#siop* at pci? dev ? function ? # NCR 53c8xx SCSI 295 296# EISA SCSI controllers 297#ahb* at eisa? slot ? # Adaptec 174[02] SCSI 298#ahc* at eisa? slot ? # Adaptec 274x, aic7770 SCSI 299#bha* at eisa? slot ? # BusLogic 7xx SCSI 300#dpt* at eisa? slot ? # DPT SmartCache/SmartRAID 301#uha* at eisa? slot ? # UltraStor 24f SCSI 302 303# PCMCIA SCSI controllers 304#aic* at pcmcia? function ? # Adaptec APA-1460 SCSI 305 306# ISA Plug-and-Play SCSI controllers 307#aic* at isapnp? # Adaptec AHA-1520B 308 309# ISA SCSI controllers 310#aha0 at isa? port 0x330 irq ? drq ? # Adaptec 154[02] SCSI 311#aha1 at isa? port 0x334 irq ? drq ? 312#ahc0 at isa? port ? irq ? # Adaptec 284x SCSI 313#aic0 at isa? port 0x340 irq 11 # Adaptec 152[02] SCSI 314#bha0 at isa? port 0x330 irq ? drq ? # BusLogic [457]4X SCSI 315#bha1 at isa? port 0x334 irq ? drq ? 316# The "nca" and "dpt" probes might give false hits or hang your machine. 317#dpt0 at isa? port 0x170 irq ? drq ? # DPT SmartCache/SmartRAID 318#nca0 at isa? port 0x360 irq 15 # Port-mapped NCR 53C80 controller 319#nca1 at isa? iomem 0xd8000 irq 5 # Memory-mapped controller (T128, etc.) 320#sea0 at isa? iomem 0xc8000 irq 5 # Seagate/Future Domain SCSI 321#uha0 at isa? port 0x330 irq ? drq ? # UltraStor [13]4f SCSI 322#uha1 at isa? port 0x340 irq ? drq ? 323#wds0 at isa? port 0x350 irq 15 drq 6 # WD7000 and TMC-7000 controllers 324#wds1 at isa? port 0x358 irq 11 drq 5 325 326# SCSI bus support 327#scsibus* at scsi? 328 329# SCSI devices 330#sd* at scsibus? target ? lun ? # SCSI disk drives 331#st* at scsibus? target ? lun ? # SCSI tape drives 332#cd* at scsibus? target ? lun ? # SCSI CD-ROM drives 333#ch* at scsibus? target ? lun ? # SCSI autochangers 334#ss* at scsibus? target ? lun ? # SCSI scanners 335#uk* at scsibus? target ? lun ? # SCSI unknown 336 337 338# RAID controllers and devices 339#aac* at pci? dev ? function ? # Adaptec AAC family 340#cac* at eisa? slot ? # Compaq EISA array controllers 341#cac* at pci? dev ? function ? # Compaq PCI array controllers 342#ciss* at pci? dev ? function ? # HP Smart Array controllers 343#icp* at pci? dev ? function ? # ICP-Vortex GDT & Intel RAID 344#mlx* at pci? dev ? function ? # Mylex DAC960 & DEC SWXCR family 345#mlx* at eisa? slot ? # Mylex DAC960 & DEC SWXCR family 346#twe* at pci? dev ? function ? # 3ware Escalade RAID controllers 347 348#ld* at aac? unit ? # logical disk devices 349#ld* at cac? unit ? 350#ld* at icp? unit ? 351#ld* at twe? unit ? 352#ld* at mlx? unit ? 353 354#icpsp* at icp? unit ? # SCSI pass-through 355 356 357# IDE and related devices 358 359# PCMCIA IDE controllers 360wdc* at pcmcia? function ? 361 362# ST506, ESDI, and ISA IDE controllers 363# Use flags 0x01 if you want to try to use 32bits data I/O (the driver will 364# fall back to 16bits I/O if 32bits I/O are not functional). 365# Some controllers pass the initial 32bit test, but will fail later. 366wdc0 at isa? port 0x1f0 irq 14 flags 0x00 367wdc1 at isa? port 0x170 irq 15 flags 0x00 368 369# ATA (IDE) bus support 370atabus* at ata? 371 372# IDE drives 373wd* at atabus? drive ? # the drives themselves 374 375# ATAPI bus support 376atapibus* at atapi? 377 378# ATAPI devices 379cd* at atapibus? drive ? # ATAPI CD-ROM drives 380#sd* at atapibus? drive ? # ATAPI disk drives 381 382 383# Miscellaneous mass storage devices 384 385# ISA floppy 386fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers 387#fdc1 at isa? port 0x370 irq ? drq ? 388fd* at fdc? drive ? # the drives themselves 389# some machines need you to do this instead of fd* 390#fd0 at fdc0 drive 0 391 392# ISA CD-ROM devices 393#mcd0 at isa? port 0x300 irq 10 # Mitsumi CD-ROM drives 394 395# ISA tape devices 396# note: the wt driver conflicts unpleasantly with ed devices at the 397# same I/O address. The probe reprograms their EEPROMs. Don't 398# uncomment it unless you are actually using it. 399#wt0 at isa? port 0x308 irq 5 drq 1 # Archive and Wangtek QIC tape drives 400 401 402# Network Interfaces 403 404# PCI network interfaces 405#en* at pci? dev ? function ? # ENI/Adaptec ATM 406#ep* at pci? dev ? function ? # 3Com 3c59x/3c90x Ethernet 407#fpa* at pci? dev ? function ? # DEC DEFPA FDDI 408#fxp* at pci? dev ? function ? # Intel EtherExpress PRO 10+/100B 409#le* at pci? dev ? function ? # PCnet-PCI Ethernet 410#ne* at pci? dev ? function ? # NE2000-compatible Ethernet 411#tl* at pci? dev ? function ? # ThunderLAN-based Ethernet 412#tlp* at pci? dev ? function ? # DECchip 21x4x and clones 413 414# EISA network interfaces 415#ep* at eisa? slot ? # 3Com 3c579 Ethernet 416#fea* at eisa? slot ? # DEC DEFEA FDDI 417 418# ISA Plug-and-Play network interfaces 419#ep* at isapnp? # 3Com 3c509 Ethernet 420#ne* at isapnp? # NE2000-compatible Ethernet 421 422# PCMCIA network interfaces 423ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet 424mbe* at pcmcia? function ? # MB8696x based Ethernet 425ne* at pcmcia? function ? # NE2000-compatible Ethernet 426sm* at pcmcia? function ? # Megahertz Ethernet 427 428# ISA network interfaces 429ate0 at isa? port 0x2a0 irq ? # AT1700 430ec0 at isa? port 0x250 iomem 0xd8000 irq 9 # 3Com 3c503 Ethernet 431#eg0 at isa? port 0x280 irq 9 # 3c505 Ethernet cards 432#el0 at isa? port 0x300 irq 9 # 3c501 Ethernet cards 433ep0 at isa? port ? irq ? # 3c509 Ethernet cards 434#ef0 at isa? port 0x360 iomem 0xd0000 irq 7 # 3c507 435ai0 at isa? port 0x360 iomem 0xd0000 irq 7 # StarLAN 436fmv0 at isa? port 0x2a0 irq ? # FMV-180 series 437ix0 at isa? port 0x300 irq 10 # EtherExpress/16 438iy0 at isa? port 0x360 irq ? # EtherExpress PRO 10 ISA 439lc0 at isa? port 0x320 iomem ? irq ? # DEC EtherWORKS III (LEMAC) 440#depca0 at isa? port 0x300 iomem 0xc8000 iosiz 0x8000 irq 5 # DEPCA 441#le* at depca? 442#nele0 at isa? port 0x320 irq 9 drq 7 # NE2100 443#le* at nele? 444#bicc0 at isa? port 0x320 irq 10 drq 7 # BICC IsoLan 445#le* at bicc? 446ne0 at isa? port 0x280 irq 9 # NE[12]000 Ethernet cards 447ne1 at isa? port 0x300 irq 10 448sm0 at isa? port 0x300 irq 10 # SMC91C9x Ethernet 449we0 at isa? port 0x280 iomem 0xd0000 irq 9 # WD/SMC Ethernet 450we1 at isa? port 0x300 iomem 0xcc000 irq 10 451 452# MII bus support 453#mii* at tl? 454 455# MII PHY network interfaces 456#tlphy* at mii? dev ? # ThunderLAN PHYs 457#nsphy* at mii? dev ? # NS and compatible PHYs 458#ukphy* at mii? phy ? # generic unknown PHYs 459 460 461# Audio Devices 462 463# ISA Plug-and-Play audio devices 464#guspnp* at isapnp? # Gravis Ultra Sound PnP audio 465#sb* at isapnp? # SoundBlaster-compatible audio 466 467# ISA audio devices 468#gus0 at isa? port 0x220 irq 7 drq 1 drq2 6 # Gravis Ultra Sound 469#pas0 at isa? port 0x220 irq 7 drq 1 # ProAudio Spectrum 470#sb0 at isa? port 0x220 irq 7 drq 1 drq2 5 # SoundBlaster 471#wss0 at isa? port 0x530 irq 10 drq 0 drq2 1 # Windows Sound System 472 473# Audio support 474#audio* at audiobus? 475 476# The spkr driver provides a simple tone interface to the built in speaker. 477#spkr0 at pcppi? # PC speaker 478 479 480# Joysticks 481 482# ISA Plug-and-Play joysticks 483#joy* at isapnp? # Game ports (usually on audio cards) 484 485# ISA joysticks. Probe is a little strange; add only if you have one. 486#joy0 at isa? port 0x201 487 488 489# Miscellaneous Devices 490 491# Planetconnect Satellite receiver driver. 492#satlink0 at isa? port 0x300 drq 1 493 494 495# Pull in optional local configuration 496cinclude "arch/i386/conf/INSTALL.local" 497 498 499# Pseudo-Devices 500 501# disk/mass storage pseudo-devices 502#pseudo-device ccd 4 # concatenated/striped disk devices 503#pseudo-device fss # file system snapshot device 504pseudo-device md # memory disk device (ramdisk) 505#pseudo-device vnd # disk-like interface to files 506 507# network pseudo-devices 508#pseudo-device bpfilter # Berkeley packet filter 509#pseudo-device ipfilter # IP filter (firewall) and NAT 510pseudo-device loop # network loopback 511#pseudo-device ppp # Point-to-Point Protocol 512#pseudo-device sl # Serial Line IP 513#pseudo-device strip # Starmode Radio IP (Metricom) 514#pseudo-device tun # network tunneling over tty 515 516# miscellaneous pseudo-devices 517pseudo-device pty 2 # pseudo-terminals (Sysinst needs two) 518options NO_DEV_PTM 519#options RND_COM # use "com" randomness as well (BROKEN) 520