2006-08-06 01:26:48 +04:00
|
|
|
# Lean and mean config file for the POWERMAC G5
|
|
|
|
# Author: Sanjay Lal <sanjayl@kymasys.com>
|
|
|
|
|
|
|
|
include "arch/macppc/conf/std.macppc.g5"
|
|
|
|
|
|
|
|
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
|
|
|
maxusers 32
|
|
|
|
|
2007-01-12 22:34:33 +03:00
|
|
|
options PMAC_G5
|
2006-08-06 01:26:48 +04:00
|
|
|
options ALTIVEC # Include AltiVec support
|
|
|
|
|
|
|
|
# Standard system options
|
|
|
|
options INSECURE # disable kernel security levels
|
|
|
|
|
|
|
|
options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
|
|
|
|
options NTP # NTP phase/frequency locked loop
|
|
|
|
options KTRACE # system call tracing via ktrace(1)
|
|
|
|
|
|
|
|
options SYSVMSG # System V message queues
|
|
|
|
options SYSVSEM # System V semaphores
|
|
|
|
#options SEMMNI=10 # number of semaphore identifiers
|
|
|
|
#options SEMMNS=60 # number of semaphores in system
|
|
|
|
#options SEMUME=10 # max number of undo entries per process
|
|
|
|
#options SEMMNU=30 # number of undo structures in system
|
|
|
|
options SYSVSHM # System V shared memory
|
|
|
|
options P1003_1B_SEMAPHORE # p1003.1b semaphore support
|
|
|
|
|
|
|
|
|
|
|
|
options USERCONF # userconf(4) support
|
|
|
|
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
|
|
|
|
options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
|
|
|
|
|
|
|
|
# Enable experimental buffer queue strategy for better responsiveness under
|
|
|
|
# high disk I/O load. Use it with caution - it's not proven to be stable yet.
|
|
|
|
#options NEW_BUFQ_STRATEGY
|
|
|
|
|
|
|
|
# Diagnostic/debugging support options
|
|
|
|
options DIAGNOSTIC # cheap kernel consistency checks
|
|
|
|
options DEBUG # expensive debugging checks/support
|
|
|
|
options ZS_CONSOLE_ABORT# allow break to get into DDB on serial
|
|
|
|
options DDB # in-kernel debugger
|
|
|
|
options DDB_ONPANIC=1 # don't go into ddb on panic.
|
|
|
|
options DDB_HISTORY_SIZE=512 # enable history editing in DDB
|
|
|
|
options TRAP_PANICWAIT
|
|
|
|
|
|
|
|
makeoptions DEBUG="-g" # compile full symbol table
|
|
|
|
|
|
|
|
# Compatibility options
|
|
|
|
options COMPAT_30 # NetBSD 3.0 compatibility.
|
2008-05-31 00:10:01 +04:00
|
|
|
options COMPAT_40 # NetBSD 4.0 compatibility.
|
2006-08-06 01:26:48 +04:00
|
|
|
options COMPAT_43 # and 4.3BSD
|
|
|
|
#options COMPAT_386BSD_MBRPART # recognize old partition ID
|
|
|
|
#options COMPAT_DARWIN # Darwin binary compatibility (experimental)
|
|
|
|
#options COMPAT_MACH # Mach compatibility, needed for COMPAT_DARWIN
|
|
|
|
#options EXEC_MACHO # Mach-O binary support, needed for COMPAT_MACH
|
2007-01-12 22:34:33 +03:00
|
|
|
#options DEBUG_DARWIN # COMPAT_DARWIN debugging
|
|
|
|
#options DEBUG_MACH # COMPAT_MACH debugging
|
2006-08-06 01:26:48 +04:00
|
|
|
#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
|
2007-01-12 22:34:33 +03:00
|
|
|
options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
|
2006-08-06 01:26:48 +04:00
|
|
|
|
|
|
|
# File systems
|
|
|
|
file-system FFS # UFS
|
|
|
|
file-system MFS # memory file system
|
|
|
|
file-system KERNFS # /kern
|
|
|
|
file-system PROCFS # /proc
|
|
|
|
file-system NFS # Network File System client
|
|
|
|
|
|
|
|
# File system options
|
|
|
|
options QUOTA # UFS quotas
|
|
|
|
#options FFS_EI # FFS Endian Independant support
|
2007-01-12 22:34:33 +03:00
|
|
|
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
|
2006-08-06 01:26:48 +04:00
|
|
|
#options NFSSERVER # Network File System server
|
|
|
|
#options FFS_NO_SNAPSHOT # ffs snapshots
|
|
|
|
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
|
|
|
|
# immutable) behave as system flags.
|
|
|
|
#options APPLE_UFS # Apple UFS support in FFS
|
|
|
|
# Networking options
|
|
|
|
#options GATEWAY # packet forwarding
|
|
|
|
options INET # IP + ICMP + TCP + UDP
|
|
|
|
|
|
|
|
# These options enable verbose messages for several subsystems.
|
|
|
|
# Warning, these may compile large string tables into the kernel!
|
|
|
|
options PCIVERBOSE # verbose PCI device autoconfig messages
|
|
|
|
options MIIVERBOSE # verbose PHY autoconfig messages
|
|
|
|
#options PCI_CONFIG_DUMP # verbosely dump PCI config space
|
|
|
|
|
|
|
|
# wscons options
|
|
|
|
#options WSEMUL_SUN # sun terminal emulation
|
|
|
|
options WSEMUL_VT100 # VT100 / VT220 emulation
|
|
|
|
#options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
|
|
|
|
options FONT_GALLANT12x22
|
|
|
|
|
|
|
|
# Optional Mac keyboard tweaks
|
|
|
|
|
|
|
|
# Tweak the keyboard driver to treat the caps lock key on an ADB
|
|
|
|
# keyboard as a control key; requires special remapping because of
|
|
|
|
# ADB's strange emulation of a mechanically-locked key.
|
2007-01-12 22:34:33 +03:00
|
|
|
#options CAPS_IS_CONTROL
|
2006-08-06 01:26:48 +04:00
|
|
|
|
|
|
|
# On Mac laptops, several function keys double as "hot keys"
|
|
|
|
# (brightness, volume, eject) when the Fn modifier is held down. Mac
|
|
|
|
# OS X likes to reprogram the keyboard controller to send hot key
|
|
|
|
# events when Fn is not held down and send function key events when it
|
|
|
|
# is. This option transforms the non-keyboard "button" events back
|
|
|
|
# into function key events.
|
2007-01-12 22:34:33 +03:00
|
|
|
#options FORCE_FUNCTION_KEYS
|
2006-08-06 01:26:48 +04:00
|
|
|
|
|
|
|
# Kernel root file system and dump configuration.
|
|
|
|
config netbsd root on ? type ?
|
|
|
|
#config netbsd root on gem0 type nfs
|
|
|
|
#options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
|
|
|
|
|
|
|
|
#
|
|
|
|
# Device configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
mainbus* at root
|
|
|
|
|
|
|
|
cpu* at mainbus?
|
|
|
|
ibmcpc* at mainbus?
|
|
|
|
|
|
|
|
pci* at ibmcpc? bus ?
|
|
|
|
pci* at ppb? bus ?
|
|
|
|
|
|
|
|
pchb* at pci? dev ? function ? # PCI-Host bridges
|
|
|
|
ppb* at pci? dev ? function ? # PCI-PCI bridges
|
|
|
|
|
|
|
|
gem* at pci? dev ? function ? # gmac ethernet
|
|
|
|
ukphy* at mii? phy ? # generic unknown PHYs
|
|
|
|
|
|
|
|
# PCI IEEE1394 controllers
|
|
|
|
#fwohci* at pci? dev ? function ? # IEEE1394 Open Host Controller
|
|
|
|
|
|
|
|
# IEEE1394 nodes
|
|
|
|
#ieee1394if* at fwohci?
|
|
|
|
#fwip* at ieee1394if? # IP over IEEE1394
|
|
|
|
#sbp* at ieee1394if? euihi ? euilo ?
|
|
|
|
#scsibus* at sbp?
|
|
|
|
|
|
|
|
|
|
|
|
# PCI USB controllers
|
|
|
|
ohci* at pci? dev ? function ? # USB Open Host Controller
|
|
|
|
#ehci* at pci? dev ? function ? # USB Enhanced Host Controller
|
|
|
|
|
|
|
|
usb* at ohci? # USB bus support
|
|
|
|
uhub* at usb? # USB Hubs
|
2007-03-14 15:27:20 +03:00
|
|
|
uhub* at uhub? port ?
|
2006-08-06 01:26:48 +04:00
|
|
|
uhidev* at uhub? port ? configuration ? interface ? # USB HID device
|
|
|
|
uhid* at uhidev? reportid ? # USB Generic HID
|
|
|
|
ukbd* at uhidev? reportid ? # USB Keyboards
|
|
|
|
wskbd* at ukbd? console ?
|
|
|
|
ums* at uhidev? reportid ? # USB Mice
|
|
|
|
wsmouse* at ums?
|
|
|
|
|
|
|
|
# Other PCI devices
|
|
|
|
#ofb* at pci? dev ? function ? # Generic Open Firmware Framebuffer
|
|
|
|
# OFB_ENABLE_CACHE speeds up the console on many machines, but should
|
|
|
|
# not be enabled on some older machines, such as the rev. A-D iMacs.
|
|
|
|
#options OFB_ENABLE_CACHE # Speed up console
|
|
|
|
pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
|
|
|
|
svwsata* at pci? dev ? function ? # ServerWorks SATA controllers
|
|
|
|
obio* at pci? dev ? function ?
|
|
|
|
zsc* at obio?
|
|
|
|
zstty* at zsc? channel ?
|
|
|
|
|
|
|
|
# PCI serial interfaces
|
|
|
|
nvram* at obio? # nvram
|
|
|
|
#wsdisplay0 at ofb? console ?
|
|
|
|
|
|
|
|
atabus* at ata?
|
|
|
|
wd* at atabus? drive ? flags 0x0000
|
|
|
|
atapibus* at atapi?
|
|
|
|
cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
|
|
|
|
sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
|
|
|
|
uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
|
|
|
|
|
|
|
|
|
|
|
|
#pseudo-device crypto # opencrypto framework
|
|
|
|
# (disabled, requires generic softints)
|
|
|
|
pseudo-device vnd 4 # disk-like interface to files
|
|
|
|
pseudo-device md 1 # memory disk device
|
|
|
|
pseudo-device loop # network loopback
|
|
|
|
pseudo-device pty # pseudo-terminals
|
|
|
|
pseudo-device rnd # /dev/random and in-kernel generator
|
|
|
|
pseudo-device openfirm # /dev/openfirm
|
|
|
|
pseudo-device wsmux # mouse and keyboard multiplexor
|
|
|
|
pseudo-device clockctl # user control of clock subsystem
|
|
|
|
pseudo-device ksyms # /dev/ksyms
|
|
|
|
pseudo-device nsmb # SMB requester
|
|
|
|
#pseudo-device pf # PF packet filter
|
|
|
|
#pseudo-device pflog # PF log if
|
|
|
|
|
|
|
|
# Enable the hooks used for initializing the ram-disk.
|
|
|
|
options MEMORY_DISK_HOOKS
|
|
|
|
options MEMORY_DISK_IS_ROOT # Force root on ram-disk
|
|
|
|
options MEMORY_DISK_ROOT_SIZE=4096 # 2 Megabytes
|
2009-02-06 21:50:26 +03:00
|
|
|
options MEMORY_DISK_RBFLAGS=RB_SINGLE # boot in single-user mode
|