GENERIC_601 revision 1.8.2.2 1 # $NetBSD: GENERIC_601,v 1.8.2.2 2017/03/20 06:57:16 pgoyette Exp $
2 #
3 # GENERIC machine description file
4 #
5 # This machine description file is used to generate the default NetBSD
6 # kernel. The generic kernel does not include all options, subsystems
7 # and device drivers, but should be useful for most applications.
8 #
9 # The machine description file can be customised for your specific
10 # machine to reduce the kernel size and improve its performance.
11 #
12 # For further information on compiling NetBSD kernels, see the config(8)
13 # man page.
14 #
15 # For further information on hardware support for this architecture, see
16 # the intro(4) man page. For further information about kernel options
17 # for this architecture, see the options(4) man page. For an explanation
18 # of each device driver in this file see the section 4 man page for the
19 # device.
20 #
21 # For PPC 601, need "CPUFLAGS+= -mcpu=601"
22 #
23 # Openfirmware 1.0.5 require a kernel < 4M for netbooting
24 #
25 # this config more or less matches a Power Macintosh 7200 with a USB card
26
27 include "arch/macppc/conf/std.macppc.601"
28
29 options INCLUDE_CONFIG_FILE # embed config file in kernel binary
30
31 ident "GENERIC-$Revision: 1.8.2.2 $"
32
33 maxusers 32
34
35 # Standard system options
36 options INSECURE # disable kernel security levels
37
38 options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
39 options NTP # NTP phase/frequency locked loop
40 options KTRACE # system call tracing via ktrace(1)
41
42 options SYSVMSG # System V message queues
43 options SYSVSEM # System V semaphores
44 options SYSVSHM # System V shared memory
45
46 options MODULAR # new style module(7) framework
47 options MODULAR_DEFAULT_AUTOLOAD
48
49 #options USERCONF # userconf(4) support
50 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
51 options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
52
53 # Enable experimental buffer queue strategy for better responsiveness under
54 # high disk I/O load. Use it with caution - it's not proven to be stable yet.
55 #options BUFQ_READPRIO
56 #options BUFQ_PRIOCSCAN
57
58 # Diagnostic/debugging support options
59 #options DIAGNOSTIC # cheap kernel consistency checks
60 #options DEBUG # expensive debugging checks/support
61 options ZS_CONSOLE_ABORT# allow break to get into DDB on serial
62 options DDB # in-kernel debugger
63 #options DDB_ONPANIC=0 # don't go into ddb on panic.
64 options DDB_HISTORY_SIZE=512 # enable history editing in DDB
65 #options TRAP_PANICWAIT
66 options DDB_COMMANDONENTER="bt"
67
68 #makeoptions DEBUG="-g" # compile full symbol table
69
70 # Compatibility options
71 options COMPAT_50 # NetBSD 5.0,
72 options COMPAT_60 # NetBSD 6.0, and
73 options COMPAT_70 # NetBSD 7.0 binary compatibility.
74 #options COMPAT_386BSD_MBRPART # recognize old partition ID
75 #options COMPAT_LINUX # Linux binary compatibility
76 #options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
77 options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
78
79 # Wedge support
80 options DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances
81 options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
82 #options DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
83 #options DKWEDGE_METHOD_MBR # Support MBR partitions as wedges
84 options DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges
85 #options DKWEDGE_METHOD_RDB # Support RDB partitions as wedges
86
87 # File systems
88 file-system FFS # UFS
89 #file-system EXT2FS # second extended file system (linux)
90 #file-system LFS # log-structured file system
91 #file-system MFS # memory file system
92 file-system NFS # Network File System client
93 file-system CD9660 # ISO 9660 + Rock Ridge file system
94 #file-system MSDOSFS # MS-DOS file system
95 file-system FDESC # /dev/fd
96 file-system KERNFS # /kern
97 #file-system NULLFS # loopback file system
98 #file-system OVERLAY # overlay file system
99 #file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
100 file-system PROCFS # /proc
101 #file-system UMAPFS # NULLFS + uid and gid remapping
102 #file-system UNION # union file system
103 #file-system SMBFS # CIFS; also needs nsmb (below)
104 file-system PTYFS # /dev/pts/N support
105 file-system TMPFS # Efficient memory file-system
106 #file-system UDF # experimental - OSTA UDF CD/DVD file-system
107 #file-system HFS # experimental - Apple HFS+ (read-only)
108
109 # File system options
110 #options QUOTA # legacy UFS quotas
111 #options QUOTA2 # new, in-filesystem UFS quotas
112 #options FFS_EI # FFS Endian Independent support
113 options WAPBL # File system journaling support
114 #options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
115 #options NFSSERVER # Network File System server
116 #options FFS_NO_SNAPSHOT # No FFS snapshot support
117 #options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
118 # immutable) behave as system flags.
119 #options APPLE_UFS # Apple UFS support in FFS
120
121 options NFS_BOOT_DHCP # Support DHCP NFS root
122
123 # Networking options
124 #options GATEWAY # packet forwarding
125 options INET # IP + ICMP + TCP + UDP
126 options INET6 # IPV6
127 #options IPSEC # IP security
128 #options IPSEC_DEBUG # debug for IP security
129 #options MROUTING # IP multicast routing
130 #options PIM # Protocol Independent Multicast
131 #options NETATALK # AppleTalk networking protocols
132 #options PPP_BSDCOMP # BSD-Compress compression support for PPP
133 #options PPP_DEFLATE # Deflate compression support for PPP
134 #options PPP_FILTER # Active filter support for PPP (requires bpf)
135 #options IPFILTER_LOG # ipmon(8) log support
136 #options IPFILTER_LOOKUP # ippool(8) support
137 #options IPFILTER_COMPAT # Compat for IP-Filter
138 #options IPFILTER_DEFAULT_BLOCK # block all packets by default
139 #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
140
141 #options ALTQ # Manipulate network interfaces' output queues
142 #options ALTQ_BLUE # Stochastic Fair Blue
143 #options ALTQ_CBQ # Class-Based Queueing
144 #options ALTQ_CDNR # Diffserv Traffic Conditioner
145 #options ALTQ_FIFOQ # First-In First-Out Queue
146 #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
147 #options ALTQ_HFSC # Hierarchical Fair Service Curve
148 #options ALTQ_LOCALQ # Local queueing discipline
149 #options ALTQ_PRIQ # Priority Queueing
150 #options ALTQ_RED # Random Early Detection
151 #options ALTQ_RIO # RED with IN/OUT
152 #options ALTQ_WFQ # Weighted Fair Queueing
153
154 # These options enable verbose messages for several subsystems.
155 # Warning, these may compile large string tables into the kernel!
156 options PCIVERBOSE # verbose PCI device autoconfig messages
157 options MIIVERBOSE # verbose PHY autoconfig messages
158 #options PCI_CONFIG_DUMP # verbosely dump PCI config space
159 options SCSIVERBOSE # human readable SCSI error messages
160 options USBVERBOSE # verbose USB device autoconfig messages
161
162 # wscons options
163 #options WSEMUL_SUN # sun terminal emulation
164 options WSEMUL_VT100 # VT100 / VT220 emulation
165 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
166 options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
167 options WSDISPLAY_COMPAT_USL # VT handling
168
169 options WS_DEFAULT_FG=WSCOL_BLACK
170 options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
171 options WS_KERNEL_FG=WSCOL_GREEN
172 options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
173
174 #options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
175 options FONT_GALLANT12x22
176 options FONT_QVSS8x15 # a smaller font for lower resolutions
177 options FONT_DROID_SANS_MONO12x22
178 #options FONT_DROID_SANS_MONO8x16
179
180 # Optional Mac keyboard tweaks
181
182 # Tweak the keyboard driver to treat the caps lock key on an ADB
183 # keyboard as a control key; requires special remapping because of
184 # ADB's strange emulation of a mechanically-locked key.
185 #options CAPS_IS_CONTROL
186
187 # On Mac laptops, several function keys double as "hot keys"
188 # (brightness, volume, eject) when the Fn modifier is held down. Mac
189 # OS X likes to reprogram the keyboard controller to send hot key
190 # events when Fn is not held down and send function key events when it
191 # is. This option transforms the non-keyboard "button" events back
192 # into function key events.
193 # enabled by default since trying to control brightness with those causes
194 # trouble on pretty much all halfway recent Apple laptops
195 options FORCE_FUNCTION_KEYS
196
197 # Kernel root file system and dump configuration.
198 config netbsd root on ? type ?
199
200 #
201 # Device configuration
202 #
203
204 mainbus* at root
205
206 cpu* at mainbus?
207 bandit* at mainbus?
208
209 pci* at bandit? bus ?
210 pci* at ppb? bus ?
211
212 pchb* at pci? dev ? function ? # PCI-Host bridges
213 ppb* at pci? dev ? function ? # PCI-PCI bridges
214
215 # PCI SCSI controllers
216 #ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI
217
218 # Display devices
219 #
220 # The 7200's onboard video is unsupported by OF so we need either a
221 # graphics card that works as OF console or a serial console.
222 # The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
223 # official Macintosh firmware from 3Dfx. The others should work but are
224 # untested with OF 1.0.5
225
226 # this will take over the console if output-device is set to 'screen' or
227 # 'platinum'. It will provide a NetBSD console, but still won't work with OF
228 platinumfb0 at mainbus?
229
230 #gffb* at pci? function ? # NVIDIA GeForce2 MX
231 #machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro
232 #r128fb* at pci? function ? # ATI Rage 128
233 voodoofb* at pci? function ? # 3Dfx Voodoo3
234
235 # ATI Radeon. Still has problems on some hardware
236 #radeonfb* at pci? function ?
237
238 # generic PCI framebuffer, should work with everything supported by OF
239 genfb* at pci? function ?
240
241 # make sure the console display is always wsdisplay0
242 wsdisplay0 at wsemuldisplaydev? console 1
243 wsdisplay* at wsemuldisplaydev?
244
245 #macofcons0 at pci? dev ? function ? # OpenFirmware console (for debugging)
246
247 obio* at pci? dev ? function ?
248
249 mc* at obio? # MACE ethernet
250 esp* at obio? flags 0x00ff # 53c9x SCSI
251 # the 7200 has no mesh but other PMacs with 601 cards may
252 mesh* at obio? flags 0xffff # MESH SCSI
253 nvram* at obio? # nvram
254
255 # the new, improved ADB subsystem
256
257 cuda* at obio? # CUDA, for Old World PowerMacs
258 nadb* at adb_bus? # ADB bus enumerator, at cuda or pmu
259 adbkbd* at nadb? # ADB keyboard
260 adbms* at nadb? # ADB mice and touchpads
261
262 wskbd* at wskbddev? console ?
263 wsmouse* at wsmousedev?
264
265 iic0 at cuda0 # CUDA's IIC bus
266
267 zsc* at obio?
268 zstty* at zsc? channel ?
269
270 # awacs is disabled because on most systems (7300 - 9600 PowerMacs,
271 # many kinds of G4s), very heavy load can cause the machine to lock
272 # up. ONLY enable this if your machine is never under heavy load, or
273 # you'd rather have audio than worry about occasional lockups.
274 awacs* at obio? # Apple audio device
275
276 # Cryptographic Devices
277
278 # PCI cryptographic devices
279 # (disabled, requires opencrypto framework which requires generic softints
280 #hifn* at pci? dev ? function ? # Hifn 7755/7811/795x
281 #ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x
282
283
284 scsibus* at scsi?
285
286 sd* at scsibus? target ? lun ? # SCSI disks
287 #st* at scsibus? target ? lun ? # SCSI tape drives
288 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
289 #ch* at scsibus? target ? lun ? # SCSI autochangers
290 #ss* at scsibus? target ? lun ? # SCSI scanners
291 #uk* at scsibus? target ? lun ? # SCSI unknown
292
293 # PCI USB controllers
294 ohci* at pci? dev ? function ? # USB Open Host Controller
295 #ehci* at pci? dev ? function ? # USB Enhanced Host Controller
296
297 #usb* at ehci? # USB bus support
298 usb* at ohci? # USB bus support
299 uhub* at usb? # USB Hubs
300 uhub* at uhub? port ?
301
302 uhidev* at uhub? port ? configuration ? interface ? # USB HID device
303
304 ums* at uhidev? reportid ? # USB Mice
305 ukbd* at uhidev? reportid ? # USB Keyboards
306 uhid* at uhidev? reportid ? # USB Generic HID
307
308 umass* at uhub? port ? configuration ? interface ? # USB Mass Storage
309 ugen* at uhub? port ? configuration ? interface ? # USB Generic driver
310
311 # Audio Devices
312
313 # Audio support
314 audio* at audiobus?
315
316 spkr* at audio? # PC speaker (synthesized)
317
318 #
319 # accept filters
320 #pseudo-device accf_data # "dataready" accept filter
321 #pseudo-device accf_http # "httpready" accept filter
322
323 #pseudo-device crypto # /dev/crypto device
324 # (disabled, requires generic softints)
325 #pseudo-device swcrypto # software crypto implementation
326 pseudo-device vnd # disk-like interface to files
327 #options VND_COMPRESSION # compressed vnd(4)
328 #pseudo-device ccd # concatenated/striped disk devices
329 #pseudo-device cgd # cryptographic disk devices
330 #pseudo-device raid # RAIDframe disk driver
331 #options RAID_AUTOCONFIG # auto-configuration of RAID components
332 # Options to enable various other RAIDframe RAID types.
333 # options RF_INCLUDE_EVENODD=1
334 # options RF_INCLUDE_RAID5_RS=1
335 # options RF_INCLUDE_PARITYLOGGING=1
336 # options RF_INCLUDE_CHAINDECLUSTER=1
337 # options RF_INCLUDE_INTERDECLUSTER=1
338 # options RF_INCLUDE_PARITY_DECLUSTERING=1
339 # options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
340 pseudo-device fss # file system snapshot device
341 #pseudo-device md # memory disk device
342 pseudo-device loop # network loopback
343 #pseudo-device bpfilter # packet filter
344 #pseudo-device ipfilter # IP filter (firewall) and NAT
345 #pseudo-device ppp # Point-to-Point Protocol
346 #pseudo-device pppoe # PPP over Ethernet (RFC 2516)
347 #pseudo-device sl # Serial Line IP
348 #pseudo-device tun # network tunneling over tty
349 pseudo-device tap # virtual Ethernet
350 #pseudo-device gre # generic L3 over IP tunnel
351 #pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
352 #pseudo-device faith # IPv[46] tcp relay translation i/f
353 #pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
354 #pseudo-device vlan # IEEE 802.1q encapsulation
355 #pseudo-device bridge # simple inter-network bridging
356 #options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
357 #pseudo-device agr # IEEE 802.3ad link aggregation
358 pseudo-device pty # pseudo-terminals
359 pseudo-device openfirm # /dev/openfirm
360 pseudo-device wsmux # mouse and keyboard multiplexer
361 #pseudo-device swwdog # software watchdog driver - swwdog(4)
362 pseudo-device clockctl # user control of clock subsystem
363 pseudo-device ksyms # /dev/ksyms
364 #pseudo-device nsmb # SMB requester
365 #pseudo-device pf # PF packet filter
366 #pseudo-device pflog # PF log if
367 #pseudo-device putter # for puffs and pud
368
369 # userland interface to drivers, including autoconf and properties retrieval
370 pseudo-device drvctl
371
372 # Veriexec
373 #
374 # a pseudo device needed for veriexec
375 #pseudo-device veriexec
376 #
377 # Uncomment the fingerprint methods below that are desired. Note that
378 # removing fingerprint methods will have almost no impact on the kernel
379 # code size.
380 #
381 #options VERIFIED_EXEC_FP_RMD160
382 #options VERIFIED_EXEC_FP_SHA256
383 #options VERIFIED_EXEC_FP_SHA384
384 #options VERIFIED_EXEC_FP_SHA512
385 #options VERIFIED_EXEC_FP_SHA1
386 #options VERIFIED_EXEC_FP_MD5
387
388 #options PAX_MPROTECT=0 # PaX mprotect(2) restrictions
389