Home | History | Annotate | Line # | Download | only in conf
RAMDISK revision 1.2
      1 # $NetBSD: RAMDISK,v 1.2 2001/06/11 01:50:56 wiz Exp $
      2 
      3 # RAMDISK: Root/swap on ramdisk
      4 # This kernel is used to:
      5 #      format the disk (not yet implemented)
      6 #      partition the disk (disklabel)
      7 #      install the miniroot in the swap partition
      8 
      9 # GENERIC Sun2 (2/120, 2/170, 2/50, ...)
     10 # Supports root on: ie0, sd*, ...
     11 
     12 include "arch/sun2/conf/std.sun2"
     13 
     14 # Machines to be supported by this kernel
     15 #options 	FPU_EMULATE
     16 
     17 # Needs to be set per system.  i.e change these as you see fit
     18 maxusers	2
     19 
     20 # Standard system options
     21 #options 	KTRACE		# system call tracing
     22 #options 	SYSVMSG		# System V message queues
     23 #options 	SYSVSEM		# System V semaphores
     24 #options 	SYSVSHM		# System V shared memory
     25 #options 	SHMMAXPGS=1024	# 1024 pages is the default
     26 #options 	LKM		# loadable kernel modules
     27 #options 	INSECURE	# disable kernel security level
     28 #options 	UCONSOLE	# Allow non-root TIOCCONS
     29 
     30 # Which kernel debugger?  Uncomment either this:
     31 #options 	DDB
     32 # ... or these for KGDB (gdb remote target)
     33 #makeoptions DEBUG="-g"		# debugging symbols for gdb
     34 #options 	KGDB
     35 #options 	KGDBDEV=0x0C00	# ttya=0C00 ttyb=0C01
     36 
     37 # Other debugging options
     38 #options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
     39 #options 	DEBUG		# kernel debugging code
     40 #options 	DIAGNOSTIC	# extra kernel sanity checking
     41 #options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
     42 #options 	PMAP_DEBUG
     43 #options 	SCSIDEBUG
     44 #options 	SCSIVERBOSE		# Verbose SCSI errors
     45 
     46 # Compatibility options
     47 #options 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
     48 #options 	COMPAT_43	# and 4.3BSD and ...
     49 
     50 # Filesystem options
     51 file-system	FFS		# Berkeley Fast Filesystem
     52 file-system	NFS		# Sun NFS client support
     53 file-system	CD9660		# ISO 9660 + Rock Ridge file system
     54 #file-system	FDESC		# /dev/fd/*
     55 #file-system	KERNFS		# /kern
     56 #file-system	NULLFS		# loopback file system
     57 #file-system	OVERLAY		# overlay file system
     58 #file-system	PROCFS		# /proc
     59 #file-system	UNION		# union file system
     60 #file-system	MFS		# memory-based filesystem
     61 
     62 #options 	NFSSERVER	# nfs server support
     63 #options 	QUOTA		# FFS quotas
     64 options 	FFS_EI		# FFS Endian Independant support
     65 #options 	SOFTDEP         # FFS soft updates support.
     66 
     67 # Networking options
     68 options 	INET		# IP prototol stack support
     69 #options 	INET6		# IPV6
     70 #options 	IPSEC		# IP security
     71 #options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
     72 #options 	IPSEC_DEBUG	# debug for IP security
     73 options 	TCP_COMPAT_42	# compatibility with 4.2BSD TCP/IP
     74 #options 	GATEWAY		# IP packet forwarding
     75 #options 	ISO,TPIP	# OSI networking
     76 #options 	EON		# OSI tunneling over IP
     77 #options 	CCITT,LLC,HDLC	# X.25
     78 #options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
     79 
     80 # Work-around for root on slow servers (insurance...)
     81 #options 	NFS_BOOT_RWSIZE=1024
     82 #options 	NFS_BOOT_BOOTPARAM
     83 
     84 # Enable the hooks used for initializing the root memory-disk.
     85 options		MEMORY_DISK_HOOKS
     86 options		MEMORY_DISK_IS_ROOT	# force root on memory disk
     87 options		MEMORY_DISK_SERVER=0	# no userspace memory disk support
     88 options		MINIROOTSIZE=800	# size of memory disk, in blocks
     89 
     90 config		netbsd root on ? type ffs
     91 
     92 #### Main bus.
     93 mainbus0 at root
     94 
     95 #### Bus types.
     96 
     97 obio0	at mainbus? 		# all Sun-2
     98 obmem0	at mainbus?		# all Sun-2
     99 mbmem0	at mainbus?		# 2/120, 2/170
    100 mbio0	at mainbus?		# 2/120, 2/170
    101 #sun2vme0	at mainbus?	# 2/50, 2/130, 2/160
    102 #vme0	at sun2vme0		# mi VME attachment
    103 
    104 #### Standard system devices.
    105 
    106 ## The AM9513 clock chip.
    107 clock0  at obio0 addr 0x002800	# 2/120, 2/170
    108 
    109 ## The MM58167 time-of-day chip.
    110 tod0    at obio0 addr 0x003800	# 2/120, 2/170
    111 #tod0	at vme0 addr 0x200800	# 2/50, 2/130, 2/160
    112 
    113 #### Serial port configuration.
    114 
    115 ## Zilog 8530 serial chips.  Each has two-channels.
    116 ## zs0 is ttya and ttyb.  zs1 is the keyboard and mouse.
    117 ## zs0 is REQUIRED to use KGDB.
    118 zs0	at obio0 addr 0x002000	# 2/120, 2/170
    119 #zs0	at obio0 addr 0x7f2000	# 2/50
    120 zstty0	at zs0 channel 0	# ttya
    121 zstty1	at zs0 channel 1	# ttyb
    122 
    123 zs1	at obmem0 addr 0x780000	# 2/120, 2/170
    124 #zs1	at obio0 addr 0x7f1800	# 2/50
    125 kbd0	at zs1 channel 0	# keyboard
    126 #ms0	at zs1 channel 1	# mouse
    127 
    128 zs2	at mbmem0 addr 0x080800	# 2/120, 2/170 (first sc SCSI)
    129 zstty2	at zs2 channel 0	# ttyc
    130 zstty3	at zs2 channel 1	# ttyd
    131 
    132 zs3	at mbmem0 addr 0x081000	# 2/120, 2/170 (first sc SCSI)
    133 zstty4	at zs3 channel 0	# ttye
    134 zstty5	at zs3 channel 1	# ttyf
    135 
    136 zs4	at mbmem0 addr 0x084800	# 2/120, 2/170 (second sc SCSI)
    137 zstty6	at zs4 channel 0	# ttyg
    138 zstty7	at zs4 channel 1	# ttyh
    139 
    140 zs5	at mbmem0 addr 0x085000	# 2/120, 2/170 (second sc SCSI)
    141 zstty8	at zs4 channel 0	# ttyi
    142 zstty9	at zs4 channel 1	# ttyj
    143 
    144 #### Disk controllers and disks.
    145 
    146 ## PAL+logic-based "Sun SCSI 2" Multibus/VME SCSI controller.
    147 ## This driver has several flags which may be enabled using
    148 ## the "flags" directive.  Valid flags are:
    149 ##
    150 ## 0x0ff		Set (1<<target) to disable parity checking
    151 ## 0x100		Set this bit to disable DMA interrupts (poll)
    152 ## 0x200		Set this bit to disable DMA entirely (use PIO)
    153 ##
    154 ## For example: "flags 0x10f" would disable DMA interrupts,
    155 ## and disable parity for targets 0-3
    156 
    157 sc0	at mbmem0 addr 0x80000 ipl 2 flags 0xff
    158 #sc0 at vme0  addr 0x200000 ipl 2 vect 0x40 flags 0xff
    159 sc1	at mbmem0 addr 0x84000 ipl 2 flags 0xff
    160 
    161 ## NCR5380-based "Sun SCSI 3" VME SCSI controller.
    162 ## This driver has several flags which may be enabled by OR'ing
    163 ## the values and using the "flags" directive.
    164 ## Valid flags are:
    165 ##
    166 ##	0x01		Use DMA (may be polled)
    167 ##	0x02		Use DMA completion interrupts
    168 ##	0x04		Allow disconnect/reselect
    169 ##
    170 ## E.g. the following would enable DMA, interrupts, and reselect:
    171 ## si0	at vme0 addr 0x200000 ipl 3 vect 0x40 flags 0x07
    172 ##
    173 ## By default, DMA is enabled in the driver.
    174 
    175 #si0	at vme0 addr 0x200000 ipl 2 vect 0x40
    176 
    177 ## These entries find devices on all SCSI busses and assign
    178 ## unit numbers dynamically.
    179 scsibus* at sc?
    180 #scsibus* at si?
    181 sd*	at scsibus? target ? lun ?		# SCSI disks
    182 st*	at scsibus? target ? lun ?		# SCSI tapes
    183 cd*	at scsibus? target ? lun ?		# SCSI CD-ROMs
    184 #ch*	at scsibus? target ? lun ?		# SCSI changer devices
    185 #ss*	at scsibus? target ? lun ?		# SCSI scanners
    186 #ses*	at scsibus? target ? lun ?		# SCSI SES/SAF-TE
    187 #uk*	at scsibus? target ? lun ?		# unknown SCSI
    188 
    189 ## Xylogics 450 or 451 Multibus/VME SMD disk controllers and disks.
    190 #xyc0	at mbio0 addr 0xee40 ipl 2 
    191 #xyc0	at vme0 addr 0xee40 ipl 2 vect 0x48
    192 #xyc1	at mbio0 addr 0xee48 ipl 2 
    193 #xyc1	at vme0 addr 0xee48 ipl 2 vect 0x49
    194 #xy*	at xyc? drive ?
    195 
    196 ## Memory-disk device.
    197 pseudo-device	md		2
    198 
    199 #### Network interfaces.
    200 
    201 ## Intel Ethernet (onboard, or Multibus/VME)
    202 #ie0	at obio0 0x7f0800 ipl 3		# 2/50
    203 ie0	at mbmem0 addr 0x88000 ipl 3
    204 
    205 ## Frame buffers.
    206 
    207 ## Sun "bwtwo" black and white framebuffer.
    208 #bwtwo0  at obmem0 addr 0x00700000	# 2/120, 2/170
    209 #bwtwo0	at obio0 addr 0x0		# 2/50
    210 
    211 #### Miscellaneous.
    212 pseudo-device	loop		1	# network loopback
    213 #pseudo-device	bpfilter	8	# packet filter
    214 pseudo-device	sl		2	# CSLIP
    215 #pseudo-device	ppp		2	# PPP
    216 #pseudo-device	tun		2	# network tunneling over tty
    217 #pseudo-device	gre		2	# generic L3 over IP tunnel
    218 #pseudo-device	ipfilter		# ip filter
    219 #pseudo-device	gif		4	# IPv[46] over IPv[46] tunnel (RFC1933)
    220 #pseudo-device	faith		1	# IPv[46] tcp relay translation i/f
    221 #pseudo-device	stf		1	# 6to4 IPv6 over IPv4 encapsulation
    222 # rnd is EXPERIMENTAL
    223 #pseudo-device	rnd			# /dev/random and in-kernel generator
    224 
    225 #pseudo-device	pty		32	# pseudo-terminals
    226 #pseudo-device	vnd		4	# paging to files
    227 #pseudo-device	ccd		4	# concatenated disks
    228 #pseudo-device	raid		4	# RAIDframe disk driver
    229 #options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
    230