INSTALL revision 1.48
11.48Sgarbled#	$NetBSD: INSTALL,v 1.48 2007/04/26 19:44:02 garbled Exp $
21.1Snonaka#
31.1Snonaka#	INSTALL -- Installation kernel
41.1Snonaka#
51.1Snonaka
61.1Snonakainclude "arch/prep/conf/std.prep"
71.17Satatat
81.17Satatat#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
91.1Snonaka
101.1Snonakamakeoptions	COPTS="-Os -mmultiple"	# -Os -mmultiple to reduce size.
111.1Snonaka
121.1Snonaka# Enable the hooks used for initializing the ram-disk.
131.1Snonakaoptions 	MEMORY_DISK_HOOKS
141.1Snonakaoptions 	MEMORY_DISK_IS_ROOT	# Force root on ram-disk
151.44Sgarbledoptions 	MEMORY_DISK_ROOT_SIZE=4096	# 2mb
161.42Sgarbledoptions		MEMORY_DISK_SERVER=0	# don't need for install
171.1Snonaka
181.1Snonakamaxusers	8
191.18Snonaka
201.18Snonaka# Platform support
211.20Snonakaoptions 	OPENPIC				# OpenPIC support (7043-140)
221.20Snonaka
231.1Snonaka# Compatibility options
241.27Snonaka#options 	COMPAT_13	# NetBSD 1.3,
251.27Snonaka#options 	COMPAT_14	# NetBSD 1.4,
261.27Snonaka#options 	COMPAT_15	# NetBSD 1.5,
271.27Snonaka#options 	COMPAT_16	# NetBSD 1.6,
281.27Snonaka#options 	COMPAT_43	# and 4.3BSD
291.29Schristosoptions		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
301.1Snonaka
311.1Snonaka# File systems
321.1Snonakafile-system 	FFS		# UFS
331.38Sgarbled#file-system	EXT2FS		# second extended file system (linux)
341.1Snonakafile-system 	MFS		# memory file system
351.1Snonakafile-system 	NFS		# Network File System client
361.1Snonakafile-system 	CD9660		# ISO 9660 + Rock Ridge file system
371.1Snonakafile-system 	MSDOSFS		# MS-DOS file system
381.34Schristos#file-system	PTYFS		# /dev/pts/N support
391.1Snonaka
401.1Snonaka# File system options
411.3Snonaka#options 	FFS_EI		# FFS Endian Independant support
421.41Sgarbledoptions 	FFS_NO_SNAPSHOT	# No FFS snapshot support
431.1Snonaka#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
441.1Snonaka 				# immutable) behave as system flags.
451.10Sjdolecek
461.27Snonaka#options 	USERCONF	# userconf(4) support
471.21Sabsoptions 	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)
481.28Satatat#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
491.47Syamtoptions		NFS_V2_ONLY	# Exclude NFS3 code to save space
501.1Snonaka
511.1Snonaka# Networking options
521.1Snonakaoptions 	INET		# IP + ICMP + TCP + UDP
531.38Sgarbled#options 	NFS_BOOT_BOOTPARAM
541.38Sgarbled#options 	NFS_BOOT_DHCP
551.1Snonaka
561.9Ssoren#
571.9Ssoren# wscons options
581.9Ssoren#
591.9Ssoren# builtin terminal emulations
601.9Ssorenoptions 	WSEMUL_VT100		# VT100 / VT220 emulation
611.9Ssoren# different kernel output - see dev/wscons/wsdisplayvar.h
621.9Ssorenoptions 	WS_KERNEL_FG=WSCOL_GREEN
631.9Ssoren#options 	WS_KERNEL_BG=WSCOL_BLACK
641.39Sdrochner# see dev/pckbport/wskbdmap_mfii.c for implemented layouts
651.9Ssoren#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
661.9Ssoren# allocate a number of virtual screens at autoconfiguration time
671.9Ssoren#options 	WSDISPLAY_DEFAULTSCREENS=4
681.9Ssoren# use a large software cursor that doesn't blink
691.9Ssorenoptions 	PCDISPLAY_SOFTCURSOR
701.9Ssoren
711.1Snonaka# Kernel root file system and dump configuration.
721.1Snonakaconfig	netbsd	root on ? type ?
731.1Snonaka
741.1Snonaka#
751.1Snonaka# Device configuration
761.1Snonaka#
771.1Snonaka
781.1Snonakamainbus0 at root
791.1Snonakacpu0	at mainbus0
801.1Snonaka
811.1Snonaka# Basic Bus Support
821.1Snonaka
831.1Snonaka# PCI bus support
841.1Snonakapci0	at mainbus0 bus ?
851.1Snonakapci*	at pchb? bus ?
861.20Snonakapci*	at ppb? bus ?
871.1Snonaka
881.1Snonaka# PCI bridges
891.1Snonakapchb*	at pci? dev ? function ?	# PCI-Host bridges
901.1Snonakapcib*	at pci? dev ? function ?	# PCI-ISA bridges
911.20Snonakappb*	at pci? dev ? function ?	# PCI-PCI bridges
921.37Sgarbledpceb*	at pci? dev ? function ?	# PCI-EISA bridges
931.37Sgarbled
941.37Sgarbled# EISA bus support
951.37Sgarbledeisa*   at pceb?
961.1Snonaka
971.1Snonaka# ISA bus support
981.1Snonakaisa*	at pcib?			# ISA on PCI-ISA bridge
991.37Sgarbledisa*	at pceb?
1001.1Snonaka
1011.1Snonaka# PCMCIA bus support
1021.44Sgarbledpcmcia* at pcic? controller ? socket ?
1031.1Snonaka
1041.1Snonaka# ISA PCMCIA controllers
1051.44Sgarbledpcic0	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
1061.1Snonaka
1071.1Snonaka#options 	PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
1081.1Snonaka#options 	PCIC_ISA_ALLOC_IOBASE=0x0400
1091.1Snonaka#options 	PCIC_ISA_ALLOC_IOSIZE=0x0100
1101.1Snonaka
1111.1Snonaka# ISA Plug-and-Play bus support
1121.27Snonaka#isapnp0 at isa?
1131.1Snonaka
1141.37Sgarbled# PNP bus device for attaching objects descibed in the residual
1151.37Sgarbledpnpbus0	at mainbus0
1161.19Snonaka
1171.1Snonaka# Console Devices
1181.1Snonaka
1191.9Ssoren# wscons
1201.9Ssorenpckbc0		at isa?			# pc keyboard controller
1211.9Ssorenpckbd*		at pckbc?		# PC keyboard
1221.27Snonaka#pms*		at pckbc?		# PS/2 mouse for wsmouse
1231.9Ssorenvga*		at pci?
1241.9Ssorenwsdisplay*	at vga? console ?
1251.9Ssorenwskbd*		at pckbd? console ?
1261.27Snonaka#wsmouse*	at pms? mux 0
1271.1Snonaka
1281.44Sgarbledmcclock* at pnpbus?			# mc146818 and compatible
1291.44Sgarbledmkclock* at pnpbus?			# mk48t18 and compatible
1301.44Sgarblednvram* at pnpbus?
1311.1Snonaka
1321.1Snonaka# Serial Devices
1331.1Snonaka
1341.1Snonaka# ISA serial interfaces
1351.1Snonakacom0	at isa? port 0x3f8 irq 4	# standard PC serial ports
1361.1Snonakacom1	at isa? port 0x2f8 irq 3
1371.1Snonaka
1381.1Snonaka# Parallel Printer Interfaces
1391.1Snonaka
1401.1Snonaka# ISA parallel printer interfaces
1411.27Snonaka#lpt0	at isa? port 0x3bc irq 7	# standard PC parallel ports
1421.1Snonaka
1431.1Snonaka
1441.1Snonaka# SCSI Controllers and Devices
1451.1Snonaka
1461.1Snonaka# PCI SCSI controllers
1471.27Snonaka#adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
1481.27Snonaka#ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
1491.27Snonaka#esiop*	at pci? dev ? function ?	# Symbios 53c825/875 and newer chips
1501.27Snonaka#iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
1511.27Snonaka#pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
1521.3Snonakasiop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
1531.1Snonaka
1541.1Snonaka# PCMCIA SCSI controllers
1551.27Snonaka#aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
1561.1Snonaka
1571.1Snonaka# SCSI bus support
1581.27Snonaka#scsibus* at adw?
1591.27Snonaka#scsibus* at ahc?
1601.27Snonaka#scsibus* at aic?
1611.27Snonaka#scsibus* at esiop?
1621.27Snonaka#scsibus* at iha?
1631.27Snonaka#scsibus* at pcscp?
1641.3Snonakascsibus* at siop?
1651.1Snonaka
1661.1Snonaka# SCSI devices
1671.1Snonakasd*	at scsibus? target ? lun ?	# SCSI disk drives
1681.1Snonakast*	at scsibus? target ? lun ?	# SCSI tape drives
1691.1Snonakacd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1701.1Snonaka
1711.1Snonaka
1721.1Snonaka# IDE and related devices
1731.19Snonaka
1741.37Sgarbled# IDE controller found on most Power Personal machines
1751.37Sgarbledwdc*	at pnpbus?
1761.19Snonaka
1771.45Sgarbled# PCI IDE controllers
1781.45Sgarbledpciide*		at pci? dev ? function ? flags 0x0000
1791.45Sgarbledhptide*		at pci? dev ? function ?
1801.48Sgarbledslide*		at pci? dev ? function ?
1811.45Sgarbled
1821.1Snonaka# PCMCIA IDE controllers
1831.27Snonaka#wdc*	at pcmcia? function ?
1841.1Snonaka
1851.25Slukem# ATA (IDE) bus support
1861.25Slukematabus* at ata?
1871.24Sbouyer
1881.1Snonaka# IDE drives
1891.1Snonaka# Flags are used only with controllers that support DMA operations
1901.1Snonaka# and mode settings (e.g. some pciide controllers)
1911.1Snonaka# The lowest order four bits (rightmost digit) of the flags define the PIO
1921.1Snonaka# mode to use, the next set of four bits the DMA mode and the third set the
1931.1Snonaka# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
1941.1Snonaka# to use, and the last bit must be 1 for this setting to be used.
1951.1Snonaka# For DMA and UDMA, 0xf (1111) means 'disable'.
1961.1Snonaka# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
1971.1Snonaka# (0xc=1100, 0xa=1010, 0xf=1111)
1981.1Snonaka# 0x0000 means "use whatever the drive claims to support".
1991.24Sbouyerwd*	at atabus? drive ? flags 0x0000
2001.1Snonaka
2011.1Snonaka# ATAPI bus support
2021.25Slukematapibus* at atapi?
2031.1Snonaka
2041.1Snonaka# ATAPI devices
2051.1Snonaka# flags have the same meaning as for IDE drives.
2061.1Snonakacd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2071.1Snonakasd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2081.1Snonaka
2091.1Snonaka# Miscellaneous mass storage devices
2101.1Snonaka
2111.1Snonaka# ISA floppy
2121.27Snonaka#fdc0	at isa? port 0x3f0 irq 6 drq 2	# standard PC floppy controllers
2131.27Snonaka#fd*	at fdc? drive ?
2141.1Snonaka
2151.1Snonaka# Network Interfaces
2161.1Snonaka
2171.1Snonaka# PCI network interfaces
2181.44Sgarbledep*	at pci? dev ? function ?	# 3Com 3c59x
2191.44Sgarbledex*	at pci? dev ? function ?	# 3Com 3c90x[BC]
2201.44Sgarbledfxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
2211.44Sgarbledne*	at pci? dev ? function ?	# NE2000-compatible Ethernet
2221.7Stsutsuipcn*	at pci? dev ? function ?	# AMD PCnet-PCI Ethernet
2231.44Sgarbledrtk*	at pci? dev ? function ?	# Realtek 8129/8139
2241.44Sgarbledsip*	at pci? dev ? function ?	# SiS 900/DP83815 Ethernet
2251.15Smycrofttlp*	at pci? dev ? function ?	# DECchip 21x4x and clones
2261.44Sgarbledvr*	at pci? dev ? function ?	# VIA Rhine Fast Ethernet
2271.1Snonaka
2281.5Snonaka# ISA network interfaces
2291.27Snonaka#ep*	at isa? port ? irq ?		# 3Com 3c509 Ethernet
2301.37Sgarbledwe1	at isa? port 0x300 iomem 0xe4000 irq 11	# WD/SMC Ethernet
2311.5Snonaka
2321.1Snonaka# ISA Plug-and-Play network intefaces
2331.27Snonaka#ep*	at isapnp?			# 3Com 3c509 Ethernet
2341.27Snonaka#ne*	at isapnp?			# NE2000-compatible Ethernet
2351.1Snonaka
2361.1Snonaka# PCMCIA network interfaces
2371.44Sgarbledep*	at pcmcia? function ?		# 3Com 3c589 and 3c562 Ethernet
2381.44Sgarbledne*	at pcmcia? function ?		# NE2000-compatible Ethernet
2391.1Snonaka
2401.1Snonaka# MII/PHY support
2411.44Sgarbleddmphy*	at mii? phy ?			# Davicom DM9101 PHYs
2421.44Sgarbledexphy*	at mii? phy ?			# 3Com internal PHYs
2431.44Sgarbledicsphy*	at mii? phy ?			# Integrated Circuit Systems ICS189x
2441.44Sgarbledinphy*	at mii? phy ?			# Intel 82555 PHYs
2451.44Sgarblediophy*	at mii? phy ?			# Intel 82553 PHYs
2461.44Sgarbledlxtphy*	at mii? phy ?			# Level One LXT-970 PHYs
2471.5Snonakansphy*	at mii? phy ?			# NS83840 PHYs
2481.44Sgarblednsphyter* at mii? phy ?			# NS83843 PHYs
2491.44Sgarbledqsphy*	at mii? phy ?			# Quality Semiconductor QS6612 PHYs
2501.44Sgarbledsqphy*	at mii? phy ?			# Seeq 80220/80221/80223 PHYs
2511.44Sgarbledtlphy*	at mii? phy ?			# ThunderLAN PHYs
2521.44Sgarbledtqphy*	at mii? phy ?			# TDK Semiconductor PHYs
2531.1Snonakaukphy*	at mii? phy ?			# generic unknown PHYs
2541.1Snonaka
2551.40Sgarbled# Pull in optional local configuration
2561.40Sgarbledinclude "arch/prep/conf/INSTALL.local"
2571.1Snonaka
2581.1Snonaka# Pseudo-Devices
2591.1Snonaka
2601.1Snonaka# disk/mass storage pseudo-devices
2611.1Snonakapseudo-device	md		1	# memory disk device (ramdisk)
2621.30Shannken#pseudo-device	fss		4	# file system snapshot device
2631.44Sgarbledpseudo-device	raid		8	# RAIDframe disk driver
2641.44Sgarbledoptions		RAID_AUTOCONFIG		# auto-configuration of RAID components
2651.1Snonaka
2661.1Snonaka# network pseudo-devices
2671.1Snonakapseudo-device	loop			# network loopback
2681.1Snonaka
2691.1Snonaka# miscellaneous pseudo-devices
2701.1Snonakapseudo-device	pty			# pseudo-terminals
2711.1Snonakapseudo-device	rnd			# /dev/random and in-kernel generator
2721.8Slukem#options 	RND_COM			# use "com" randomness as well
273