1*f71d13bdSmaxv# $NetBSD: DISKLESS,v 1.59 2018/08/01 20:04:14 maxv Exp $ 2a0456abbSfredette 3a0456abbSfredette# DISKLESS Sun2 (2/120, 2/170, 2/50, ...) 46aa55077Sfredette# Supports root on: ie0, ec0 5a0456abbSfredette 6a0456abbSfredetteinclude "arch/sun2/conf/std.sun2" 7a0456abbSfredette 8d1b38523Satatat#options INCLUDE_CONFIG_FILE # embed config file in kernel binary 9d1b38523Satatat 10*f71d13bdSmaxv#ident "DISKLESS-$Revision: 1.59 $" 116cc162d5Stsutsui 126cc162d5Stsutsuimakeoptions COPTS="-Os" # optimize for size 13a0456abbSfredette 14a0456abbSfredette# Machines to be supported by this kernel 15a0456abbSfredette#options FPU_EMULATE 16a0456abbSfredette 17a0456abbSfredette# Needs to be set per system. i.e change these as you see fit 1874299d30Stsutsuimaxusers 4 19a0456abbSfredette 20a0456abbSfredette# Standard system options 21a0456abbSfredetteoptions KTRACE # system call tracing 22a0456abbSfredetteoptions SYSVMSG # System V message queues 23a0456abbSfredetteoptions SYSVSEM # System V semaphores 24a0456abbSfredetteoptions SYSVSHM # System V shared memory 25a0456abbSfredette#options INSECURE # disable kernel security level 2674299d30Stsutsui#options USERCONF # userconf(4) support 276d265bd8Sjdolecek#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 28f68a9f1fSatatat#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 29a0456abbSfredette 30a0456abbSfredette# Which kernel debugger? Uncomment either this: 31a0456abbSfredetteoptions DDB 32a0456abbSfredette# ... or these for KGDB (gdb remote target) 337fe7089aSuebayasipseudo-device ksyms 34a0456abbSfredette#makeoptions DEBUG="-g" # debugging symbols for gdb 35a0456abbSfredette#options KGDB 3699bccc3cSlukem#options KGDB_DEV=0x0C00 # ttya=0C00 ttyb=0C01 37a0456abbSfredette 38a0456abbSfredette# Other debugging options 39a0456abbSfredette#options DDB_HISTORY_SIZE=100 # enable history editing in DDB 40a0456abbSfredette#options DEBUG # kernel debugging code 41a0456abbSfredette#options DIAGNOSTIC # extra kernel sanity checking 42a0456abbSfredette#options PMAP_DEBUG 43a0456abbSfredette#options SCSIDEBUG 44a0456abbSfredette#options SCSIVERBOSE # Verbose SCSI errors 45a0456abbSfredette 4640ac8480Swiz# Compatibility options 4795772a88Smrginclude "conf/compat_netbsd16.config" 48a0456abbSfredette#options COMPAT_SUNOS # can run SunOS 4.1.1 executables 496aa55077Sfredette#options COMPAT_AOUT_M68K # support for NetBSD a.out executables 5074299d30Stsutsui#options EXEC_AOUT # support for a.out executables 51a0456abbSfredette 52a0456abbSfredette# Filesystem options 53a0456abbSfredette#file-system FFS # Berkeley Fast Filesystem 54a0456abbSfredettefile-system NFS # Sun NFS client support 55a0456abbSfredette#file-system CD9660 # ISO 9660 + Rock Ridge file system 5674299d30Stsutsui#file-system FDESC # /dev/fd/* 57a0456abbSfredettefile-system KERNFS # /kern 58a0456abbSfredettefile-system NULLFS # loopback file system 5974299d30Stsutsui#file-system OVERLAY # overlay file system 60a0456abbSfredette#file-system PROCFS # /proc 6174299d30Stsutsui#file-system UNION # union file system 62a0456abbSfredettefile-system MFS # memory-based filesystem 6393c362d7Schristosfile-system PTYFS # /dev/pts/N support 64a0456abbSfredette 656aa55077Sfredette#options NFSSERVER # nfs server support 66063f96f3Sbouyer#options QUOTA # legacy UFS quotas 67063f96f3Sbouyer#options QUOTA2 # new, in-filesystem UFS quotas 684cbd24b2Swiz#options FFS_EI # FFS Endian Independent support 693f0f3de6Syamt#options NFS_V2_ONLY # Exclude NFS3 code to save space 70a0456abbSfredette 71a0456abbSfredette# Networking options 727da71682Sisakioptions INET # IP protocol stack support 73a0456abbSfredette#options INET6 # IPV6 74a0456abbSfredette#options IPSEC # IP security 75a0456abbSfredette#options IPSEC_DEBUG # debug for IP security 76a0456abbSfredette#options GATEWAY # IP packet forwarding 7701b024cdSabs#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 78a0456abbSfredette 79a0456abbSfredette# Work-around for root on slow servers (insurance...) 80a0456abbSfredetteoptions NFS_BOOT_RWSIZE=1024 81a0456abbSfredetteoptions NFS_BOOT_BOOTPARAM 82a0456abbSfredette 83a0456abbSfredetteconfig netbsd root on ? type ? 84a0456abbSfredette 85a0456abbSfredette#### Main bus. 86a0456abbSfredettemainbus0 at root 87a0456abbSfredette 88a0456abbSfredette#### Bus types. 89a0456abbSfredette 90a0456abbSfredetteobio0 at mainbus? # all Sun-2 91a0456abbSfredetteobmem0 at mainbus? # all Sun-2 92a0456abbSfredettembmem0 at mainbus? # 2/120, 2/170 93a0456abbSfredettembio0 at mainbus? # 2/120, 2/170 949e33b7b6Sfredettesun68kvme0 at mainbus? # 2/50, 2/130, 2/160 959e33b7b6Sfredettevme0 at sun68kvme0 # mi VME attachment 96a0456abbSfredette 97a0456abbSfredette#### Standard system devices. 98a0456abbSfredette 99a0456abbSfredette## The AM9513 clock chip. 100a0456abbSfredetteclock0 at obio0 addr 0x002800 # 2/120, 2/170 1019e33b7b6Sfredetteclock0 at obio0 addr 0x7f2800 # 2/50, 2/130, 2/160 102a0456abbSfredette 103a0456abbSfredette## The MM58167 time-of-day chip. 104a0456abbSfredettetod0 at obio0 addr 0x003800 # 2/120, 2/170 1059e33b7b6Sfredettetod0 at vme0 addr 0x200800 # 2/50, 2/130, 2/160 106a0456abbSfredette 107a0456abbSfredette#### Serial port configuration. 108a0456abbSfredette 1099e33b7b6Sfredette## Zilog 8530 serial chips. Each has two channels. 110a0456abbSfredette## zs0 is ttya and ttyb. zs1 is the keyboard and mouse. 111a0456abbSfredette## zs0 is REQUIRED to use KGDB. 112a0456abbSfredettezs0 at obio0 addr 0x002000 # 2/120, 2/170 1139e33b7b6Sfredettezs0 at obio0 addr 0x7f2000 # 2/50 114a0456abbSfredettezs1 at obmem0 addr 0x780000 # 2/120, 2/170 1159e33b7b6Sfredettezs1 at obio0 addr 0x7f1800 # 2/50 116a0456abbSfredette#zs2 at mbmem0 addr 0x080800 # 2/120, 2/170 (first sc SCSI) 117a0456abbSfredette#zs3 at mbmem0 addr 0x081000 # 2/120, 2/170 (first sc SCSI) 118a0456abbSfredette#zs4 at mbmem0 addr 0x084800 # 2/120, 2/170 (second sc SCSI) 119a0456abbSfredette#zs5 at mbmem0 addr 0x085000 # 2/120, 2/170 (second sc SCSI) 1209e33b7b6Sfredettezstty* at zs? channel ? # ttya 1219e33b7b6Sfredettekbd0 at zstty? # keyboard 1229e33b7b6Sfredettems0 at zstty? # mouse 123a0456abbSfredette 124a0456abbSfredette#### Disk controllers and disks. 125a0456abbSfredette 126a0456abbSfredette## PAL+logic-based "Sun SCSI 2" Multibus/VME SCSI controller. 127a0456abbSfredette## This driver has several flags which may be enabled using 128a0456abbSfredette## the "flags" directive. Valid flags are: 129a0456abbSfredette## 130a0456abbSfredette## 0x0ff Set (1<<target) to disable parity checking 131a0456abbSfredette## 0x100 Set this bit to disable DMA interrupts (poll) 132a0456abbSfredette## 0x200 Set this bit to disable DMA entirely (use PIO) 133a0456abbSfredette## 134a0456abbSfredette## For example: "flags 0x10f" would disable DMA interrupts, 135a0456abbSfredette## and disable parity for targets 0-3 136a0456abbSfredette 137a0456abbSfredette#sc0 at mbmem0 addr 0x80000 ipl 2 flags 0xff 1389e33b7b6Sfredette#sc0 at vme0 addr 0x200000 irq 2 vect 0x40 flags 0xff 139a0456abbSfredette#sc1 at mbmem0 addr 0x84000 ipl 2 flags 0xff 140a0456abbSfredette 141a0456abbSfredette## NCR5380-based "Sun SCSI 3" VME SCSI controller. 142a0456abbSfredette## This driver has several flags which may be enabled by OR'ing 143a0456abbSfredette## the values and using the "flags" directive. 144a0456abbSfredette## Valid flags are: 145a0456abbSfredette## 146a0456abbSfredette## 0x01 Use DMA (may be polled) 147a0456abbSfredette## 0x02 Use DMA completion interrupts 148a0456abbSfredette## 0x04 Allow disconnect/reselect 149a0456abbSfredette## 150a0456abbSfredette## E.g. the following would enable DMA, interrupts, and reselect: 151a0456abbSfredette## si0 at vme0 addr 0x200000 ipl 3 vect 0x40 flags 0x07 152a0456abbSfredette## 153a0456abbSfredette## By default, DMA is enabled in the driver. 154a0456abbSfredette 1559e33b7b6Sfredette#si0 at vme0 addr 0x200000 irq 2 vect 0x40 156a0456abbSfredette 157a0456abbSfredette## These entries find devices on all SCSI busses and assign 158a0456abbSfredette## unit numbers dynamically. 159a0456abbSfredette#scsibus* at sc? 160a0456abbSfredette#scsibus* at si? 161a0456abbSfredette#sd* at scsibus? target ? lun ? # SCSI disks 162a0456abbSfredette#st* at scsibus? target ? lun ? # SCSI tapes 163a0456abbSfredette#cd* at scsibus? target ? lun ? # SCSI CD-ROMs 164a0456abbSfredette#ch* at scsibus? target ? lun ? # SCSI changer devices 165a0456abbSfredette#ss* at scsibus? target ? lun ? # SCSI scanners 166a0456abbSfredette#ses* at scsibus? target ? lun ? # SCSI SES/SAF-TE 167a0456abbSfredette#uk* at scsibus? target ? lun ? # unknown SCSI 168a0456abbSfredette 169af0a38f1Sfredette# support old SCSI devices that don't understand the INQUIRY command 170af0a38f1Sfredette#options SCSI_OLD_NOINQUIRY 171af0a38f1Sfredette 172a0456abbSfredette## Xylogics 450 or 451 Multibus/VME SMD disk controllers and disks. 173a0456abbSfredette#xyc0 at mbio0 addr 0xee40 ipl 2 1746aa55077Sfredette#xyc0 at vme0 addr 0xee40 irq 2 vect 0x48 175a0456abbSfredette#xyc1 at mbio0 addr 0xee48 ipl 2 1766aa55077Sfredette#xyc1 at vme0 addr 0xee48 irq 2 vect 0x49 177a0456abbSfredette#xy* at xyc? drive ? 178a0456abbSfredette 179a0456abbSfredette## Memory-disk device. 180afdfce8eShannkenpseudo-device md 181a0456abbSfredette 182a0456abbSfredette#### Network interfaces. 183a0456abbSfredette 184a0456abbSfredette## Intel Ethernet (onboard, or Multibus/VME) 1859e33b7b6Sfredetteie0 at obio0 addr 0x7f0800 ipl 3 # 2/50 186a0456abbSfredetteie0 at mbmem0 addr 0x88000 ipl 3 1879e33b7b6Sfredetteie1 at mbmem0 addr 0x8c000 ipl 3 1889e33b7b6Sfredette## VME: the first [addr,len] pair specifies the device registers; 1899e33b7b6Sfredette## the second pair specifies the on-board memory buffer 1909e33b7b6Sfredetteie1 at vme0 addr 0xe88000,0xe00000 len -1,0x40000 irq 3 vect 0x75 1919e33b7b6Sfredette 1929e33b7b6Sfredette## 3Com Ethernet (Multibus only) 1939e33b7b6Sfredetteec0 at mbmem0 addr 0xe0000 ipl 3 1949e33b7b6Sfredetteec1 at mbmem0 addr 0xe2000 ipl 3 195491ce070Stsutsui# limit NFS R/W size for poor ec(4) interfaces 196491ce070Stsutsuioptions NFS_RSIZE=1024,NFS_WSIZE=1024 197a0456abbSfredette 198a0456abbSfredette## Frame buffers. 199a0456abbSfredette 200a0456abbSfredette## Sun "bwtwo" black and white framebuffer. 2019e33b7b6Sfredettebwtwo0 at obmem0 addr 0x700000 # 2/120, 2/170 2029e33b7b6Sfredettebwtwo0 at obio0 addr 0x0 # 2/50 2039e33b7b6Sfredette 2049e33b7b6Sfredette## PROM console driver -- if all else fails 2059e33b7b6Sfredettepcons0 at mainbus0 # PROM console 206a0456abbSfredette 207a0456abbSfredette#### Miscellaneous. 208dc14ae83Schristospseudo-device loop # network loopback 209926f98bcSrpaulo#pseudo-device bpfilter # packet filter 2106ff13154Scube#pseudo-device sl # CSLIP 2116ff13154Scube#pseudo-device ppp # PPP 2126ff13154Scube#pseudo-device tun # network tunneling over tty 2136ff13154Scube#pseudo-device gre # generic L3 over IP tunnel 214*f71d13bdSmaxv#pseudo-device npf # NPF packet filter 2156ff13154Scube#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 2166ff13154Scube#pseudo-device faith # IPv[46] tcp relay translation i/f 2176ff13154Scube#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 218a0456abbSfredette 2197be28566Stsutsuipseudo-device pty # pseudo-terminals 2206ff13154Scube#pseudo-device vnd # paging to files 221dc14ae83Schristos#pseudo-device ccd # concatenated disks 2221cc8b68dSchristos#pseudo-device raid # RAIDframe disk driver 223a0456abbSfredette#options RAID_AUTOCONFIG # auto-configuration of RAID components 224835e533bSpooka#pseudo-device fss # file system snapshot device 225fde6ae6fSlukem 22674299d30Stsutsui#pseudo-device clockctl # user control of clock subsystem 227