RAMDISK3X revision 1.38
11.38Sjym# $NetBSD: RAMDISK3X,v 1.38 2009/02/06 18:50:28 jym Exp $
21.1Sjeremy
31.1Sjeremy# RAMDISK: Root/swap on ramdisk
41.1Sjeremy# This kernel is used to:
51.1Sjeremy#	format the disk (not yet implemented)
61.1Sjeremy#	partition the disk (disklabel)
71.1Sjeremy#	install the miniroot in the swap partition
81.1Sjeremy
91.4Sgwrinclude "arch/sun3/conf/std.sun3x"
101.21Satatat
111.21Satatat#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
121.3Sgwr
131.36Stsutsuimakeoptions	COPTS="-Os"	# bootloader has size limit (~2MB)
141.36Stsutsui
151.4Sgwr# Machines to be supported by this kernel
161.4Sgwr# options 	FPU_EMULATE	# XXX - Ever needed?
171.3Sgwr# options 	HAVE_IOCACHE	# XXX - Not yet supported.
181.1Sjeremy
191.1Sjeremy# Needs to be set per system.  i.e change these as you see fit
201.1Sjeremymaxusers	2
211.1Sjeremy
221.1Sjeremy# Standard system options
231.2Sgwr# ... debugging options
241.5Sgwr#options 	DDB
251.12Swiz# Compatibility options (none)
261.2Sgwr
271.2Sgwr# Filesystem options
281.2Sgwr# Need FFS for the ramdisk image.
291.2Sgwrfile-system	FFS		# Berkeley Fast Filesystem
301.2Sgwr# May need these to get miniroot image.
311.2Sgwrfile-system	NFS		# Sun NFS client support
321.2Sgwrfile-system	CD9660		# ISO 9660 + Rock Ridge file system
331.32Stsutsuioptions 	FFS_NO_SNAPSHOT	# No FFS snapshot support
341.30Schristos#file-system	PTYFS		# /dev/pts/N support
351.1Sjeremy
361.5Sgwr# Networking options
371.31Sisakioptions 	INET		# IP protocol stack support
381.13Sabs#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
391.13Sabs
401.13Sabs#options 	TCP_COMPAT_42	# 4.2BSD TCP/IP bug compat. Not recommended.
411.5Sgwr
421.3Sgwr# Enable the hooks used for initializing the root memory-disk.
431.1Sjeremyoptions 	MEMORY_DISK_HOOKS
441.3Sgwroptions 	MEMORY_DISK_IS_ROOT	# force root on memory disk
451.3Sgwroptions 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
461.37Sheoptions 	MEMORY_DISK_ROOT_SIZE=1200	# size of memory disk, in blocks
471.38Sjymoptions 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
481.17Sjdolecek
491.22Slukemoptions 	USERCONF	# userconf(4) support
501.34Stsutsuioptions 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
511.24Satatat#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
521.1Sjeremy
531.11Stsutsuiconfig		netbsd root on ? type ffs
541.1Sjeremy
551.3Sgwr# On-board I/O space (required)
561.3Sgwrinclude "arch/sun3/conf/obio.sun3x"
571.3Sgwr
581.3Sgwr# On-board memory (optional)
591.3Sgwr# See frame-buffers
601.3Sgwr# obmem0 at mainbus?
611.3Sgwr
621.3Sgwr# VME bus support (optional)
631.3Sgwr# One unit for each address space
641.3Sgwrvme0 at mainbus? # A16/D16
651.3Sgwrvme1 at mainbus? # A16/D32
661.3Sgwrvme2 at mainbus? # A24/D16
671.3Sgwrvme3 at mainbus? # A24/D32
681.3Sgwrvme4 at mainbus? # A32/D16
691.3Sgwrvme5 at mainbus? # A32/D32
701.1Sjeremy
711.1Sjeremy#
721.1Sjeremy# Serial ports
731.1Sjeremy#
741.1Sjeremyzstty0	at zsc1 channel 0	# ttya
751.1Sjeremyzstty1	at zsc1 channel 1	# ttyb
761.1Sjeremy
771.1Sjeremykbd0	at zsc0 channel 0	# keyboard
781.3Sgwr#ms0	at zsc0 channel 1	# mouse
791.1Sjeremy
801.1Sjeremy#
811.1Sjeremy# Network devices
821.1Sjeremy#
831.1Sjeremy
841.3Sgwr# Intel Ethernet (onboard, or VME)
851.2Sgwrie0 at obio0 addr 0x65000000 ipl 3
861.16Slukemie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
871.2Sgwr
881.1Sjeremy# Lance Ethernet (only onboard)
891.1Sjeremyle0 at obio0 addr 0x65002000 ipl 3
901.1Sjeremy
911.1Sjeremy#
921.1Sjeremy# Disk and tape devices
931.1Sjeremy#
941.1Sjeremy
951.2Sgwr# Emulex SCSI (3/80 only)
961.8Sgwr# Both `dma' and `esp' are needed.
971.5Sgwr# See GENERIC3X for the flags description.
981.8Sgwrdma0 at obio0 addr 0x66001000 ipl 2
991.25Stsutsuiesp0 at obio0 addr 0x66000000 ipl 2 flags 0x000000
1001.1Sjeremy
1011.1Sjeremy# Floppy drive
1021.1Sjeremyfdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40
1031.16Slukemfd0	at fdc0	# First (and only) floppy drive.
1041.1Sjeremy
1051.3Sgwr# Sun3 "si" SCSI controller (NCR 5380)
1061.5Sgwr# See GENERIC3X for the flags description.
1071.16Slukemsi0 at vme2 addr 0x200000 ipl 2 vect 0x40
1081.16Slukemsi1 at vme2 addr 0x204000 ipl 2 vect 0x41
1091.3Sgwr
1101.3Sgwr# Xylogics 450/451 controllers (VME A16/D16)
1111.3Sgwrxyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
1121.3Sgwrxyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
1131.3Sgwrxy* at xyc? drive ?
1141.3Sgwr
1151.3Sgwr# Xylogics 7053 controllers (VME A16/D32)
1161.3Sgwrxdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
1171.3Sgwrxdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
1181.3Sgwrxd* at xdc? drive ?
1191.3Sgwr
1201.3Sgwr# Xylogics 472 tape controllers?
1211.3Sgwr
1221.1Sjeremy#
1231.1Sjeremy# Frame buffer devices
1241.5Sgwr# (Not needed for installation kernels.)
1251.1Sjeremy
1261.1Sjeremy#
1271.1Sjeremy# SCSI infrastructure
1281.1Sjeremy#
1291.1Sjeremyscsibus* at scsi?
1301.1Sjeremy
1311.1Sjeremysd* at scsibus? target ? lun ?		# SCSI disks
1321.1Sjeremyst* at scsibus? target ? lun ?		# SCSI tapes
1331.1Sjeremycd* at scsibus? target ? lun ?		# SCSI CD-ROMs
1341.1Sjeremy#ch* at scsibus? target ? lun ?		# SCSI changer devices
1351.1Sjeremy#ss* at scsibus? target ? lun ?		# SCSI scanners
1361.3Sgwr#uk* at scsibus? target ? lun ?		# unknown SCSI devices
1371.1Sjeremy
1381.2Sgwr# Memory-disk drivers (root for install tape)
1391.1Sjeremypseudo-device	md		2
1401.1Sjeremy
1411.1Sjeremy# Misc.
1421.1Sjeremypseudo-device	loop		1	# network loopback
1431.33Scubepseudo-device	sl			# CSLIP
1441.26Shannken#pseudo-device	fss		4	# file system snapshot device
145