MIPSSIM revision 1.8 1 # $NetBSD: MIPSSIM,v 1.8 2022/11/27 14:54:25 he Exp $
2 #
3 # Kernel config for the QEMU MIPS "mipssim" simulator
4 #
5 # The QEMU virtio support is experimental and subject to change
6 # and will likely be removed when qemu gains a MIPS "virt" target.
7 #
8
9 include "arch/evbmips/conf/std.mipssim"
10
11 #ident "GENERIC-$Revision: 1.8 $"
12
13 maxusers 32
14
15 options MIPS32
16 options MIPS32R2
17 options NOFPU # No FPU
18 options FPEMUL # emulate FPU insn
19 options HZ=50 # half usual host speed
20
21 #options LOCKDEBUG
22 options SOSEND_COUNTERS
23 options INET_CSUM_COUNTERS
24 options TCP_CSUM_COUNTERS
25 options UDP_CSUM_COUNTERS
26 options TCP_OUTPUT_COUNTERS
27
28 options MSGBUFSIZE=32768 # need a bit more than 4K for virtio qemu
29
30 options NTP # network time protocol
31
32 # Debugging options
33 options DIAGNOSTIC # extra kernel sanity checking
34 options DEBUG # extra kernel debugging support
35 options DDB # kernel dynamic debugger
36 options DDB_HISTORY_SIZE=100 # enable history editing in DDB
37 makeoptions DEBUG="-g" # compile full symbol table
38 makeoptions COPY_SYMTAB=1 # size for embedded symbol table
39
40 pseudo-device md # memory disk device
41 options MEMORY_DISK_HOOKS
42 options MEMORY_DISK_IS_ROOT # Force root on ram-disk
43 options MEMORY_DISK_ROOT_SIZE=32768 # size of memory disk, in blocks
44
45 # Compatibility options
46 include "conf/compat_netbsd50.config"
47 #options EXEC_ECOFF # exec ECOFF binaries
48 #options COMPAT_ULTRIX # binary compatibility with Ultrix
49
50 options SYSVMSG # System V-like message queues
51 options SYSVSEM # System V-like semaphores
52 options SYSVSHM # System V-like memory sharing
53
54 # File systems
55 file-system FFS # Berkeley Fast Filesystem
56 #file-system MFS # memory-based filesystem
57 #file-system EXT2FS # second extended file system (linux)
58 file-system NFS # Sun NFS-compatible filesystem client
59 file-system KERNFS # kernel data-structure filesystem
60 file-system NULLFS # NULL layered filesystem
61 file-system OVERLAY # overlay file system
62 file-system FDESC # user file descriptor filesystem
63 #file-system UMAPFS # uid/gid remapping filesystem
64 #file-system LFS # Log-based filesystem (still experimental)
65 file-system PROCFS # /proc
66 file-system CD9660 # ISO 9660 + Rock Ridge file system
67 file-system UNION # union file system
68 #file-system MSDOSFS # MS-DOS FAT filesystem(s).
69 #file-system CODA # Coda File System; also needs vcoda (below)
70 file-system PTYFS # /dev/pts/N support
71 file-system MFS # memory-based filesystem
72 file-system TMPFS # Efficient memory file-system
73
74 # File system options
75 options FFS_EI # FFS Endian Independent support
76 #options QUOTA # legacy UFS quotas
77 #options QUOTA2 # new, in-filesystem UFS quotas
78 #options UFS_DIRHASH # UFS Large Directory Hashing
79 #options UFS_EXTATTR # Extended attribute support for UFS1
80 options WAPBL # File system journaling support
81 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
82 # immutable) behave as system flags.
83 options DISKLABEL_EI # disklabel Endian Independent support
84 #options NFSSERVER # Network File System server
85
86 # Alternate buffer queue strategies for better responsiveness under high
87 # disk I/O load.
88 #options BUFQ_READPRIO
89 #options BUFQ_PRIOCSCAN
90
91 # Networking options
92 #options GATEWAY # IP packet forwarding
93 options INET # Internet protocols
94 options INET6 # IPV6
95 #options IPSEC # IP security
96 #options IPSEC_DEBUG # debug for IP security
97 #options MROUTING # packet forwarding of multicast packets
98 #options NETATALK # AppleTalk (over Ethernet) protocol
99 #options PIM # Protocol Independent Multicast
100 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
101 #options PPP_DEFLATE # Deflate compression support for PPP
102 #options PPP_FILTER # Active filter support for PPP (requires bpf)
103
104 # JIT compiler for bpfilter
105 #options SLJIT
106 #options BPFJIT
107
108 # These options enable verbose messages for several subsystems.
109 # Warning, these may compile large string tables into the kernel!
110 #options MIIVERBOSE # verbose PHY autoconfig messages
111
112 options NFS_BOOT_DHCP
113
114 config netbsd root on ? type ?
115
116 mainbus0 at root
117 cpu* at mainbus?
118 com* at mainbus?
119 # mipsnet* at mainbus?
120 # options MIPSSIM_ETH_MACADDR="ba:bb:1e:01:23:45"
121
122
123 # Virtio devices
124 virtio* at mainbus? # Virtio PCI device
125 #viomb* at virtio? # Virtio memory balloon device
126 ld* at virtio? # Virtio disk device
127 vioif* at virtio? # Virtio network device
128 viornd* at virtio? # Virtio entropy device
129 vioscsi* at virtio? # Virtio SCSI device
130 #vio9p* at virtio? # Virtio 9P device
131
132 # SCSI bus support
133 scsibus* at scsi?
134
135 # SCSI devices
136 sd* at scsibus? target ? lun ? # SCSI disk drives
137 #st* at scsibus? target ? lun ? # SCSI tape drives
138 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
139 #ch* at scsibus? target ? lun ? # SCSI autochangers
140 #ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices
141 #ss* at scsibus? target ? lun ? # SCSI scanners
142 #uk* at scsibus? target ? lun ? # SCSI unknown
143
144
145 # Network pseudo-devices
146 pseudo-device bpfilter # Berkeley packet filter
147 #pseudo-device carp # Common Address Redundancy Protocol
148 pseudo-device loop # network loopback
149 #pseudo-device ppp # Point-to-Point Protocol
150 #pseudo-device sl # Serial Line IP
151 #pseudo-device tun # network tunneling over tty
152 #pseudo-device gre # generic L3 over IP tunnel
153 #pseudo-device ipip # RFC 2003 IP Encapsulation
154 #pseudo-device gif # RFC1933 tunnel
155 #pseudo-device faith # IPv[46] tcp relay translation
156 # Miscellaneous pseudo-devices
157 pseudo-device pty # pseudo-terminals
158 #pseudo-device sequencer # MIDI sequencer
159
160 # A pseudo device needed for Coda # also needs CODA (above)
161 #pseudo-device vcoda # coda minicache <-> venus comm.
162 pseudo-device clockctl # user control of clock subsystem
163 pseudo-device ksyms # /dev/ksyms
164
165 include "dev/veriexec.config"
166