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