Advertisement
asvc

BSD kernel config

May 1st, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.24 KB | None | 0 0
  1. #
  2. # GENERIC -- Generic kernel configuration file for FreeBSD/amd64
  3. #
  4. # For more information on this file, please read the config(5) manual page,
  5. # and/or the handbook section on Kernel Configuration Files:
  6. #
  7. #    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
  8. #
  9. # The handbook is also available locally in /usr/share/doc/handbook
  10. # if you've installed the doc distribution, otherwise always see the
  11. # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
  12. # latest information.
  13. #
  14. # An exhaustive list of options and more detailed explanations of the
  15. # device lines is also present in the ../../conf/NOTES and NOTES files.
  16. # If you are in doubt as to the purpose or necessity of a line, check first
  17. # in NOTES.
  18. #
  19. # $FreeBSD: release/10.0.0/sys/amd64/conf/GENERIC 256329 2013-10-11 19:43:37Z gjb $
  20.  
  21. cpu     HAMMER
  22. ident       MONOLITH
  23.  
  24. makeoptions DEBUG=-g        # Build kernel with gdb(1) debug symbols
  25. makeoptions WITH_CTF=1      # Run ctfconvert(1) for DTrace support
  26.  
  27. # change kernel message color to green on black
  28. # # while all other text is white on black
  29. options SC_KERNEL_CONS_ATTR=(FG_GREEN|BG_BLACK)
  30.  
  31. # enable Pf
  32. device pf
  33. device pflog
  34. device pfsync
  35. options ALTQ
  36. options ALTQ_HFSC
  37. options ALTQ_NOPCC
  38. options ALTQ_CBQ
  39. options ALTQ_RED
  40. options ALTQ_RIO
  41. options ALTQ_PRIQ
  42.  
  43. # forward packets without decrementing
  44. # # the time to live (TTL) counter
  45. # options IPSTEALTH
  46.  
  47. # IPsec (Internet Protocol Security)
  48. options IPSEC
  49. options IPSEC_NAT_T
  50.  
  51. device crypto
  52. device cryptodev
  53. # device aesni
  54.  
  55. options     SCHED_ULE       # ULE scheduler
  56. options     PREEMPTION      # Enable kernel thread preemption
  57. options     INET            # InterNETworking
  58. options     INET6           # IPv6 communications protocols
  59. options     TCP_OFFLOAD     # TCP offload
  60. options     SCTP            # Stream Control Transmission Protocol
  61. options     FFS         # Berkeley Fast Filesystem
  62. options     SOFTUPDATES     # Enable FFS soft updates support
  63. options     UFS_ACL         # Support for access control lists
  64. options     UFS_DIRHASH     # Improve performance on big directories
  65. options     UFS_GJOURNAL        # Enable gjournal-based UFS journaling
  66. options     QUOTA           # Enable disk quotas for UFS
  67. options     MD_ROOT         # MD is a potential root device
  68. options     NFSCL           # New Network Filesystem Client
  69. options     NFSD            # New Network Filesystem Server
  70. options     NFSLOCKD        # Network Lock Manager
  71. options     NFS_ROOT        # NFS usable as /, requires NFSCL
  72. options     MSDOSFS         # MSDOS Filesystem
  73. options     CD9660          # ISO 9660 Filesystem
  74. options     PROCFS          # Process filesystem (requires PSEUDOFS)
  75. options     PSEUDOFS        # Pseudo-filesystem framework
  76. options     GEOM_PART_GPT       # GUID Partition Tables.
  77. options     GEOM_RAID       # Soft RAID functionality.
  78. options     GEOM_LABEL      # Provides labelization
  79. options     COMPAT_FREEBSD32    # Compatible with i386 binaries
  80. options     COMPAT_FREEBSD4     # Compatible with FreeBSD4
  81. options     COMPAT_FREEBSD5     # Compatible with FreeBSD5
  82. options     COMPAT_FREEBSD6     # Compatible with FreeBSD6
  83. options     COMPAT_FREEBSD7     # Compatible with FreeBSD7
  84. options     SCSI_DELAY=5000     # Delay (in ms) before probing SCSI
  85. options     KTRACE          # ktrace(1) support
  86. options     STACK           # stack(9) support
  87. options     SYSVSHM         # SYSV-style shared memory
  88. options     SYSVMSG         # SYSV-style message queues
  89. options     SYSVSEM         # SYSV-style semaphores
  90. options     _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  91. options     PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
  92. options     KBD_INSTALL_CDEV    # install a CDEV entry in /dev
  93. options     HWPMC_HOOKS     # Necessary kernel hooks for hwpmc(4)
  94. options     AUDIT           # Security event auditing
  95. options     CAPABILITY_MODE     # Capsicum capability mode
  96. options     CAPABILITIES        # Capsicum capabilities
  97. options     PROCDESC        # Support for process descriptors
  98. options     MAC         # TrustedBSD MAC Framework
  99. options     KDTRACE_FRAME       # Ensure frames are compiled in
  100. options     KDTRACE_HOOKS       # Kernel DTrace hooks
  101. options     DDB_CTF         # Kernel ELF linker loads CTF data
  102. options     INCLUDE_CONFIG_FILE     # Include this file in kernel
  103.  
  104. # Debugging support.  Always need this:
  105. options     KDB         # Enable kernel debugger support.
  106. options     KDB_TRACE       # Print a stack trace for a panic.
  107.  
  108. # Make an SMP-capable kernel by default
  109. options     SMP         # Symmetric MultiProcessor Kernel
  110.  
  111. # CPU frequency control
  112. device      cpufreq
  113.  
  114. # Bus support.
  115. device      acpi
  116. device      pci
  117.  
  118. # ATA controllers
  119. device      ahci        # AHCI-compatible SATA controllers
  120. device      ata     # Legacy ATA/SATA controllers
  121. options     ATA_STATIC_ID   # Static device numbering
  122.  
  123. # SCSI Controllers
  124. device      mpt     # LSI-Logic MPT-Fusion
  125. device      mps     # LSI-Logic MPT-Fusion 2
  126. device      isci    # Intel C600 SAS controller
  127.  
  128. # ATA/SCSI peripherals
  129. device      scbus   # SCSI bus (required for ATA/SCSI)
  130. device      ch      # SCSI media changers
  131. device      da      # Direct Access (disks)
  132. device      sa      # Sequential Access (tape etc)
  133. device      cd      # CD
  134. device      pass    # Passthrough device (direct ATA/SCSI access)
  135. device      ses     # Enclosure Services (SES and SAF-TE)
  136.  
  137. # RAID controllers interfaced to the SCSI subsystem
  138. device      iir     # Intel Integrated RAID
  139. device      tws     # LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller
  140.  
  141. # RAID controllers
  142. device      mfi     # LSI MegaRAID SAS
  143.  
  144. # atkbdc0 controls both the keyboard and the PS/2 mouse
  145. device      psm     # PS/2 mouse
  146. device      kbdmux  # keyboard multiplexer
  147. device      vga     # VGA video card driver
  148. options     VESA    # Add support for VESA BIOS Extensions (VBE)
  149.  
  150. device      splash      # Splash screen and screen saver support
  151.  
  152. # syscons is the default console driver, resembling an SCO console
  153. device      sc
  154. options     SC_PIXEL_MODE   # add support for the raster text mode
  155.  
  156. device      agp     # support several AGP chipsets
  157.  
  158. # Serial (COM) ports
  159. device      uart        # Generic UART driver
  160.  
  161. # PCI Ethernet NICs.
  162. device      em      # Intel PRO/1000 Gigabit Ethernet Family
  163. device      igb     # Intel PRO/1000 PCIE Server Gigabit Family
  164. device      ixgbe   # Intel PRO/10GbE PCIE Ethernet Family
  165.  
  166. # Pseudo devices.
  167. device      loop        # Network loopback
  168. device      random      # Entropy device
  169. device      rdrand_rng  # Intel Bull Mountain RNG
  170. device      ether       # Ethernet support
  171. device      vlan        # 802.1Q VLAN support
  172. device      tun     # Packet tunnel.
  173. device      md      # Memory "disks"
  174. device      gif     # IPv6 and IPv4 tunneling
  175. device      faith       # IPv6-to-IPv4 relaying (translation)
  176. device      firmware    # firmware assist module
  177.  
  178. # The `bpf' device enables the Berkeley Packet Filter.
  179. # Be aware of the administrative consequences of enabling this!
  180. # Note that 'bpf' is required for DHCP.
  181. device      bpf     # Berkeley packet filter
  182.  
  183. # USB support
  184. options     USB_DEBUG   # enable debug msgs
  185. device      uhci        # UHCI PCI->USB interface
  186. device      ohci        # OHCI PCI->USB interface
  187. device      ehci        # EHCI PCI->USB interface (USB 2.0)
  188. device      xhci        # XHCI PCI->USB interface (USB 3.0)
  189. device      usb         # USB Bus (required)
  190. device      ukbd        # Keyboard
  191. device      umass       # Disks/Mass storage - Requires scbus and da
  192.  
  193. # VirtIO support
  194. device      virtio      # Generic VirtIO bus (required)
  195. device      virtio_pci  # VirtIO PCI device
  196. device      vtnet       # VirtIO Ethernet device
  197. device      virtio_blk  # VirtIO Block device
  198. device      virtio_scsi # VirtIO SCSI device
  199. device      virtio_balloon  # VirtIO Memory Balloon device
  200.  
  201. # Xen HVM Guest Optimizations
  202. # NOTE: XENHVM depends on xenpci.  They must be added or removed together.
  203. options     XENHVM      # Xen HVM kernel infrastructure
  204. device      xenpci      # Xen HVM Hypervisor services driver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement