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