MIPSSIM revision 1.8
11.8She# $NetBSD: MIPSSIM,v 1.8 2022/11/27 14:54:25 he 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.8She#ident 		"GENERIC-$Revision: 1.8 $"
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.5Ssimonboptions 	HZ=50		# half usual host speed
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.8Sheoptions 	MSGBUFSIZE=32768 # need a bit more than 4K for virtio qemu
291.8She
301.4Sniaoptions 	NTP		# network time protocol
311.1Ssimonb
321.1Ssimonb# Debugging options
331.1Ssimonboptions 	DIAGNOSTIC	# extra kernel sanity checking
341.1Ssimonboptions 	DEBUG		# extra kernel debugging support
351.1Ssimonboptions 	DDB		# kernel dynamic debugger
361.1Ssimonboptions 	DDB_HISTORY_SIZE=100 # enable history editing in DDB
371.1Ssimonbmakeoptions 	DEBUG="-g"	# compile full symbol table
381.1Ssimonbmakeoptions	COPY_SYMTAB=1	# size for embedded symbol table
391.1Ssimonb
401.1Ssimonbpseudo-device	md				# memory disk device
411.1Ssimonboptions 	MEMORY_DISK_HOOKS
421.1Ssimonboptions 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
431.1Ssimonboptions 	MEMORY_DISK_ROOT_SIZE=32768	# size of memory disk, in blocks
441.1Ssimonb
451.1Ssimonb# Compatibility options
461.1Ssimonbinclude         "conf/compat_netbsd50.config"
471.1Ssimonb#options 	EXEC_ECOFF	# exec ECOFF binaries
481.1Ssimonb#options 	COMPAT_ULTRIX	# binary compatibility with Ultrix
491.1Ssimonb
501.4Sniaoptions 	SYSVMSG		# System V-like message queues
511.4Sniaoptions 	SYSVSEM		# System V-like semaphores
521.4Sniaoptions 	SYSVSHM		# System V-like memory sharing
531.4Snia
541.1Ssimonb# File systems
551.1Ssimonbfile-system	FFS		# Berkeley Fast Filesystem
561.1Ssimonb#file-system	MFS		# memory-based filesystem
571.1Ssimonb#file-system 	EXT2FS		# second extended file system (linux)
581.1Ssimonbfile-system	NFS		# Sun NFS-compatible filesystem client
591.4Sniafile-system	KERNFS		# kernel data-structure filesystem
601.4Sniafile-system	NULLFS		# NULL layered filesystem
611.4Sniafile-system 	OVERLAY		# overlay file system
621.4Sniafile-system	FDESC		# user file descriptor filesystem
631.1Ssimonb#file-system	UMAPFS		# uid/gid remapping filesystem
641.1Ssimonb#file-system	LFS		# Log-based filesystem (still experimental)
651.4Sniafile-system	PROCFS		# /proc
661.7Ssimonbfile-system	CD9660		# ISO 9660 + Rock Ridge file system
671.4Sniafile-system	UNION		# union file system
681.1Ssimonb#file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
691.1Ssimonb#file-system 	CODA		# Coda File System; also needs vcoda (below)
701.1Ssimonbfile-system	PTYFS		# /dev/pts/N support
711.4Sniafile-system	MFS		# memory-based filesystem
721.4Sniafile-system	TMPFS		# Efficient memory file-system
731.1Ssimonb
741.1Ssimonb# File system options
751.6Ssimonboptions 	FFS_EI		# FFS Endian Independent support
761.1Ssimonb#options 	QUOTA		# legacy UFS quotas
771.1Ssimonb#options 	QUOTA2		# new, in-filesystem UFS quotas
781.6Ssimonb#options 	UFS_DIRHASH	# UFS Large Directory Hashing
791.6Ssimonb#options 	UFS_EXTATTR	# Extended attribute support for UFS1
801.4Sniaoptions 	WAPBL		# File system journaling support
811.1Ssimonb#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
821.1Ssimonb				# immutable) behave as system flags.
831.6Ssimonboptions 	DISKLABEL_EI	# disklabel Endian Independent support
841.6Ssimonb#options 	NFSSERVER	# Network File System server
851.1Ssimonb
861.1Ssimonb# Alternate buffer queue strategies for better responsiveness under high
871.1Ssimonb# disk I/O load.
881.1Ssimonb#options 	BUFQ_READPRIO
891.1Ssimonb#options 	BUFQ_PRIOCSCAN
901.1Ssimonb
911.1Ssimonb# Networking options
921.1Ssimonb#options 	GATEWAY		# IP packet forwarding
931.1Ssimonboptions 	INET		# Internet protocols
941.4Sniaoptions 	INET6		# IPV6
951.1Ssimonb#options 	IPSEC		# IP security
961.1Ssimonb#options 	IPSEC_DEBUG	# debug for IP security
971.1Ssimonb#options 	MROUTING	# packet forwarding of multicast packets
981.1Ssimonb#options 	NETATALK	# AppleTalk (over Ethernet) protocol
991.1Ssimonb#options 	PIM		# Protocol Independent Multicast
1001.1Ssimonb#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1011.1Ssimonb#options 	PPP_DEFLATE	# Deflate compression support for PPP
1021.1Ssimonb#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1031.1Ssimonb
1041.1Ssimonb# JIT compiler for bpfilter
1051.1Ssimonb#options	SLJIT
1061.1Ssimonb#options	BPFJIT
1071.1Ssimonb
1081.1Ssimonb# These options enable verbose messages for several subsystems.
1091.1Ssimonb# Warning, these may compile large string tables into the kernel!
1101.1Ssimonb#options 	MIIVERBOSE	# verbose PHY autoconfig messages
1111.1Ssimonb
1121.1Ssimonboptions 	NFS_BOOT_DHCP
1131.1Ssimonb
1141.1Ssimonbconfig		netbsd		root on ? type ?
1151.1Ssimonb
1161.1Ssimonbmainbus0 	at root
1171.1Ssimonbcpu* 		at mainbus?
1181.1Ssimonbcom*		at mainbus?
1191.1Ssimonb# mipsnet*	at mainbus?
1201.1Ssimonb# options 	MIPSSIM_ETH_MACADDR="ba:bb:1e:01:23:45"
1211.1Ssimonb
1221.3Sreinoud
1231.3Sreinoud# Virtio devices
1241.3Sreinoudvirtio*		at mainbus?		# Virtio PCI device
1251.3Sreinoud#viomb*		at virtio?		# Virtio memory balloon device
1261.3Sreinoudld*		at virtio?		# Virtio disk device
1271.3Sreinoudvioif*		at virtio?		# Virtio network device
1281.3Sreinoudviornd*		at virtio?		# Virtio entropy device
1291.3Sreinoudvioscsi*	at virtio?		# Virtio SCSI device
1301.3Sreinoud#vio9p*		at virtio?		# Virtio 9P device
1311.3Sreinoud
1321.3Sreinoud# SCSI bus support
1331.3Sreinoudscsibus* at scsi?
1341.3Sreinoud
1351.3Sreinoud# SCSI devices
1361.3Sreinoudsd*	at scsibus? target ? lun ?	# SCSI disk drives
1371.3Sreinoud#st*	at scsibus? target ? lun ?	# SCSI tape drives
1381.3Sreinoudcd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
1391.3Sreinoud#ch*	at scsibus? target ? lun ?	# SCSI autochangers
1401.3Sreinoud#ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
1411.3Sreinoud#ss*	at scsibus? target ? lun ?	# SCSI scanners
1421.3Sreinoud#uk*	at scsibus? target ? lun ?	# SCSI unknown
1431.3Sreinoud
1441.3Sreinoud
1451.1Ssimonb# Network pseudo-devices
1461.1Ssimonbpseudo-device	bpfilter			# Berkeley packet filter
1471.1Ssimonb#pseudo-device 	carp				# Common Address Redundancy Protocol
1481.1Ssimonbpseudo-device	loop				# network loopback
1491.1Ssimonb#pseudo-device	ppp				# Point-to-Point Protocol
1501.1Ssimonb#pseudo-device	sl				# Serial Line IP
1511.1Ssimonb#pseudo-device	tun				# network tunneling over tty
1521.1Ssimonb#pseudo-device	gre				# generic L3 over IP tunnel
1531.1Ssimonb#pseudo-device	ipip				# RFC 2003 IP Encapsulation
1541.1Ssimonb#pseudo-device	gif				# RFC1933 tunnel
1551.1Ssimonb#pseudo-device	faith				# IPv[46] tcp relay translation
1561.1Ssimonb# Miscellaneous pseudo-devices
1571.1Ssimonbpseudo-device	pty				# pseudo-terminals
1581.1Ssimonb#pseudo-device	sequencer			# MIDI sequencer
1591.1Ssimonb
1601.1Ssimonb# A pseudo device needed for Coda		# also needs CODA (above)
1611.1Ssimonb#pseudo-device	vcoda				# coda minicache <-> venus comm.
1621.1Ssimonbpseudo-device	clockctl			# user control of clock subsystem
1631.1Ssimonbpseudo-device	ksyms				# /dev/ksyms
1641.1Ssimonb
1651.1Ssimonbinclude "dev/veriexec.config"
166