INSTALL revision 1.13
11.13Sminoura#	$NetBSD: INSTALL,v 1.13 1999/04/12 16:11:53 minoura Exp $
21.1Soki
31.1Soki#
41.7Sminoura#	INSTALL -- installation kernel.
51.1Soki#
61.1Soki
71.7Sminourainclude "arch/x68k/conf/std.x68k"
81.1Soki
91.9Sminouramaxusers	8
101.1Soki
111.7Sminoura## Enable the hooks used for initializing the memory-disk.
121.7Sminouraoptions 	MEMORY_DISK_HOOKS
131.7Sminouraoptions 	MEMORY_DISK_IS_ROOT     # Force root on memory-disk
141.7Sminouraoptions 	MEMORY_DISK_SERVER=0	# No user space hooks
151.13Sminoura#options 	MINIROOTSIZE=2400	# 1.2M, same as a 130mm floppy
161.13Sminoura#options 	MINIROOTSIZE=2880	# 1.44M, same as a 90mm floppy
171.13Sminouraoptions 	MINIROOTSIZE=2048
181.13Sminouraoptions 	BUFCACHE=10
191.7Sminoura
201.7Sminoura## System kernel configuration.  See options(4) for more detail.
211.7Sminoura
221.7Sminoura
231.7Sminoura## Options for variants of the m68k MPU
241.7Sminoura## you must have at least the correct one; REQUIRED
251.1Sokioptions 	M68030
261.1Sokioptions 	M68040
271.1Sokioptions 	M68060
281.1Soki
291.1Soki
301.7Sminoura#### System options specific to the x68k port
311.1Soki
321.10Sminoura#options 	EXTENDED_MEMORY		# support for >16MB memory
331.7Sminouraoptions 	FPU_EMULATE		# software fpu emulation for MC68030
341.7Sminouraoptions 	FPSP			# floating point emulation for MC68040
351.1Sokioptions 	M060SP			# int/fp emulation for MC68060
361.7Sminouraoptions 	JUPITER			# support for "Jupiter-X" accelerator
371.12Sminoura#options 	MAPPEDCOPY		# use page mapping for large copyin/copyout
381.9Sminoura#options 	ZSCONSOLE,ZSCN_SPEED="9600"	# use serial console
391.7Sminoura
401.1Soki
411.7Sminoura#### System options that are the same for all ports
421.1Soki
431.7Sminoura## Root device configuration: change the ?'s if you are going to use a
441.7Sminoura## nonstandard root partition (other than where the kernel is booted from)
451.7Sminoura## and/or nonstandard root type (not ffs or nfs).  Normally this can be
461.7Sminoura## automagically determined at boot time.
471.1Soki
481.7Sminouraconfig		netbsd	root on ? type ?
491.10Sminoura#config		netbsd	root on sd0 type ffs
501.7Sminoura
511.7Sminoura## RTC is offset from GMT; -540 means JST-9
521.7Sminouraoptions 	RTC_OFFSET=-540	# hardware clock is this many mins. west of GMT
531.7Sminoura
541.7Sminoura## System call tracing (see ktrace(1)).
551.7Sminoura#options 	KTRACE
561.7Sminoura
571.7Sminoura## Collect statistics on kernel malloc's and free's.  This does have a
581.7Sminoura## significant performance hit on slower machines, so it is intended for
591.7Sminoura## diagnostic use only.
601.7Sminoura#options 	KMEMSTATS
611.7Sminoura
621.7Sminoura## System V compatible IPC subsystem.  (msgctl(2), semctl(2), and shmctl(2))
631.7Sminoura#options 	SYSVMSG		# System V message queues
641.7Sminoura#options 	SYSVSEM		# System V semaphores
651.7Sminoura#options 	SYSVSHM		# System V shared memory
661.7Sminoura#options 	SHMMAXPGS=1024	# 1024 pages is the default
671.7Sminoura
681.7Sminoura## Loadable kernel module support
691.7Sminoura#options 	LKM
701.7Sminoura
711.7Sminoura## NFS boot options; not supported currently: needs nfsboot program
721.7Sminoura#options 	NFS_BOOT_BOOTPARAM
731.7Sminoura#options 	NFS_BOOT_BOOTP
741.7Sminoura#options 	NFS_BOOT_DHCP
751.7Sminoura
761.7Sminoura#### Debugging options
771.7Sminoura
781.7Sminoura## The DDB in-kernel debugger runs at panic (unless DDB_ONPANIC=0), or at
791.7Sminoura## serial console break or keyboard reset, where the PROM would normally
801.7Sminoura## intercept.  DDB_HISTORY_SIZE adds up/down arrow command history.
811.7Sminoura#options 	DDB			# kernel dynamic debugger
821.7Sminoura#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
831.7Sminoura#options 	DDB_ONPANIC=1		# see also sysctl(8): `ddb.onpanic'
841.7Sminoura#options 	PANICBUTTON		# interrupt switch invokes DDB
851.7Sminoura
861.7Sminoura## You may also use gdb, on another computer connected to this machine over
871.7Sminoura## a serial port.  Both KGDBDEV and KGDBRATE should be specified; KGDBDEV is
881.7Sminoura## a dev_t encoded device number of the serial port to use.
891.7Sminoura## KGDB is not supported for now.
901.7Sminoura#options 	KGDB		# support for kernel gdb
911.7Sminoura#options 	KGDBDEV=0xc00	# kgdb device number
921.7Sminoura#options 	KGDBRATE=9600	# baud rate
931.7Sminoura
941.7Sminoura## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file),
951.7Sminoura## such that gdb(1) can be used on a kernel coredump.
961.7Sminoura
971.7Sminoura#makeoptions 	DEBUG="-g"
981.12Sminouramakeoptions	COPTS="-Os -fno-inline"
991.7Sminoura
1001.7Sminoura## Adds code to the kernel that does internal consistency checks, and will
1011.7Sminoura## cause the kernel to panic if corruption of internal data structures
1021.7Sminoura## is detected.
1031.7Sminoura#options 	DIAGNOSTIC	# extra kernel sanity checking
1041.7Sminoura
1051.7Sminoura## Enable (possibly expensive) debugging code that may also display messages
1061.7Sminoura## on the system console
1071.7Sminoura#options 	DEBUG
1081.7Sminoura
1091.7Sminoura## Make SCSI error messages more verbose when explaining their meanings.
1101.7Sminoura#options 	SCSIVERBOSE
1111.7Sminoura
1121.7Sminoura## `INSECURE' turns off the kernel security level (securelevel = 0 always).
1131.7Sminoura## This allows writing to /dev/mem, loading kernel modules while multi-user,
1141.7Sminoura## and other insecurities good only for development work.  Do not use this
1151.7Sminoura## option on a production machine.
1161.7Sminoura#options 	INSECURE
1171.7Sminoura
1181.7Sminoura## Allow non-root users to grab /dev/console with programs such as xconsole.
1191.7Sminoura## `xconsole' therefore does not need setuid root with this option enabled.
1201.7Sminoura#options 	UCONSOLE
1211.7Sminoura
1221.7Sminoura## `FDSCRIPTS' allows non-readable but executable scripts by providing a
1231.7Sminoura## pre-opened opaque file to the script interpreter.  `SETUIDSCRIPTS',
1241.7Sminoura## which implies FDSCRIPTS, allows scripts to be set-user-id using the same
1251.7Sminoura## opaque file mechanism.  Perl calls this "secure setuid scripts."
1261.7Sminoura
1271.7Sminoura#options 	FDSCRIPTS
1281.7Sminoura#options 	SETUIDSCRIPTS
1291.7Sminoura
1301.7Sminoura## Options for compatibility with previous releases foreign system binaries.
1311.7Sminoura
1321.13Sminoura#options 	COMPAT_43	# 4.3BSD system interfaces
1331.7Sminoura#options 	COMPAT_09	# NetBSD 0.9 binary compatibility
1341.7Sminoura#options 	COMPAT_10	# NetBSD 1.0 binary compatibility
1351.7Sminoura#options 	COMPAT_11	# NetBSD 1.1 binary compatibility
1361.7Sminoura#options 	COMPAT_12	# NetBSD 1.2 binary compatibility
1371.7Sminoura#options 	COMPAT_13	# NetBSD 1.3 binary compatibility
1381.7Sminoura#options 	COMPAT_M68K4K	# NetBSD/m68k4k binaries
1391.7Sminoura#options 	COMPAT_SUNOS	# SunOS 4.x binary compatibility; broken
1401.10Sminoura#options 	COMPAT_LINUX	# Linux/m68k binary compatibility
1411.10Sminoura#options 	EXEC_ELF32	# 32-bit ELF executables (Linux)
1421.7Sminoura
1431.7Sminoura## File systems.
1441.7Sminourafile-system	FFS		# Berkeley Fast Filesystem
1451.7Sminourafile-system	NFS		# Sun NFS-compatible filesystem client
1461.7Sminourafile-system	KERNFS		# kernel data-structure filesystem
1471.7Sminoura#file-system	NULLFS		# NULL layered filesystem
1481.7Sminourafile-system	MFS		# memory-based filesystem
1491.7Sminoura#file-system	FDESC		# user file descriptor filesystem
1501.7Sminoura#file-system	UMAPFS		# uid/gid remapping filesystem
1511.7Sminoura#file-system	LFS		# Log-based filesystem (still experimental)
1521.7Sminoura#file-system	PORTAL		# portal filesystem (still experimental)
1531.13Sminoura#file-system	PROCFS		# /proc
1541.7Sminourafile-system	CD9660		# ISO 9660 + Rock Ridge file system
1551.7Sminoura#file-system	UNION		# union file system
1561.7Sminourafile-system	MSDOSFS		# MS-DOS FAT filesystem(s).
1571.7Sminoura#file-system 	ADOSFS		# AmigaDOS filesystem
1581.7Sminoura
1591.7Sminoura## File system options.
1601.7Sminoura#options 	NFSSERVER	# Sun NFS-compatible filesystem server
1611.7Sminoura#options 	QUOTA		# FFS quotas
1621.7Sminoura#options 	FFS_EI		# FFS Endian Independent support
1631.7Sminoura
1641.7Sminoura## Network protocol support.  In most environments, INET is required.
1651.7Sminouraoptions 	INET		# IP (Internet Protocol) v4
1661.7Sminouraoptions 	TCP_COMPAT_42	# 4.2BSD IP implementation compatibility
1671.7Sminoura#options 	GATEWAY		# packet forwarding ("router switch")
1681.7Sminoura#options 	MROUTING	# packet forwarding of multicast packets
1691.7Sminoura#options 	DIRECTED_BROADCAST	# allow broadcasts through routers
1701.7Sminoura#options 	NS		# Xerox NS networking
1711.7Sminoura#options 	NSIP		# Xerox NS tunneling over IP
1721.7Sminoura#options 	ISO,TPIP	# OSI networking
1731.7Sminoura#options 	EON		# OSI tunneling over IP
1741.7Sminoura#options 	CCITT,LLC,HDLC	# X.25 packet switched protocol
1751.7Sminoura#options 	NETATALK	# AppleTalk (over Ethernet) protocol
1761.7Sminoura#options 	NTP		# Network Time Protocol in-kernel support
1771.7Sminoura#options 	PPS_SYNC	# Add serial line synchronization for NTP
1781.7Sminoura#options 	PFIL_HOOKS	# Add pfil(9) hooks, intended for custom LKMs.
1791.7Sminoura#options 	IPFILTER_LOG	# Add ipmon(8) logging for ipfilter device
1801.7Sminoura#options 	PPP_BSDCOMP	# Add BSD compression to ppp device
1811.7Sminoura#options 	PPP_DEFLATE	# Add deflate (libz) compression to ppp device
1821.7Sminoura#options 	PPP_FILTER	# Add active filters for ppp (via bpf)
1831.7Sminoura
1841.7Sminoura
1851.7Sminoura
1861.7Sminoura#### Device configurations
1871.7Sminoura
1881.9Sminoura## Fundamental devices; see also std.x68k
1891.9Sminouradmac0	at intio0 addr 0xe84000		# DMA controler
1901.9Sminouraxel0	at intio0
1911.9Sminouraopm0	at intio0 addr 0xe90000		# OPM: required for fdc
1921.7Sminoura
1931.7Sminoura## Display devices and console
1941.7Sminouragrfbus0	at mainbus0			# bitmapped displays
1951.7Sminouragrf0	at grfbus0			# multiplane graphics
1961.7Sminoura#grf1	at grfbus0			# flexible graphics
1971.7Sminoura
1981.9Sminourakbd0	at mfp0				# standard keyboard
1991.7Sminouraite0	at grf0				# internal terminal emulator
2001.9Sminoura#options 	ITE_KERNEL_ATTR=4	# bold for kernel messages
2011.9Sminoura					# see /sys/arch/x68k/dev/itevar.h
2021.12Sminoura#pseudo-device	pow		2	# software power switch
2031.7Sminoura
2041.7Sminoura## floppy disks
2051.9Sminourafdc0	at intio0 addr 0xe94000 intr 96 dma 0 dmaintr 100 # floppy controler
2061.7Sminourafd*	at fdc0 unit ?			# builtin floppy drives
2071.7Sminoura
2081.7Sminoura## SCSI devices
2091.9Sminourascsirom0 at intio0				# SCSI BIOS
2101.9Sminourascsirom1 at intio0				# SCSI BIOS
2111.9Sminouraspc*	at scsirom?				# genuin SCSI
2121.7Sminourascsibus* at spc?
2131.9Sminouramha0	at scsirom?				# Mankai MK-HA1 (Mach-2)
2141.7Sminourascsibus* at mha0
2151.1Soki
2161.1Sokisd*	at scsibus? target ? lun ?	# SCSI disks
2171.1Sokicd*	at scsibus? target ? lun ?	# SCSI CD-ROMs
2181.7Sminourast*	at scsibus? target ? lun ?	# SCSI tapes
2191.7Sminoura#ss*	at scsibus? target ? lun ?	# SCSI scanners
2201.7Sminoura#ch*	at scsibus? target ? lun ?	# SCSI changer devices
2211.7Sminoura#uk*	at scsibus? target ? lun ?	# SCSI unknown devices
2221.7Sminoura
2231.7Sminoura## Serial ports
2241.9Sminourazsc0	at intio0 addr 0xe98000 intr 112
2251.7Sminourazstty0	at zsc0 channel 0		# built-in RS-232C
2261.7Sminoura#ms0	at zsc0 channel 1		# standard mouse
2271.9Sminoura#zsc1	at intio0 addr 0xeafc00 intr 113
2281.7Sminoura#zstty2	at zsc1 channel 0
2291.7Sminoura#zstty3	at zsc1 channel 1
2301.9Sminoura#zsc2	at intio0 addr 0xeafc10 intr 114
2311.7Sminoura#zstty4	at zsc2 channel 0
2321.7Sminoura#zstty5	at zsc2 channel 1
2331.7Sminoura
2341.13Sminoura#pseudo-device	sram			# battery-backuped static RAM
2351.13Sminoura#pseudo-device	bell			# OPM bell
2361.9Sminoura
2371.7Sminoura#xcom0	at mainbus0			# NS16550 fast serial
2381.7Sminoura#xcom1	at mainbus0
2391.7Sminoura
2401.7Sminoura## Audio device; broken
2411.9Sminoura#okiadpcm0 at intio0 addr 0xe92000 intr 106 errintr 107 dma 3
2421.7Sminoura#audio*	at okiadpcm*
2431.7Sminoura
2441.7Sminoura## Network interfaces
2451.9Sminouraneptune0 at intio0 addr 0xece000 intr 249	# Neptune-X
2461.9Sminouraneptune1 at intio0 addr 0xece400 intr 249	# Neptune-X at alt. addr.
2471.9Sminourane0	at neptune? addr 0x300			# NE2000 or clone
2481.10Sminoura#se0	at scsibus? target ? lun ?		# Ether+; broken
2491.7Sminoura
2501.7Sminoura
2511.7Sminoura#### Pseudo devices
2521.7Sminoura
2531.7Sminoura## A disk-like interface to files.  Can be used to create floppy, CD,
2541.7Sminoura## miniroot images, etc.
2551.7Sminoura
2561.12Sminoura#pseudo-device	vnd	4
2571.7Sminoura
2581.7Sminoura## Concatenated and striped disks; with this, you can create a software-based
2591.7Sminoura## disk array similar to a "RAID 0" setup.  See ccd(4).
2601.7Sminoura
2611.9Sminoura#pseudo-device	ccd	4
2621.9Sminoura
2631.9Sminoura## RAIDframe disk driver: software RAID driver.  See raid(4).
2641.9Sminoura
2651.9Sminoura#pseudo-device	raid	4
2661.7Sminoura
2671.7Sminoura## Memory disk device, used on boot floppies with compressed
2681.7Sminoura## kernel-plus-root-disk images.
2691.7Sminoura
2701.7Sminourapseudo-device	md	1
2711.7Sminoura
2721.7Sminoura## Loopback network interface; required
2731.7Sminourapseudo-device	loop
2741.7Sminoura
2751.7Sminoura## SLIP and CSLIP interfaces, for IP over a serial line.
2761.7Sminourapseudo-device	sl		1
2771.7Sminoura
2781.7Sminoura## PPP, the successor to SLIP.  See pppd(8).
2791.13Sminoura#pseudo-device	ppp		1
2801.7Sminoura
2811.7Sminoura## Network "tunnel" device, allowing protocol stacks to run in the userland.
2821.7Sminoura## This is used by the third-party user-mode "ppp" program, and others.
2831.7Sminoura#pseudo-device	tun		4
2841.9Sminoura
2851.9Sminoura## Generic L3 over IP tunnel
2861.9Sminoura#pseudo-device	gre		2	# generic L3 over IP tunnel
2871.7Sminoura
2881.7Sminoura## Berkeley Packet Filter, required to run RARPD.  A generic C-language
2891.7Sminoura## interface that allows selective examining of incoming packets.
2901.7Sminoura#pseudo-device	bpfilter	8
2911.7Sminoura
2921.7Sminoura## IP Filter, used in firewall and NAT applications.  See ipnat(8) for
2931.7Sminoura## one example of the use of the IP Filter.
2941.7Sminoura#pseudo-device	ipfilter
2951.7Sminoura
2961.7Sminoura
2971.7Sminoura#### Other device configuration
2981.7Sminoura
2991.7Sminoura## Pseudo ttys, required for network logins and programs like screen.
3001.7Sminoura## 32 is a good number for average systems; you may have as many as you
3011.7Sminoura## like, though 256 is more or less the upper limit.  Increasing this
3021.7Sminoura## number still requires you to run /dev/MAKEDEV to create the files
3031.7Sminoura## for the ptys.
3041.13Sminoura#pseudo-device	pty		8	# pseudo-ttys (for network, etc.)
3051.7Sminoura
3061.7Sminoura## Random device, used to implement /dev/random (a source of random noise),
3071.7Sminoura## and generate randomness for some kernel formulae.
3081.7Sminoura#pseudo-device	rnd
309