MIPSSIM revision 1.3
11.3Sreinoud# $NetBSD: MIPSSIM,v 1.3 2021/02/16 10:58:32 reinoud Exp $
21.1Ssimonb#
31.1Ssimonb# Kernel config for the QEMU MIPS "mipssim" simulator
41.3Sreinoud#
51.3Sreinoud# The QEMU virtio support is experimental and subject to change
61.3Sreinoud# and will likely be removed when qemu gains a MIPS "virt" target.
71.3Sreinoud#
81.1Ssimonb
91.1Ssimonbinclude 	"arch/evbmips/conf/std.mipssim"
101.1Ssimonb
111.3Sreinoud#ident 		"GENERIC-$Revision: 1.3 $"
121.1Ssimonb
131.1Ssimonbmaxusers	32
141.1Ssimonb
151.1Ssimonboptions 	MIPS32
161.1Ssimonboptions 	MIPS32R2
171.1Ssimonboptions 	NOFPU		# No FPU
181.1Ssimonboptions 	FPEMUL		# emulate FPU insn
191.2Ssimonb#options 	HZ=512		# for profiling
201.1Ssimonb
211.1Ssimonb#options 	LOCKDEBUG
221.1Ssimonboptions 	SOSEND_COUNTERS
231.1Ssimonboptions 	INET_CSUM_COUNTERS
241.1Ssimonboptions 	TCP_CSUM_COUNTERS
251.1Ssimonboptions 	UDP_CSUM_COUNTERS
261.1Ssimonboptions 	TCP_OUTPUT_COUNTERS
271.1Ssimonb
281.1Ssimonb#options 	NTP		# network time protocol
291.1Ssimonb
301.1Ssimonb# Debugging options
311.1Ssimonboptions 	DIAGNOSTIC	# extra kernel sanity checking
321.1Ssimonboptions 	DEBUG		# extra kernel debugging support
331.1Ssimonboptions 	DDB		# kernel dynamic debugger
341.1Ssimonboptions 	DDB_HISTORY_SIZE=100 # enable history editing in DDB
351.1Ssimonbmakeoptions 	DEBUG="-g"	# compile full symbol table
361.1Ssimonbmakeoptions	COPY_SYMTAB=1	# size for embedded symbol table
371.1Ssimonb
381.1Ssimonbpseudo-device	md				# memory disk device
391.1Ssimonboptions 	MEMORY_DISK_HOOKS
401.1Ssimonboptions 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
411.1Ssimonboptions 	MEMORY_DISK_ROOT_SIZE=32768	# size of memory disk, in blocks
421.1Ssimonb
431.1Ssimonb# Compatibility options
441.1Ssimonbinclude         "conf/compat_netbsd50.config"
451.1Ssimonb#options 	EXEC_ECOFF	# exec ECOFF binaries
461.1Ssimonb#options 	COMPAT_ULTRIX	# binary compatibility with Ultrix
471.1Ssimonb
481.1Ssimonb# File systems
491.1Ssimonbfile-system	FFS		# Berkeley Fast Filesystem
501.1Ssimonb#file-system	MFS		# memory-based filesystem
511.1Ssimonb#file-system 	EXT2FS		# second extended file system (linux)
521.1Ssimonbfile-system	NFS		# Sun NFS-compatible filesystem client
531.1Ssimonb#file-system	KERNFS		# kernel data-structure filesystem
541.1Ssimonb#file-system	NULLFS		# NULL layered filesystem
551.1Ssimonb#file-system 	OVERLAY		# overlay file system
561.1Ssimonb#file-system	FDESC		# user file descriptor filesystem
571.1Ssimonb#file-system	UMAPFS		# uid/gid remapping filesystem
581.1Ssimonb#file-system	LFS		# Log-based filesystem (still experimental)
591.1Ssimonb#file-system	PROCFS		# /proc
601.1Ssimonb#file-system	CD9660		# ISO 9660 + Rock Ridge file system
611.1Ssimonb#file-system	UNION		# union file system
621.1Ssimonb#file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
631.1Ssimonb#file-system 	CODA		# Coda File System; also needs vcoda (below)
641.1Ssimonbfile-system	PTYFS		# /dev/pts/N support
651.1Ssimonb
661.1Ssimonb# File system options
671.1Ssimonb#options 	NFSSERVER	# Sun NFS-compatible filesystem server
681.1Ssimonb#options 	QUOTA		# legacy UFS quotas
691.1Ssimonb#options 	QUOTA2		# new, in-filesystem UFS quotas
701.3Sreinoudoptions 	DISKLABEL_EI	# disklabel Endian Independent support
711.3Sreinoudoptions 	FFS_EI		# FFS Endian Independent support
721.1Ssimonb#options 	WAPBL		# File system journaling support
731.1Ssimonb#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
741.1Ssimonb				# immutable) behave as system flags.
751.1Ssimonb
761.1Ssimonb# Alternate buffer queue strategies for better responsiveness under high
771.1Ssimonb# disk I/O load.
781.1Ssimonb#options 	BUFQ_READPRIO
791.1Ssimonb#options 	BUFQ_PRIOCSCAN
801.1Ssimonb
811.1Ssimonb# Networking options
821.1Ssimonb#options 	GATEWAY		# IP packet forwarding
831.1Ssimonboptions 	INET		# Internet protocols
841.1Ssimonb#options 	INET6		# IPV6
851.1Ssimonb#options 	IPSEC		# IP security
861.1Ssimonb#options 	IPSEC_DEBUG	# debug for IP security
871.1Ssimonb#options 	MROUTING	# packet forwarding of multicast packets
881.1Ssimonb#options 	NETATALK	# AppleTalk (over Ethernet) protocol
891.1Ssimonb#options 	PIM		# Protocol Independent Multicast
901.1Ssimonb#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
911.1Ssimonb#options 	PPP_DEFLATE	# Deflate compression support for PPP
921.1Ssimonb#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
931.1Ssimonb
941.1Ssimonb# JIT compiler for bpfilter
951.1Ssimonb#options	SLJIT
961.1Ssimonb#options	BPFJIT
971.1Ssimonb
981.1Ssimonb# These options enable verbose messages for several subsystems.
991.1Ssimonb# Warning, these may compile large string tables into the kernel!
1001.1Ssimonb#options 	MIIVERBOSE	# verbose PHY autoconfig messages
1011.1Ssimonb
1021.1Ssimonboptions 	NFS_BOOT_DHCP
1031.1Ssimonb
1041.1Ssimonbconfig		netbsd		root on ? type ?
1051.1Ssimonb
1061.1Ssimonbmainbus0 	at root
1071.1Ssimonbcpu* 		at mainbus?
1081.1Ssimonbcom*		at mainbus?
1091.1Ssimonb# mipsnet*	at mainbus?
1101.1Ssimonb# options 	MIPSSIM_ETH_MACADDR="ba:bb:1e:01:23:45"
1111.1Ssimonb
1121.3Sreinoud
1131.3Sreinoud# Virtio devices
1141.3Sreinoudvirtio*		at mainbus?		# Virtio PCI device
1151.3Sreinoud#viomb*		at virtio?		# Virtio memory balloon device
1161.3Sreinoudld*		at virtio?		# Virtio disk device
1171.3Sreinoudvioif*		at virtio?		# Virtio network device
1181.3Sreinoudviornd*		at virtio?		# Virtio entropy device
1191.3Sreinoudvioscsi*	at virtio?		# Virtio SCSI device
1201.3Sreinoud#vio9p*		at virtio?		# Virtio 9P device
1211.3Sreinoud
1221.3Sreinoud# SCSI bus support
1231.3Sreinoudscsibus* at scsi?
1241.3Sreinoud
1251.3Sreinoud# SCSI devices
1261.3Sreinoudsd*	at scsibus? target ? lun ?	# SCSI disk drives
1271.3Sreinoud#st*	at scsibus? target ? lun ?	# SCSI tape drives
1281.3Sreinoudcd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1291.3Sreinoud#ch*	at scsibus? target ? lun ?	# SCSI autochangers
1301.3Sreinoud#ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
1311.3Sreinoud#ss*	at scsibus? target ? lun ?	# SCSI scanners
1321.3Sreinoud#uk*	at scsibus? target ? lun ?	# SCSI unknown
1331.3Sreinoud
1341.3Sreinoud
1351.1Ssimonb# Network pseudo-devices
1361.1Ssimonbpseudo-device	bpfilter			# Berkeley packet filter
1371.1Ssimonb#pseudo-device 	carp				# Common Address Redundancy Protocol
1381.1Ssimonbpseudo-device	loop				# network loopback
1391.1Ssimonb#pseudo-device	ppp				# Point-to-Point Protocol
1401.1Ssimonb#pseudo-device	sl				# Serial Line IP
1411.1Ssimonb#pseudo-device	tun				# network tunneling over tty
1421.1Ssimonb#pseudo-device	gre				# generic L3 over IP tunnel
1431.1Ssimonb#pseudo-device	ipip				# RFC 2003 IP Encapsulation
1441.1Ssimonb#pseudo-device	gif				# RFC1933 tunnel
1451.1Ssimonb#pseudo-device	faith				# IPv[46] tcp relay translation
1461.1Ssimonb# Miscellaneous pseudo-devices
1471.1Ssimonbpseudo-device	pty				# pseudo-terminals
1481.1Ssimonb#pseudo-device	sequencer			# MIDI sequencer
1491.1Ssimonb
1501.1Ssimonb# A pseudo device needed for Coda		# also needs CODA (above)
1511.1Ssimonb#pseudo-device	vcoda				# coda minicache <-> venus comm.
1521.1Ssimonbpseudo-device	clockctl			# user control of clock subsystem
1531.1Ssimonbpseudo-device	ksyms				# /dev/ksyms
1541.1Ssimonb
1551.1Ssimonbinclude "dev/veriexec.config"
156