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