INSTALL revision 1.29
11.29Schristos#	$NetBSD: INSTALL,v 1.29 2004/11/10 17:54:06 christos 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.12Slukemoptions 	MEMORY_DISK_ROOT_SIZE=4096	# 2 Megabytes
161.1Snonaka
171.1Snonakamaxusers	8
181.18Snonaka
191.18Snonaka# Platform support
201.23Smattoptions 	PLATFORM_IBM_6040		# IBM ThinkPad 820
211.18Snonakaoptions 	PLATFORM_IBM_6050		# IBM Personal Power Series 830
221.18Snonakaoptions 	PLATFORM_IBM_7248		# IBM RS/6000 7248-100/120/133
231.20Snonakaoptions 	PLATFORM_IBM_7043_140		# IBM RS/6000 43P 7043-140
241.18Snonakaoptions 	PLATFORM_MOTOROLA_ULMB60XA	# Motorola ULMB60xA (?)
251.1Snonaka
261.20Snonakaoptions 	OPENPIC				# OpenPIC support (7043-140)
271.20Snonaka
281.1Snonaka# Compatibility options
291.27Snonaka#options 	COMPAT_13	# NetBSD 1.3,
301.27Snonaka#options 	COMPAT_14	# NetBSD 1.4,
311.27Snonaka#options 	COMPAT_15	# NetBSD 1.5,
321.27Snonaka#options 	COMPAT_16	# NetBSD 1.6,
331.27Snonaka#options 	COMPAT_43	# and 4.3BSD
341.29Schristosoptions		COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
351.1Snonaka
361.1Snonaka# File systems
371.1Snonakafile-system 	FFS		# UFS
381.1Snonakafile-system	EXT2FS		# second extended file system (linux)
391.1Snonakafile-system 	MFS		# memory file system
401.1Snonakafile-system 	NFS		# Network File System client
411.1Snonakafile-system 	CD9660		# ISO 9660 + Rock Ridge file system
421.1Snonakafile-system 	MSDOSFS		# MS-DOS file system
431.1Snonaka
441.1Snonaka# File system options
451.21Sabsoptions 	VNODE_OP_NOINLINE	# Not inlining vnode op calls saves mem
461.3Snonaka#options 	FFS_EI		# FFS Endian Independant support
471.1Snonaka#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
481.1Snonaka 				# immutable) behave as system flags.
491.10Sjdolecek
501.27Snonaka#options 	USERCONF	# userconf(4) support
511.21Sabsoptions 	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)
521.28Satatat#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
531.21Sabsoptions 	MALLOC_NOINLINE		# Not inlining MALLOC saves memory
541.1Snonaka
551.1Snonaka# Networking options
561.1Snonakaoptions 	INET		# IP + ICMP + TCP + UDP
571.1Snonakaoptions 	NFS_BOOT_BOOTPARAM
581.1Snonakaoptions 	NFS_BOOT_DHCP
591.1Snonaka
601.9Ssoren#
611.9Ssoren# wscons options
621.9Ssoren#
631.9Ssoren# builtin terminal emulations
641.9Ssorenoptions 	WSEMUL_VT100		# VT100 / VT220 emulation
651.9Ssoren# different kernel output - see dev/wscons/wsdisplayvar.h
661.9Ssorenoptions 	WS_KERNEL_FG=WSCOL_GREEN
671.9Ssoren#options 	WS_KERNEL_BG=WSCOL_BLACK
681.9Ssoren# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
691.9Ssoren#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
701.9Ssoren# allocate a number of virtual screens at autoconfiguration time
711.9Ssoren#options 	WSDISPLAY_DEFAULTSCREENS=4
721.9Ssoren# use a large software cursor that doesn't blink
731.9Ssorenoptions 	PCDISPLAY_SOFTCURSOR
741.9Ssoren
751.1Snonaka# Kernel root file system and dump configuration.
761.1Snonakaconfig	netbsd	root on ? type ?
771.1Snonaka
781.1Snonaka
791.1Snonaka#
801.1Snonaka# Device configuration
811.1Snonaka#
821.1Snonaka
831.1Snonakamainbus0 at root
841.1Snonakacpu0	at mainbus0
851.1Snonaka
861.1Snonaka
871.1Snonaka# Basic Bus Support
881.1Snonaka
891.1Snonaka# PCI bus support
901.1Snonakapci0	at mainbus0 bus ?
911.1Snonakapci*	at pchb? bus ?
921.20Snonakapci*	at ppb? bus ?
931.1Snonaka
941.3Snonakaoptions 	PCI_NETBSD_CONFIGURE
951.3Snonaka
961.1Snonaka# PCI bridges
971.1Snonakapchb*	at pci? dev ? function ?	# PCI-Host bridges
981.1Snonakapcib*	at pci? dev ? function ?	# PCI-ISA bridges
991.20Snonakappb*	at pci? dev ? function ?	# PCI-PCI bridges
1001.1Snonaka
1011.1Snonaka# ISA bus support
1021.1Snonakaisa*	at pcib?			# ISA on PCI-ISA bridge
1031.1Snonaka
1041.1Snonaka# PCMCIA bus support
1051.27Snonaka#pcmcia* at pcic? controller ? socket ?
1061.1Snonaka
1071.1Snonaka# ISA PCMCIA controllers
1081.27Snonaka#pcic0	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
1091.1Snonaka
1101.1Snonaka#options 	PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
1111.1Snonaka#options 	PCIC_ISA_ALLOC_IOBASE=0x0400
1121.1Snonaka#options 	PCIC_ISA_ALLOC_IOSIZE=0x0100
1131.1Snonaka
1141.1Snonaka# ISA Plug-and-Play bus support
1151.27Snonaka#isapnp0 at isa?
1161.1Snonaka
1171.19Snonaka# on-board I/O for IBM Personal Power Series 830 IDE controller
1181.19Snonakaobio0	at mainbus0
1191.19Snonaka
1201.19Snonaka
1211.1Snonaka# Console Devices
1221.1Snonaka
1231.9Ssoren# wscons
1241.9Ssorenpckbc0		at isa?			# pc keyboard controller
1251.9Ssorenpckbd*		at pckbc?		# PC keyboard
1261.27Snonaka#pms*		at pckbc?		# PS/2 mouse for wsmouse
1271.9Ssorenvga*		at pci?
1281.9Ssorenwsdisplay*	at vga? console ?
1291.9Ssorenwskbd*		at pckbd? console ?
1301.27Snonaka#wsmouse*	at pms? mux 0
1311.1Snonaka
1321.1Snonakamcclock0 at isa? port 0x70		# mc146818 and compatible
1331.20Snonakamkclock0 at isa? port 0x74		# mk48t18 and compatible
1341.1Snonaka
1351.1Snonaka
1361.1Snonaka# Serial Devices
1371.1Snonaka
1381.1Snonaka# ISA serial interfaces
1391.1Snonakacom0	at isa? port 0x3f8 irq 4	# standard PC serial ports
1401.1Snonakacom1	at isa? port 0x2f8 irq 3
1411.1Snonaka
1421.1Snonaka# Parallel Printer Interfaces
1431.1Snonaka
1441.1Snonaka# ISA parallel printer interfaces
1451.27Snonaka#lpt0	at isa? port 0x3bc irq 7	# standard PC parallel ports
1461.1Snonaka
1471.1Snonaka
1481.1Snonaka# SCSI Controllers and Devices
1491.1Snonaka
1501.1Snonaka# PCI SCSI controllers
1511.27Snonaka#adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
1521.27Snonaka#ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
1531.27Snonaka#esiop*	at pci? dev ? function ?	# Symbios 53c825/875 and newer chips
1541.27Snonaka#iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
1551.27Snonaka#pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
1561.3Snonakasiop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
1571.1Snonaka
1581.1Snonaka# PCMCIA SCSI controllers
1591.27Snonaka#aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
1601.1Snonaka
1611.1Snonaka# SCSI bus support
1621.27Snonaka#scsibus* at adw?
1631.27Snonaka#scsibus* at ahc?
1641.27Snonaka#scsibus* at aic?
1651.27Snonaka#scsibus* at esiop?
1661.27Snonaka#scsibus* at iha?
1671.27Snonaka#scsibus* at pcscp?
1681.3Snonakascsibus* at siop?
1691.1Snonaka
1701.1Snonaka# SCSI devices
1711.1Snonakasd*	at scsibus? target ? lun ?	# SCSI disk drives
1721.1Snonakast*	at scsibus? target ? lun ?	# SCSI tape drives
1731.1Snonakacd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1741.1Snonaka
1751.1Snonaka
1761.1Snonaka# IDE and related devices
1771.19Snonaka
1781.19Snonaka# IBM Personal Power Series 830 IDE controller
1791.19Snonakawdc0	at obio? port 0x1f0 irq 13
1801.19Snonakawdc1	at obio? port 0x170 irq 13
1811.19Snonaka
1821.19Snonaka# ISA Plug-and-Play IDE controllers
1831.27Snonaka#wdc*	at isapnp?
1841.1Snonaka
1851.1Snonaka# PCMCIA IDE controllers
1861.27Snonaka#wdc*	at pcmcia? function ?
1871.1Snonaka
1881.25Slukem# ATA (IDE) bus support
1891.25Slukematabus* at ata?
1901.24Sbouyer
1911.1Snonaka# IDE drives
1921.1Snonaka# Flags are used only with controllers that support DMA operations
1931.1Snonaka# and mode settings (e.g. some pciide controllers)
1941.1Snonaka# The lowest order four bits (rightmost digit) of the flags define the PIO
1951.1Snonaka# mode to use, the next set of four bits the DMA mode and the third set the
1961.1Snonaka# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
1971.1Snonaka# to use, and the last bit must be 1 for this setting to be used.
1981.1Snonaka# For DMA and UDMA, 0xf (1111) means 'disable'.
1991.1Snonaka# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
2001.1Snonaka# (0xc=1100, 0xa=1010, 0xf=1111)
2011.1Snonaka# 0x0000 means "use whatever the drive claims to support".
2021.24Sbouyerwd*	at atabus? drive ? flags 0x0000
2031.1Snonaka
2041.1Snonaka# ATAPI bus support
2051.25Slukematapibus* at atapi?
2061.1Snonaka
2071.1Snonaka# ATAPI devices
2081.1Snonaka# flags have the same meaning as for IDE drives.
2091.1Snonakacd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
2101.1Snonakasd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
2111.1Snonaka
2121.1Snonaka# Miscellaneous mass storage devices
2131.1Snonaka
2141.1Snonaka# ISA floppy
2151.27Snonaka#fdc0	at isa? port 0x3f0 irq 6 drq 2	# standard PC floppy controllers
2161.27Snonaka#fd*	at fdc? drive ?
2171.1Snonaka
2181.1Snonaka# Network Interfaces
2191.1Snonaka
2201.1Snonaka# PCI network interfaces
2211.27Snonaka#ep*	at pci? dev ? function ?	# 3Com 3c59x
2221.27Snonaka#ex*	at pci? dev ? function ?	# 3Com 3c90x[BC]
2231.27Snonaka#fxp*	at pci? dev ? function ?	# Intel EtherExpress PRO 10+/100B
2241.27Snonaka#ne*	at pci? dev ? function ?	# NE2000-compatible Ethernet
2251.7Stsutsuipcn*	at pci? dev ? function ?	# AMD PCnet-PCI Ethernet
2261.27Snonaka#rtk*	at pci? dev ? function ?	# Realtek 8129/8139
2271.27Snonaka#sip*	at pci? dev ? function ?	# SiS 900/DP83815 Ethernet
2281.15Smycrofttlp*	at pci? dev ? function ?	# DECchip 21x4x and clones
2291.27Snonaka#vr*	at pci? dev ? function ?	# VIA Rhine Fast Ethernet
2301.1Snonaka
2311.5Snonaka# ISA network interfaces
2321.27Snonaka#ep*	at isa? port ? irq ?		# 3Com 3c509 Ethernet
2331.5Snonaka
2341.1Snonaka# ISA Plug-and-Play network intefaces
2351.27Snonaka#ep*	at isapnp?			# 3Com 3c509 Ethernet
2361.27Snonaka#ne*	at isapnp?			# NE2000-compatible Ethernet
2371.1Snonaka
2381.1Snonaka# PCMCIA network interfaces
2391.27Snonaka#ep*	at pcmcia? function ?		# 3Com 3c589 and 3c562 Ethernet
2401.27Snonaka#ne*	at pcmcia? function ?		# NE2000-compatible Ethernet
2411.1Snonaka
2421.1Snonaka# MII/PHY support
2431.27Snonaka#exphy*	at mii? phy ?			# 3Com internal PHYs
2441.27Snonaka#inphy*	at mii? phy ?			# Intel 82555 PHYs
2451.5Snonakansphy*	at mii? phy ?			# NS83840 PHYs
2461.27Snonaka#qsphy*	at mii? phy ?			# Quality Semiconductor QS6612 PHYs
2471.27Snonaka#sqphy*	at mii? phy ?			# Seeq 80220/80221/80223 PHYs
2481.1Snonakaukphy*	at mii? phy ?			# generic unknown PHYs
2491.1Snonaka
2501.1Snonaka
2511.1Snonaka# Pseudo-Devices
2521.1Snonaka
2531.1Snonaka# disk/mass storage pseudo-devices
2541.1Snonakapseudo-device	md		1	# memory disk device (ramdisk)
2551.1Snonaka
2561.1Snonaka# network pseudo-devices
2571.1Snonakapseudo-device	loop			# network loopback
2581.1Snonaka
2591.1Snonaka# miscellaneous pseudo-devices
2601.1Snonakapseudo-device	pty			# pseudo-terminals
2611.1Snonakapseudo-device	rnd			# /dev/random and in-kernel generator
2621.8Slukem#options 	RND_COM			# use "com" randomness as well
263