GENERIC_601 revision 1.3
11.3Schristos# $NetBSD: GENERIC_601,v 1.3 2014/08/18 06:31:24 christos Exp $ 21.1Smacallan# 31.1Smacallan# GENERIC machine description file 41.1Smacallan# 51.1Smacallan# This machine description file is used to generate the default NetBSD 61.1Smacallan# kernel. The generic kernel does not include all options, subsystems 71.1Smacallan# and device drivers, but should be useful for most applications. 81.1Smacallan# 91.1Smacallan# The machine description file can be customised for your specific 101.1Smacallan# machine to reduce the kernel size and improve its performance. 111.1Smacallan# 121.1Smacallan# For further information on compiling NetBSD kernels, see the config(8) 131.1Smacallan# man page. 141.1Smacallan# 151.1Smacallan# For further information on hardware support for this architecture, see 161.1Smacallan# the intro(4) man page. For further information about kernel options 171.1Smacallan# for this architecture, see the options(4) man page. For an explanation 181.1Smacallan# of each device driver in this file see the section 4 man page for the 191.1Smacallan# device. 201.1Smacallan# 211.1Smacallan# For PPC 601, need "CPUFLAGS+= -mcpu=601" 221.1Smacallan# 231.1Smacallan# Openfirmware 1.0.5 require a kernel < 4M for netbooting 241.1Smacallan# 251.1Smacallan# this config more or less matches a Power Macintosh 7200 with a USB card 261.1Smacallan 271.1Smacallaninclude "arch/macppc/conf/std.macppc.601" 281.1Smacallan 291.1Smacallanoptions INCLUDE_CONFIG_FILE # embed config file in kernel binary 301.1Smacallan 311.3Schristosident "GENERIC-$Revision: 1.3 $" 321.1Smacallan 331.1Smacallanmaxusers 32 341.1Smacallan 351.1Smacallan# Standard system options 361.1Smacallanoptions INSECURE # disable kernel security levels 371.1Smacallan 381.1Smacallanoptions RTC_OFFSET=0 # hardware clock is this many mins. west of GMT 391.1Smacallanoptions NTP # NTP phase/frequency locked loop 401.1Smacallanoptions KTRACE # system call tracing via ktrace(1) 411.1Smacallan 421.1Smacallanoptions SYSVMSG # System V message queues 431.1Smacallanoptions SYSVSEM # System V semaphores 441.1Smacallanoptions SYSVSHM # System V shared memory 451.1Smacallan 461.1Smacallanoptions MODULAR # new style module(7) framework 471.1Smacallan 481.1Smacallan#options USERCONF # userconf(4) support 491.1Smacallan#options PIPE_SOCKETPAIR # smaller, but slower pipe(2) 501.1Smacallanoptions SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel 511.1Smacallan 521.1Smacallan# Enable experimental buffer queue strategy for better responsiveness under 531.1Smacallan# high disk I/O load. Use it with caution - it's not proven to be stable yet. 541.1Smacallan#options BUFQ_READPRIO 551.1Smacallan#options BUFQ_PRIOCSCAN 561.1Smacallan 571.1Smacallan# Diagnostic/debugging support options 581.1Smacallan#options DIAGNOSTIC # cheap kernel consistency checks 591.1Smacallan#options DEBUG # expensive debugging checks/support 601.1Smacallanoptions ZS_CONSOLE_ABORT# allow break to get into DDB on serial 611.1Smacallanoptions DDB # in-kernel debugger 621.1Smacallan#options DDB_ONPANIC=0 # don't go into ddb on panic. 631.1Smacallanoptions DDB_HISTORY_SIZE=512 # enable history editing in DDB 641.1Smacallan#options TRAP_PANICWAIT 651.1Smacallanoptions DDB_COMMANDONENTER="bt" 661.1Smacallan 671.1Smacallan#makeoptions DEBUG="-g" # compile full symbol table 681.1Smacallan 691.1Smacallan# Compatibility options 701.1Smacallanoptions COMPAT_50 # NetBSD 5.0 compatibility. 711.1Smacallanoptions COMPAT_60 # NetBSD 6.0 compatibility. 721.2Sapboptions COMPAT_70 # NetBSD 7.0 compatibility. 731.1Smacallan#options COMPAT_386BSD_MBRPART # recognize old partition ID 741.1Smacallan#options COMPAT_LINUX # Linux binary compatibility 751.1Smacallan#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended. 761.1Smacallanoptions COMPAT_BSDPTY # /dev/[pt]ty?? ptys. 771.1Smacallan 781.1Smacallan# Wedge support 791.1Smacallanoptions DKWEDGE_AUTODISCOVER # Automatically add dk(4) instances 801.1Smacallanoptions DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges 811.3Schristosoptions DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges 821.3Schristosoptions DKWEDGE_METHOD_MBR # Support MBR partitions as wedges 831.3Schristosoptions DKWEDGE_METHOD_APPLE # Support Apple partitions as wedges 841.1Smacallan 851.1Smacallan# File systems 861.1Smacallanfile-system FFS # UFS 871.1Smacallan#file-system EXT2FS # second extended file system (linux) 881.1Smacallan#file-system LFS # log-structured file system 891.1Smacallan#file-system MFS # memory file system 901.1Smacallanfile-system NFS # Network File System client 911.1Smacallanfile-system CD9660 # ISO 9660 + Rock Ridge file system 921.1Smacallan#file-system MSDOSFS # MS-DOS file system 931.1Smacallanfile-system FDESC # /dev/fd 941.1Smacallanfile-system KERNFS # /kern 951.1Smacallan#file-system NULLFS # loopback file system 961.1Smacallan#file-system OVERLAY # overlay file system 971.1Smacallan#file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) 981.1Smacallanfile-system PROCFS # /proc 991.1Smacallan#file-system UMAPFS # NULLFS + uid and gid remapping 1001.1Smacallan#file-system UNION # union file system 1011.1Smacallan#file-system SMBFS # CIFS; also needs nsmb (below) 1021.1Smacallanfile-system PTYFS # /dev/pts/N support 1031.1Smacallanfile-system TMPFS # Efficient memory file-system 1041.1Smacallan#file-system UDF # experimental - OSTA UDF CD/DVD file-system 1051.1Smacallan#file-system HFS # experimental - Apple HFS+ (read-only) 1061.1Smacallan 1071.1Smacallan# File system options 1081.1Smacallan#options QUOTA # legacy UFS quotas 1091.1Smacallan#options QUOTA2 # new, in-filesystem UFS quotas 1101.1Smacallan#options FFS_EI # FFS Endian Independent support 1111.1Smacallanoptions WAPBL # File system journaling support 1121.1Smacallan#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental 1131.1Smacallan#options NFSSERVER # Network File System server 1141.1Smacallan#options FFS_NO_SNAPSHOT # No FFS snapshot support 1151.1Smacallan#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and 1161.1Smacallan # immutable) behave as system flags. 1171.1Smacallan#options APPLE_UFS # Apple UFS support in FFS 1181.1Smacallan 1191.1Smacallanoptions NFS_BOOT_DHCP # Support DHCP NFS root 1201.1Smacallan 1211.1Smacallan# Networking options 1221.1Smacallan#options GATEWAY # packet forwarding 1231.1Smacallanoptions INET # IP + ICMP + TCP + UDP 1241.1Smacallanoptions INET6 # IPV6 1251.1Smacallan#options IPSEC # IP security 1261.1Smacallan#options IPSEC_DEBUG # debug for IP security 1271.1Smacallan#options MROUTING # IP multicast routing 1281.1Smacallan#options PIM # Protocol Independent Multicast 1291.1Smacallan#options NETATALK # AppleTalk networking protocols 1301.1Smacallan#options PPP_BSDCOMP # BSD-Compress compression support for PPP 1311.1Smacallan#options PPP_DEFLATE # Deflate compression support for PPP 1321.1Smacallan#options PPP_FILTER # Active filter support for PPP (requires bpf) 1331.1Smacallan#options IPFILTER_LOG # ipmon(8) log support 1341.1Smacallan#options IPFILTER_LOOKUP # ippool(8) support 1351.1Smacallan#options IPFILTER_COMPAT # Compat for IP-Filter 1361.1Smacallan#options IPFILTER_DEFAULT_BLOCK # block all packets by default 1371.1Smacallan#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 1381.1Smacallan 1391.1Smacallan#options ALTQ # Manipulate network interfaces' output queues 1401.1Smacallan#options ALTQ_BLUE # Stochastic Fair Blue 1411.1Smacallan#options ALTQ_CBQ # Class-Based Queueing 1421.1Smacallan#options ALTQ_CDNR # Diffserv Traffic Conditioner 1431.1Smacallan#options ALTQ_FIFOQ # First-In First-Out Queue 1441.1Smacallan#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 1451.1Smacallan#options ALTQ_HFSC # Hierarchical Fair Service Curve 1461.1Smacallan#options ALTQ_LOCALQ # Local queueing discipline 1471.1Smacallan#options ALTQ_PRIQ # Priority Queueing 1481.1Smacallan#options ALTQ_RED # Random Early Detection 1491.1Smacallan#options ALTQ_RIO # RED with IN/OUT 1501.1Smacallan#options ALTQ_WFQ # Weighted Fair Queueing 1511.1Smacallan 1521.1Smacallan# These options enable verbose messages for several subsystems. 1531.1Smacallan# Warning, these may compile large string tables into the kernel! 1541.1Smacallanoptions PCIVERBOSE # verbose PCI device autoconfig messages 1551.1Smacallanoptions MIIVERBOSE # verbose PHY autoconfig messages 1561.1Smacallan#options PCI_CONFIG_DUMP # verbosely dump PCI config space 1571.1Smacallanoptions SCSIVERBOSE # human readable SCSI error messages 1581.1Smacallanoptions USBVERBOSE # verbose USB device autoconfig messages 1591.1Smacallan 1601.1Smacallan# wscons options 1611.1Smacallan#options WSEMUL_SUN # sun terminal emulation 1621.1Smacallanoptions WSEMUL_VT100 # VT100 / VT220 emulation 1631.1Smacallanoptions WSDISPLAY_COMPAT_PCVT # emulate some ioctls 1641.1Smacallanoptions WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls 1651.1Smacallanoptions WSDISPLAY_COMPAT_USL # VT handling 1661.1Smacallan 1671.1Smacallanoptions WS_DEFAULT_FG=WSCOL_BLACK 1681.1Smacallanoptions WS_DEFAULT_BG=WSCOL_LIGHT_WHITE 1691.1Smacallanoptions WS_KERNEL_FG=WSCOL_GREEN 1701.1Smacallanoptions WS_KERNEL_BG=WSCOL_LIGHT_WHITE 1711.1Smacallan 1721.1Smacallan#options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 1731.1Smacallanoptions FONT_GALLANT12x22 1741.1Smacallanoptions FONT_QVSS8x15 # a smaller font for lower resolutions 1751.1Smacallanoptions FONT_DROID_SANS_MONO12x22 1761.1Smacallan#options FONT_DROID_SANS_MONO8x16 1771.1Smacallan 1781.1Smacallan# Optional Mac keyboard tweaks 1791.1Smacallan 1801.1Smacallan# Tweak the keyboard driver to treat the caps lock key on an ADB 1811.1Smacallan# keyboard as a control key; requires special remapping because of 1821.1Smacallan# ADB's strange emulation of a mechanically-locked key. 1831.1Smacallan#options CAPS_IS_CONTROL 1841.1Smacallan 1851.1Smacallan# On Mac laptops, several function keys double as "hot keys" 1861.1Smacallan# (brightness, volume, eject) when the Fn modifier is held down. Mac 1871.1Smacallan# OS X likes to reprogram the keyboard controller to send hot key 1881.1Smacallan# events when Fn is not held down and send function key events when it 1891.1Smacallan# is. This option transforms the non-keyboard "button" events back 1901.1Smacallan# into function key events. 1911.1Smacallan# enabled by default since trying to control brightness with those causes 1921.1Smacallan# trouble on pretty much all halfway recent Apple laptops 1931.1Smacallanoptions FORCE_FUNCTION_KEYS 1941.1Smacallan 1951.1Smacallan# Kernel root file system and dump configuration. 1961.1Smacallanconfig netbsd root on ? type ? 1971.1Smacallan 1981.1Smacallan# 1991.1Smacallan# Device configuration 2001.1Smacallan# 2011.1Smacallan 2021.1Smacallanmainbus* at root 2031.1Smacallan 2041.1Smacallancpu* at mainbus? 2051.1Smacallanbandit* at mainbus? 2061.1Smacallan 2071.1Smacallanpci* at bandit? bus ? 2081.1Smacallanpci* at ppb? bus ? 2091.1Smacallan 2101.1Smacallanpchb* at pci? dev ? function ? # PCI-Host bridges 2111.1Smacallanppb* at pci? dev ? function ? # PCI-PCI bridges 2121.1Smacallan 2131.1Smacallan# PCI SCSI controllers 2141.1Smacallan#ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI 2151.1Smacallan 2161.1Smacallan# Display devices 2171.1Smacallan# 2181.1Smacallan# The 7200's onboard video is unsupported ( by OF no less ) so we need either a 2191.1Smacallan# graphics card that works as OF console or a serial console. 2201.1Smacallan# The only cards known to work ( so far ) are PCI Voodoo3s flashed with the 2211.1Smacallan# official Macintosh firmware from 3Dfx. The others should work but are 2221.1Smacallan# untested with OF 1.0.5 2231.1Smacallan 2241.1Smacallan#gffb* at pci? function ? # NVIDIA GeForce2 MX 2251.1Smacallan#machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro 2261.1Smacallan#r128fb* at pci? function ? # ATI Rage 128 2271.1Smacallanvoodoofb* at pci? function ? # 3Dfx Voodoo3 2281.1Smacallan 2291.1Smacallan# ATI Radeon. Still has problems on some hardware 2301.1Smacallan#radeonfb* at pci? function ? 2311.1Smacallan#options RADEONFB_MMAP_BARS # allow mmap()ing BARs - needed for X 2321.1Smacallan 2331.1Smacallan# generic PCI framebuffer, should work with everything supported by OF 2341.1Smacallangenfb* at pci? function ? 2351.1Smacallan 2361.1Smacallan# make sure the console display is always wsdisplay0 2371.1Smacallanwsdisplay0 at wsemuldisplaydev? console 1 2381.1Smacallanwsdisplay* at wsemuldisplaydev? 2391.1Smacallan 2401.1Smacallan#macofcons0 at pci? dev ? function ? # OpenFirmware console (for debugging) 2411.1Smacallan 2421.1Smacallanobio* at pci? dev ? function ? 2431.1Smacallan 2441.1Smacallanmc* at obio? # MACE ethernet 2451.1Smacallanesp* at obio? flags 0x00ff # 53c9x SCSI 2461.1Smacallan# the 7200 has no mesh but other PMacs with 601 cards may 2471.1Smacallanmesh* at obio? flags 0xffff # MESH SCSI 2481.1Smacallannvram* at obio? # nvram 2491.1Smacallan 2501.1Smacallan# the new, improved ADB subsystem 2511.1Smacallan 2521.1Smacallancuda* at obio? # CUDA, for Old World PowerMacs 2531.1Smacallannadb* at adb_bus? # ADB bus enumerator, at cuda or pmu 2541.1Smacallanadbkbd* at nadb? # ADB keyboard 2551.1Smacallanadbms* at nadb? # ADB mice and touchpads 2561.1Smacallan 2571.1Smacallanwskbd* at wskbddev? console ? 2581.1Smacallanwsmouse* at wsmousedev? 2591.1Smacallan 2601.1Smacallaniic0 at cuda0 # CUDA's IIC bus 2611.1Smacallan 2621.1Smacallanzsc* at obio? 2631.1Smacallanzstty* at zsc? channel ? 2641.1Smacallan 2651.1Smacallan# awacs is disabled because on most systems (7300 - 9600 PowerMacs, 2661.1Smacallan# many kinds of G4s), very heavy load can cause the machine to lock 2671.1Smacallan# up. ONLY enable this if your machine is never under heavy load, or 2681.1Smacallan# you'd rather have audio than worry about occasional lockups. 2691.1Smacallanawacs* at obio? # Apple audio device 2701.1Smacallan 2711.1Smacallan# Cryptographic Devices 2721.1Smacallan 2731.1Smacallan# PCI cryptographic devices 2741.1Smacallan# (disabled, requires opencrypto framework which requires generic softints 2751.1Smacallan#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x 2761.1Smacallan#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x 2771.1Smacallan 2781.1Smacallan 2791.1Smacallanscsibus* at scsi? 2801.1Smacallan 2811.1Smacallansd* at scsibus? target ? lun ? # SCSI disks 2821.1Smacallan#st* at scsibus? target ? lun ? # SCSI tape drives 2831.1Smacallancd* at scsibus? target ? lun ? # SCSI CD-ROM drives 2841.1Smacallan#ch* at scsibus? target ? lun ? # SCSI autochangers 2851.1Smacallan#ss* at scsibus? target ? lun ? # SCSI scanners 2861.1Smacallan#uk* at scsibus? target ? lun ? # SCSI unknown 2871.1Smacallan 2881.1Smacallan# PCI USB controllers 2891.1Smacallanohci* at pci? dev ? function ? # USB Open Host Controller 2901.1Smacallan#ehci* at pci? dev ? function ? # USB Enhanced Host Controller 2911.1Smacallan 2921.1Smacallan#usb* at ehci? # USB bus support 2931.1Smacallanusb* at ohci? # USB bus support 2941.1Smacallanuhub* at usb? # USB Hubs 2951.1Smacallanuhub* at uhub? port ? 2961.1Smacallan 2971.1Smacallanuhidev* at uhub? port ? configuration ? interface ? # USB HID device 2981.1Smacallan 2991.1Smacallanums* at uhidev? reportid ? # USB Mice 3001.1Smacallanukbd* at uhidev? reportid ? # USB Keyboards 3011.1Smacallanuhid* at uhidev? reportid ? # USB Generic HID 3021.1Smacallan 3031.1Smacallanumass* at uhub? port ? configuration ? interface ? # USB Mass Storage 3041.1Smacallanugen* at uhub? port ? configuration ? interface ? # USB Generic driver 3051.1Smacallan 3061.1Smacallan# Audio Devices 3071.1Smacallan 3081.1Smacallan# Audio support 3091.1Smacallanaudio* at audiobus? 3101.1Smacallan 3111.1Smacallan# 3121.1Smacallan# accept filters 3131.1Smacallan#pseudo-device accf_data # "dataready" accept filter 3141.1Smacallan#pseudo-device accf_http # "httpready" accept filter 3151.1Smacallan 3161.1Smacallan#pseudo-device crypto # /dev/crypto device 3171.1Smacallan # (disabled, requires generic softints) 3181.1Smacallan#pseudo-device swcrypto # software crypto implementation 3191.1Smacallanpseudo-device vnd # disk-like interface to files 3201.1Smacallan#options VND_COMPRESSION # compressed vnd(4) 3211.1Smacallan#pseudo-device ccd # concatenated/striped disk devices 3221.1Smacallan#pseudo-device cgd # cryptographic disk devices 3231.1Smacallan#pseudo-device raid # RAIDframe disk driver 3241.1Smacallan#options RAID_AUTOCONFIG # auto-configuration of RAID components 3251.1Smacallan# Options to enable various other RAIDframe RAID types. 3261.1Smacallan# options RF_INCLUDE_EVENODD=1 3271.1Smacallan# options RF_INCLUDE_RAID5_RS=1 3281.1Smacallan# options RF_INCLUDE_PARITYLOGGING=1 3291.1Smacallan# options RF_INCLUDE_CHAINDECLUSTER=1 3301.1Smacallan# options RF_INCLUDE_INTERDECLUSTER=1 3311.1Smacallan# options RF_INCLUDE_PARITY_DECLUSTERING=1 3321.1Smacallan# options RF_INCLUDE_PARITY_DECLUSTERING_DS=1 3331.1Smacallanpseudo-device fss # file system snapshot device 3341.1Smacallan#pseudo-device md # memory disk device 3351.1Smacallanpseudo-device loop # network loopback 3361.1Smacallan#pseudo-device bpfilter # packet filter 3371.1Smacallan#pseudo-device ipfilter # IP filter (firewall) and NAT 3381.1Smacallan#pseudo-device ppp # Point-to-Point Protocol 3391.1Smacallan#pseudo-device pppoe # PPP over Ethernet (RFC 2516) 3401.1Smacallan#pseudo-device sl # Serial Line IP 3411.1Smacallan#pseudo-device tun # network tunneling over tty 3421.1Smacallanpseudo-device tap # virtual Ethernet 3431.1Smacallan#pseudo-device gre # generic L3 over IP tunnel 3441.1Smacallan#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) 3451.1Smacallan#pseudo-device faith # IPv[46] tcp relay translation i/f 3461.1Smacallan#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation 3471.1Smacallan#pseudo-device vlan # IEEE 802.1q encapsulation 3481.1Smacallan#pseudo-device bridge # simple inter-network bridging 3491.1Smacallan#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too 3501.1Smacallan#pseudo-device agr # IEEE 802.3ad link aggregation 3511.1Smacallanpseudo-device pty # pseudo-terminals 3521.1Smacallanpseudo-device openfirm # /dev/openfirm 3531.1Smacallanpseudo-device wsmux # mouse and keyboard multiplexer 3541.1Smacallan#pseudo-device swwdog # software watchdog driver - swwdog(4) 3551.1Smacallanpseudo-device clockctl # user control of clock subsystem 3561.1Smacallanpseudo-device ksyms # /dev/ksyms 3571.1Smacallan#pseudo-device nsmb # SMB requester 3581.1Smacallan#pseudo-device pf # PF packet filter 3591.1Smacallan#pseudo-device pflog # PF log if 3601.1Smacallan#pseudo-device putter # for puffs and pud 3611.1Smacallan 3621.1Smacallan# userland interface to drivers, including autoconf and properties retrieval 3631.1Smacallanpseudo-device drvctl 3641.1Smacallan 3651.1Smacallan# Veriexec 3661.1Smacallan# 3671.1Smacallan# a pseudo device needed for veriexec 3681.1Smacallan#pseudo-device veriexec 3691.1Smacallan# 3701.1Smacallan# Uncomment the fingerprint methods below that are desired. Note that 3711.1Smacallan# removing fingerprint methods will have almost no impact on the kernel 3721.1Smacallan# code size. 3731.1Smacallan# 3741.1Smacallan#options VERIFIED_EXEC_FP_RMD160 3751.1Smacallan#options VERIFIED_EXEC_FP_SHA256 3761.1Smacallan#options VERIFIED_EXEC_FP_SHA384 3771.1Smacallan#options VERIFIED_EXEC_FP_SHA512 3781.1Smacallan#options VERIFIED_EXEC_FP_SHA1 3791.1Smacallan#options VERIFIED_EXEC_FP_MD5 3801.1Smacallan 3811.1Smacallan#options PAX_MPROTECT=0 # PaX mprotect(2) restrictions 382