2007-07-18 19:49:09 +04:00
|
|
|
# $NetBSD: RAMDISK3X,v 1.34 2007/07/18 15:49:09 tsutsui Exp $
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
# RAMDISK: Root/swap on ramdisk
|
|
|
|
# This kernel is used to:
|
|
|
|
# format the disk (not yet implemented)
|
|
|
|
# partition the disk (disklabel)
|
|
|
|
# install the miniroot in the swap partition
|
|
|
|
|
1998-02-08 08:10:45 +03:00
|
|
|
include "arch/sun3/conf/std.sun3x"
|
1998-02-05 07:56:24 +03:00
|
|
|
|
2002-04-25 19:06:20 +04:00
|
|
|
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
|
|
|
|
1998-02-08 08:10:45 +03:00
|
|
|
# Machines to be supported by this kernel
|
|
|
|
# options FPU_EMULATE # XXX - Ever needed?
|
1998-02-05 07:56:24 +03:00
|
|
|
# options HAVE_IOCACHE # XXX - Not yet supported.
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
# Needs to be set per system. i.e change these as you see fit
|
|
|
|
maxusers 2
|
|
|
|
|
|
|
|
# Standard system options
|
1997-10-07 21:50:50 +04:00
|
|
|
# ... debugging options
|
1998-03-08 22:38:05 +03:00
|
|
|
#options DDB
|
2001-06-11 05:50:48 +04:00
|
|
|
# Compatibility options (none)
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
# Filesystem options
|
1997-10-07 21:50:50 +04:00
|
|
|
# Need FFS for the ramdisk image.
|
|
|
|
file-system FFS # Berkeley Fast Filesystem
|
|
|
|
# May need these to get miniroot image.
|
|
|
|
file-system NFS # Sun NFS client support
|
|
|
|
file-system CD9660 # ISO 9660 + Rock Ridge file system
|
2005-12-07 12:10:11 +03:00
|
|
|
options FFS_NO_SNAPSHOT # No FFS snapshot support
|
2005-08-19 09:19:49 +04:00
|
|
|
#file-system PTYFS # /dev/pts/N support
|
1997-05-27 05:06:33 +04:00
|
|
|
|
1998-03-08 22:38:05 +03:00
|
|
|
# Networking options
|
2005-09-04 14:41:36 +04:00
|
|
|
options INET # IP protocol stack support
|
2001-07-08 20:32:12 +04:00
|
|
|
#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
|
|
|
|
|
|
|
|
#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
|
1998-03-08 22:38:05 +03:00
|
|
|
|
1998-02-05 07:56:24 +03:00
|
|
|
# Enable the hooks used for initializing the root memory-disk.
|
1997-10-07 21:50:50 +04:00
|
|
|
options MEMORY_DISK_HOOKS
|
1998-02-05 07:56:24 +03:00
|
|
|
options MEMORY_DISK_IS_ROOT # force root on memory disk
|
|
|
|
options MEMORY_DISK_SERVER=0 # no userspace memory disk support
|
2003-11-02 19:02:09 +03:00
|
|
|
options MEMORY_DISK_ROOT_SIZE=1000 # size of memory disk, in blocks
|
1997-10-07 21:50:50 +04:00
|
|
|
|
2002-09-18 06:43:53 +04:00
|
|
|
options USERCONF # userconf(4) support
|
2007-07-18 19:49:09 +04:00
|
|
|
options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
|
2004-07-15 07:53:44 +04:00
|
|
|
#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
|
2002-01-27 16:23:08 +03:00
|
|
|
|
2000-06-10 08:29:41 +04:00
|
|
|
config netbsd root on ? type ffs
|
1997-05-27 05:06:33 +04:00
|
|
|
|
1998-02-05 07:56:24 +03:00
|
|
|
# On-board I/O space (required)
|
|
|
|
include "arch/sun3/conf/obio.sun3x"
|
|
|
|
|
|
|
|
# On-board memory (optional)
|
|
|
|
# See frame-buffers
|
|
|
|
# obmem0 at mainbus?
|
|
|
|
|
|
|
|
# VME bus support (optional)
|
|
|
|
# One unit for each address space
|
|
|
|
vme0 at mainbus? # A16/D16
|
|
|
|
vme1 at mainbus? # A16/D32
|
|
|
|
vme2 at mainbus? # A24/D16
|
|
|
|
vme3 at mainbus? # A24/D32
|
|
|
|
vme4 at mainbus? # A32/D16
|
|
|
|
vme5 at mainbus? # A32/D32
|
|
|
|
|
1997-05-27 05:06:33 +04:00
|
|
|
#
|
|
|
|
# Serial ports
|
|
|
|
#
|
|
|
|
zstty0 at zsc1 channel 0 # ttya
|
|
|
|
zstty1 at zsc1 channel 1 # ttyb
|
|
|
|
|
|
|
|
kbd0 at zsc0 channel 0 # keyboard
|
1998-02-05 07:56:24 +03:00
|
|
|
#ms0 at zsc0 channel 1 # mouse
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Network devices
|
|
|
|
#
|
|
|
|
|
1998-02-05 07:56:24 +03:00
|
|
|
# Intel Ethernet (onboard, or VME)
|
1997-10-07 21:50:50 +04:00
|
|
|
ie0 at obio0 addr 0x65000000 ipl 3
|
2001-11-20 15:56:17 +03:00
|
|
|
ie1 at vme2 addr 0xe88000 ipl 3 vect 0x75
|
1997-10-07 21:50:50 +04:00
|
|
|
|
1997-05-27 05:06:33 +04:00
|
|
|
# Lance Ethernet (only onboard)
|
|
|
|
le0 at obio0 addr 0x65002000 ipl 3
|
|
|
|
|
|
|
|
#
|
|
|
|
# Disk and tape devices
|
|
|
|
#
|
|
|
|
|
1997-10-07 21:50:50 +04:00
|
|
|
# Emulex SCSI (3/80 only)
|
1999-04-08 10:49:54 +04:00
|
|
|
# Both `dma' and `esp' are needed.
|
1998-03-08 22:38:05 +03:00
|
|
|
# See GENERIC3X for the flags description.
|
1999-04-08 10:49:54 +04:00
|
|
|
dma0 at obio0 addr 0x66001000 ipl 2
|
Enable disconnect/reselect for esp(4) on 3/80 by default.
It also implies to enable tagged queueing, which works fine on my 3/80:
---
NetBSD 2.99.15 (CHARIOT) #184: Sun Jan 30 07:13:08 JST 2005
tsutsui@mirage:/usr/src/sys/arch/sun3/compile/CHARIOT
Model: sun3x 80
fpu: mc68882
total memory = 65536 KB
avail memory = 62496 KB
mainbus0 (root)
obio0 at mainbus0
:
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
:
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST31230N, HP04> disk fixed
sd0: 1001 MB, 3992 cyl, 5 head, 102 sec, 512 bytes/sect x 2051460 sectors
sd0: async, 8-bit transfers, tagged queueing
sd1 at scsibus0 target 3 lun 0: <FUJITSU, M1606S-512, 6237> disk fixed
sd1: 1041 MB, 3457 cyl, 6 head, 102 sec, 512 bytes/sect x 2131992 sectors
sd1: async, 8-bit transfers, tagged queueing
boot device: sd0a
:
---
(yes, async but tagged queueing :-)
2005-01-30 07:07:59 +03:00
|
|
|
esp0 at obio0 addr 0x66000000 ipl 2 flags 0x000000
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
# Floppy drive
|
|
|
|
fdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40
|
2001-11-20 15:56:17 +03:00
|
|
|
fd0 at fdc0 # First (and only) floppy drive.
|
1997-05-27 05:06:33 +04:00
|
|
|
|
1998-02-05 07:56:24 +03:00
|
|
|
# Sun3 "si" SCSI controller (NCR 5380)
|
1998-03-08 22:38:05 +03:00
|
|
|
# See GENERIC3X for the flags description.
|
2001-11-20 15:56:17 +03:00
|
|
|
si0 at vme2 addr 0x200000 ipl 2 vect 0x40
|
|
|
|
si1 at vme2 addr 0x204000 ipl 2 vect 0x41
|
1998-02-05 07:56:24 +03:00
|
|
|
|
|
|
|
# Xylogics 450/451 controllers (VME A16/D16)
|
|
|
|
xyc0 at vme0 addr 0xee40 ipl 2 vect 0x48
|
|
|
|
xyc1 at vme0 addr 0xee48 ipl 2 vect 0x49
|
|
|
|
xy* at xyc? drive ?
|
|
|
|
|
|
|
|
# Xylogics 7053 controllers (VME A16/D32)
|
|
|
|
xdc0 at vme1 addr 0xee80 ipl 2 vect 0x44
|
|
|
|
xdc1 at vme1 addr 0xee90 ipl 2 vect 0x45
|
|
|
|
xd* at xdc? drive ?
|
|
|
|
|
|
|
|
# Xylogics 472 tape controllers?
|
|
|
|
|
1997-05-27 05:06:33 +04:00
|
|
|
#
|
|
|
|
# Frame buffer devices
|
1998-03-08 22:38:05 +03:00
|
|
|
# (Not needed for installation kernels.)
|
1997-05-27 05:06:33 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# SCSI infrastructure
|
|
|
|
#
|
|
|
|
scsibus* at scsi?
|
|
|
|
|
|
|
|
sd* at scsibus? target ? lun ? # SCSI disks
|
|
|
|
st* at scsibus? target ? lun ? # SCSI tapes
|
|
|
|
cd* at scsibus? target ? lun ? # SCSI CD-ROMs
|
|
|
|
#ch* at scsibus? target ? lun ? # SCSI changer devices
|
|
|
|
#ss* at scsibus? target ? lun ? # SCSI scanners
|
1998-02-05 07:56:24 +03:00
|
|
|
#uk* at scsibus? target ? lun ? # unknown SCSI devices
|
1997-05-27 05:06:33 +04:00
|
|
|
|
1997-10-07 21:50:50 +04:00
|
|
|
# Memory-disk drivers (root for install tape)
|
1997-05-27 05:06:33 +04:00
|
|
|
pseudo-device md 2
|
|
|
|
|
|
|
|
# Misc.
|
|
|
|
pseudo-device loop 1 # network loopback
|
2006-02-05 08:01:48 +03:00
|
|
|
pseudo-device sl # CSLIP
|
2005-01-31 19:54:32 +03:00
|
|
|
#pseudo-device fss 4 # file system snapshot device
|