2016-01-29 15:12:31 +00:00
|
|
|
#
|
|
|
|
# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
|
|
|
|
#
|
|
|
|
# For more information on this file, please read the config(5) manual page,
|
|
|
|
# and/or the handbook section on Kernel Configuration Files:
|
|
|
|
#
|
|
|
|
# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
|
|
|
|
#
|
|
|
|
# The handbook is also available locally in /usr/share/doc/handbook
|
|
|
|
# if you've installed the doc distribution, otherwise always see the
|
|
|
|
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
|
|
|
|
# latest information.
|
|
|
|
#
|
|
|
|
# An exhaustive list of options and more detailed explanations of the
|
|
|
|
# device lines is also present in the ../../conf/NOTES and NOTES files.
|
|
|
|
# If you are in doubt as to the purpose or necessity of a line, check first
|
|
|
|
# in NOTES.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
cpu RISCV
|
|
|
|
ident GENERIC
|
|
|
|
|
|
|
|
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
|
|
|
|
# makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support
|
2016-06-01 14:12:31 +00:00
|
|
|
|
|
|
|
# FIXME: linker error. "--relax and -r may not be used together"
|
rtwn(4), urtwn(4): merge common code, add support for 11ac devices.
All devices:
- add support for rate adaptation via ieee80211_amrr(9);
- use short preamble for transmitted frames when needed;
- multi-bss support:
* for RTL8821AU: 2 VAPs at the same time;
* other: 1 any VAP + 1 sta VAP.
RTL8188CE:
- fix IQ calibration bug (reason of significant speed degradation);
- add h/w crypto acceleration support.
USB:
- A-MPDU Tx support;
- short GI support;
Other:
- add support for RTL8812AU / RTL8821AU chipsets
(a/b/g/n only; no ac yet);
- split merged code into subparts:
* bus glue (usb/*, pci/*, rtl*/usb/*, rtl*/pci/*)
* common (if_rtwn*)
* chip-specific (rtl*/*)
- various other bugfixes.
Due to code reorganization, module names / requirements were changed too:
urtwn urtwnfw -> rtwn rtwn_usb rtwnfw
rtwn rtwnfw -> rtwn rtwn_pci rtwnfw
Tested with RTL8188CE, RTL8188CUS, RTL8188EU and RTL8821AU.
Tested by: kevlo, garga,
Peter Garshtja <peter.garshtja@ambient-md.com>,
Kevin McAleavey <kevin.mcaleavey@knosproject.com>,
Ilias-Dimitrios Vrachnis <id@vrachnis.com>,
<otacilio.neto@bsd.com.br>
Relnotes: yes
2016-10-17 20:38:24 +00:00
|
|
|
makeoptions WITHOUT_MODULES="usb otusfw mwlfw ispfw mwlfw ralfw rtwnfw"
|
2016-08-02 14:50:14 +00:00
|
|
|
# makeoptions NO_MODULES
|
2016-01-29 15:12:31 +00:00
|
|
|
|
|
|
|
options SCHED_ULE # ULE scheduler
|
|
|
|
options PREEMPTION # Enable kernel thread preemption
|
|
|
|
options INET # InterNETworking
|
|
|
|
options INET6 # IPv6 communications protocols
|
In the TCP stack, the hhook(9) framework provides hooks for kernel modules
to add actions that run when a TCP frame is sent or received on a TCP
session in the ESTABLISHED state. In the base tree, this functionality is
only used for the h_ertt module, which is used by the cc_cdg, cc_chd, cc_hd,
and cc_vegas congestion control modules.
Presently, we incur overhead to check for hooks each time a TCP frame is
sent or received on an ESTABLISHED TCP session.
This change adds a new compile-time option (TCP_HHOOK) to determine whether
to include the hhook(9) framework for TCP. To retain backwards
compatibility, I added the TCP_HHOOK option to every configuration file that
already defined "options INET". (Therefore, this patch introduces no
functional change. In order to see a functional difference, you need to
compile a custom kernel without the TCP_HHOOK option.) This change will
allow users to easily exclude this functionality from their kernel, should
they wish to do so.
Note that any users who use a custom kernel configuration and use one of the
congestion control modules listed above will need to add the TCP_HHOOK
option to their kernel configuration.
Reviewed by: rrs, lstewart, hiren (previous version), sjg (makefiles only)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D8185
2016-10-12 02:16:42 +00:00
|
|
|
options TCP_HHOOK # hhook(9) framework for TCP
|
2016-01-29 15:12:31 +00:00
|
|
|
options IPSEC # IP (v4/v6) security
|
|
|
|
options TCP_OFFLOAD # TCP offload
|
|
|
|
options SCTP # Stream Control Transmission Protocol
|
|
|
|
options FFS # Berkeley Fast Filesystem
|
|
|
|
options SOFTUPDATES # Enable FFS soft updates support
|
|
|
|
options UFS_ACL # Support for access control lists
|
|
|
|
options UFS_DIRHASH # Improve performance on big directories
|
|
|
|
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
|
|
|
|
options QUOTA # Enable disk quotas for UFS
|
|
|
|
options NFSCL # Network Filesystem Client
|
|
|
|
options NFSD # Network Filesystem Server
|
|
|
|
options NFSLOCKD # Network Lock Manager
|
|
|
|
options NFS_ROOT # NFS usable as /, requires NFSCL
|
|
|
|
options MSDOSFS # MSDOS Filesystem
|
|
|
|
options CD9660 # ISO 9660 Filesystem
|
|
|
|
options PROCFS # Process filesystem (requires PSEUDOFS)
|
|
|
|
options PSEUDOFS # Pseudo-filesystem framework
|
|
|
|
options GEOM_PART_GPT # GUID Partition Tables.
|
|
|
|
# options GEOM_RAID # Soft RAID functionality.
|
|
|
|
options GEOM_LABEL # Provides labelization
|
|
|
|
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
|
|
|
|
options KTRACE # ktrace(1) support
|
|
|
|
# options STACK # stack(9) support
|
|
|
|
options SYSVSHM # SYSV-style shared memory
|
|
|
|
options SYSVMSG # SYSV-style message queues
|
|
|
|
options SYSVSEM # SYSV-style semaphores
|
|
|
|
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
|
|
|
|
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
|
|
|
|
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
|
|
|
|
# options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
|
|
|
|
options AUDIT # Security event auditing
|
|
|
|
options CAPABILITY_MODE # Capsicum capability mode
|
|
|
|
options CAPABILITIES # Capsicum capabilities
|
|
|
|
options MAC # TrustedBSD MAC Framework
|
2016-06-01 12:19:00 +00:00
|
|
|
options KDTRACE_FRAME # Ensure frames are compiled in
|
|
|
|
options KDTRACE_HOOKS # Kernel DTrace hooks
|
2016-11-16 15:21:32 +00:00
|
|
|
options FPE # Floating-point extension support
|
2016-01-29 15:12:31 +00:00
|
|
|
options RACCT # Resource accounting framework
|
|
|
|
options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
|
|
|
|
options RCTL # Resource limits
|
2016-02-24 16:50:34 +00:00
|
|
|
options SMP
|
|
|
|
|
|
|
|
# Uncomment for memory disk
|
|
|
|
# options MD_ROOT
|
2016-08-10 12:41:36 +00:00
|
|
|
# options MD_ROOT_SIZE=32768 # 32MB ram disk
|
2016-02-24 16:50:34 +00:00
|
|
|
# makeoptions MFS_IMAGE=/path/to/img
|
|
|
|
# options ROOTDEVNAME=\"ufs:/dev/md0\"
|
2016-01-29 15:12:31 +00:00
|
|
|
|
|
|
|
# Debugging support. Always need this:
|
2016-03-10 15:51:43 +00:00
|
|
|
options KDB # Enable kernel debugger support.
|
|
|
|
options KDB_TRACE # Print a stack trace for a panic.
|
2016-01-29 15:12:31 +00:00
|
|
|
# For full debugger support use (turn off in stable branch):
|
2016-03-10 15:51:43 +00:00
|
|
|
options DDB # Support DDB.
|
2016-01-29 15:12:31 +00:00
|
|
|
# options GDB # Support remote GDB.
|
|
|
|
options DEADLKRES # Enable the deadlock resolver
|
|
|
|
options INVARIANTS # Enable calls of extra sanity checking
|
|
|
|
options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
|
|
|
|
# options WITNESS # Enable checks to detect deadlocks and cycles
|
|
|
|
# options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
|
|
|
|
options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
|
|
|
|
# options EARLY_PRINTF
|
2016-08-02 14:50:14 +00:00
|
|
|
# options VERBOSE_SYSINIT
|
2016-01-29 15:12:31 +00:00
|
|
|
|
|
|
|
# Pseudo devices.
|
|
|
|
device loop # Network loopback
|
|
|
|
device random # Entropy device
|
|
|
|
device ether # Ethernet support
|
|
|
|
device vlan # 802.1Q VLAN support
|
|
|
|
device tun # Packet tunnel.
|
|
|
|
device md # Memory "disks"
|
|
|
|
device gif # IPv6 and IPv4 tunneling
|
|
|
|
device firmware # firmware assist module
|
|
|
|
|
2016-06-01 12:19:00 +00:00
|
|
|
# The `bpf' device enables the Berkeley Packet Filter.
|
|
|
|
# Be aware of the administrative consequences of enabling this!
|
|
|
|
# Note that 'bpf' is required for DHCP.
|
|
|
|
device bpf # Berkeley packet filter
|
|
|
|
|
2016-01-29 15:12:31 +00:00
|
|
|
options FDT
|