Skip to content

Instantly share code, notes, and snippets.

@lhmwzy
Created January 18, 2016 12:38
Show Gist options
  • Select an option

  • Save lhmwzy/46bf22e9086bc42c1e75 to your computer and use it in GitHub Desktop.

Select an option

Save lhmwzy/46bf22e9086bc42c1e75 to your computer and use it in GitHub Desktop.

Revisions

  1. lhmwzy created this gist Jan 18, 2016.
    179 changes: 179 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,179 @@
    machine_arch x86_64
    cpu HAMMER_CPU
    ident fuhai
    maxusers 0
    #options CPU_DISABLE_AVX

    #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols

    options INET #InterNETworking
    #options INET6 #IPv6 communications protocols
    options HAMMER #Hammer Filesystem
    options NULLFS #NULL filesystem
    options FFS #Berkeley Fast Filesystem
    options FFS_ROOT #FFS usable as root device [keep this!]
    options SOFTUPDATES #Enable FFS soft updates support
    options UFS_DIRHASH #Improve performance on big directories
    options MFS #Memory Filesystem
    options TMPFS #Temporary Filesystem
    options MD_ROOT #MD is a potential root device
    options NFS #Network Filesystem
    options NFS_ROOT #NFS usable as root device, NFS required
    #options MSDOSFS #MSDOS Filesystem
    #options CD9660 #ISO 9660 Filesystem
    options PROCFS #Process filesystem
    #options COMPAT_43 #Compatible with BSD 4.3
    options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
    options IFPOLL_ENABLE # Support mixed interrupt-polling
    # handling of network device drivers
    options UCONSOLE #Allow users to grab the console
    options KTRACE #ktrace(1) support
    options P1003_1B #Posix P1003_1B real-time extensions
    options _KPOSIX_PRIORITY_SCHEDULING
    options ICMP_BANDLIM #Rate limit bad replies
    options KBD_INSTALL_CDEV # install a CDEV entry in /dev
    #options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
    # output. Adds ~128k to driver.
    #options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
    # output. Adds ~215k to driver.
    options DSCHED_FQ # Fair-queuing disk scheduler

    # ALTQ
    #options ALTQ #alternate queueing
    #options ALTQ_CBQ #class based queueing
    #options ALTQ_RED #random early detection
    #options ALTQ_RIO #triple red for diffserv (needs RED)
    #options ALTQ_HFSC #hierarchical fair service curve
    #options ALTQ_PRIQ #priority queue
    #options ALTQ_FAIRQ #fair queueing
    #options ALTQ_NOPCC #don't use processor cycle counter
    #options ALTQ_DEBUG #for debugging

    # Debugging for Development
    #options DDB
    #options DDB_TRACE
    #options INVARIANTS

    device isa
    device pci

    # AHCI driver, this will override NATA for AHCI devices,
    # both drivers may be included.
    #
    device ahci


    # NEW-ATA (NATA) and ATAPI devices
    #
    device nata
    device natadisk # ATA disk drives
    #device natapicd # ATAPI CDROM drives
    #device natapifd # ATAPI floppy drives
    #device natapist # ATAPI tape drives
    #device natapicam # Emulate ATAPI devices as SCSI
    #device nataraid # support for ATA software RAID
    # controllers
    options ATA_STATIC_ID # Static device numbering

    # SCSI Controllers
    device ahc # AHA2940 and onboard AIC7xxx devices

    # SCSI peripherals
    device scbus # SCSI bus (required)
    device da # Direct Access (disks)
    device pass # Passthrough device (direct SCSI access)

    # VirtIO support
    #device virtio # VirtIO core
    #device virtio_blk # VirtIO disk driver
    #device vtnet # VirtIO network driver
    #device virtio_pci # VirtIO transport over PCI bus

    # atkbdc0 controls both the keyboard and the PS/2 mouse
    device atkbdc0 at isa? port IO_KBD
    device atkbd0 at atkbdc? irq 1
    device psm0 at atkbdc? irq 12

    device vga0 at isa?

    # kbdmux is the keyboard multiplexer
    device kbdmux

    # splash screen/screen saver
    pseudo-device splash

    # syscons is the default console driver, resembling an SCO console
    device sc0 at isa? flags 0x100
    options SC_PIXEL_MODE # add support for the raster text mode

    device agp # support several AGP chipsets

    # Intel performance-energy bias
    device perfbias
    # Intel software controlled clock modulation
    device clockmod

    # HW monitoring devices
    #device aps0 at isa? port 0x1600
    device lm0 at isa? port 0x290
    device it0 at isa? port 0x290
    device it1 at isa? port 0xc00
    device it2 at isa? port 0xd00
    device it3 at isa? port 0x228
    device wbsio0 at isa? port 0x2e
    device wbsio1 at isa? port 0x4e
    device lm#3 at wbsio?
    # Intel Core and newer CPUs on-die digital thermal sensor support
    device coretemp


    # PCI Ethernet NICs.

    # PCI Ethernet NICs that use the common MII bus controller code.
    # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
    device miibus # MII bus support
    device bfe # Broadcom BCM440x 10/100 Ethernet
    device fxp # Intel EtherExpress PRO/100B (82557, 82558)
    device rl # RealTek 8129/8139
    device re # RealTek 8139C+/8169

    # Pseudo devices - the number indicates how many units to allocate.
    pseudo-device loop # Network loopback
    pseudo-device ether # Ethernet support
    #pseudo-device sl 1 # Kernel SLIP
    #pseudo-device ppp 1 # Kernel PPP
    pseudo-device tun # Packet tunnel.
    pseudo-device pty # Pseudo-ttys (telnet etc)
    pseudo-device md # Memory "disks"
    pseudo-device vn # File image "disks"
    #pseudo-device gif # IPv6 and IPv4 tunneling
    #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
    pseudo-device lagg

    # CARP support
    options CARP
    pseudo-device carp

    # The `bpf' pseudo-device enables the Berkeley Packet Filter.
    # Be aware of the administrative consequences of enabling this!
    pseudo-device bpf #Berkeley packet filter

    pseudo-device crypto # core crypto support, used by wlan

    # USB support
    #
    # NOTE: If you enable 'oldusb' you must also disable 'usb' and rebuild
    # the world with WANT_OLDUSB=true in /etc/make.conf, in addition
    # to rebuilding the kernel.
    #

    device usb # USB Bus (required)
    device uhci
    device ohci
    device uhid
    device ukbd # Keyboard

    # FireWire support
    device firewire # FireWire bus code
    device sbp # SCSI over FireWire (Requires scbus and da)
    device fwe # Ethernet over FireWire (non-standard!)