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