128029b68SRuslan Bukin# 228029b68SRuslan Bukin# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V 328029b68SRuslan Bukin# 428029b68SRuslan Bukin# For more information on this file, please read the config(5) manual page, 528029b68SRuslan Bukin# and/or the handbook section on Kernel Configuration Files: 628029b68SRuslan Bukin# 7c1a14887SCeri Davies# https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config 828029b68SRuslan Bukin# 928029b68SRuslan Bukin# The handbook is also available locally in /usr/share/doc/handbook 1028029b68SRuslan Bukin# if you've installed the doc distribution, otherwise always see the 11a2aef24aSEitan Adler# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the 1228029b68SRuslan Bukin# latest information. 1328029b68SRuslan Bukin# 1428029b68SRuslan Bukin# An exhaustive list of options and more detailed explanations of the 1528029b68SRuslan Bukin# device lines is also present in the ../../conf/NOTES and NOTES files. 1628029b68SRuslan Bukin# If you are in doubt as to the purpose or necessity of a line, check first 1728029b68SRuslan Bukin# in NOTES. 1828029b68SRuslan Bukin# 1928029b68SRuslan Bukin 2028029b68SRuslan Bukincpu RISCV 2128029b68SRuslan Bukinident GENERIC 2228029b68SRuslan Bukin 2328029b68SRuslan Bukinmakeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 24c04c594dSMitchell Hornemakeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support 2528029b68SRuslan Bukin 2628029b68SRuslan Bukinoptions SCHED_ULE # ULE scheduler 2728029b68SRuslan Bukinoptions PREEMPTION # Enable kernel thread preemption 28bd528a39SRuslan Bukinoptions VIMAGE # Subsystem virtualization, e.g. VNET 2928029b68SRuslan Bukinoptions INET # InterNETworking 3028029b68SRuslan Bukinoptions INET6 # IPv6 communications protocols 31bd79708dSJonathan T. Looneyoptions TCP_HHOOK # hhook(9) framework for TCP 323b65550eSJosh Paetzeloptions IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 33d5fe384bSAlexander V. Chernikovoptions ROUTE_MPATH # Multipath routing support 3428029b68SRuslan Bukinoptions TCP_OFFLOAD # TCP offload 35ad20efddSMichael Tuexenoptions TCP_BLACKBOX # Enhanced TCP event logging 36ad20efddSMichael Tuexenoptions TCP_RFC7413 # TCP Fast Open 37e64080e7SMark Johnstonoptions SCTP_SUPPORT # Allow kldload of SCTP 3828029b68SRuslan Bukinoptions FFS # Berkeley Fast Filesystem 3928029b68SRuslan Bukinoptions SOFTUPDATES # Enable FFS soft updates support 4028029b68SRuslan Bukinoptions UFS_ACL # Support for access control lists 4128029b68SRuslan Bukinoptions UFS_DIRHASH # Improve performance on big directories 4228029b68SRuslan Bukinoptions UFS_GJOURNAL # Enable gjournal-based UFS journaling 4328029b68SRuslan Bukinoptions QUOTA # Enable disk quotas for UFS 4428029b68SRuslan Bukinoptions NFSCL # Network Filesystem Client 4528029b68SRuslan Bukinoptions NFSD # Network Filesystem Server 4628029b68SRuslan Bukinoptions NFSLOCKD # Network Lock Manager 4728029b68SRuslan Bukinoptions NFS_ROOT # NFS usable as /, requires NFSCL 4828029b68SRuslan Bukinoptions MSDOSFS # MSDOS Filesystem 4928029b68SRuslan Bukinoptions CD9660 # ISO 9660 Filesystem 5028029b68SRuslan Bukinoptions PROCFS # Process filesystem (requires PSEUDOFS) 5128029b68SRuslan Bukinoptions PSEUDOFS # Pseudo-filesystem framework 52b798ef64SAlex Richardsonoptions TMPFS # Efficient memory filesystem 53c04c594dSMitchell Horneoptions GEOM_RAID # Soft RAID functionality. 5428029b68SRuslan Bukinoptions GEOM_LABEL # Provides labelization 5523e1961eSKristof Provostoptions COMPAT_FREEBSD12 # Compatible with FreeBSD12 564e85b648SKristof Provostoptions COMPAT_FREEBSD13 # Compatible with FreeBSD13 5784d12f88SKristof Provostoptions COMPAT_FREEBSD14 # Compatible with FreeBSD14 5828029b68SRuslan Bukinoptions SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 5928029b68SRuslan Bukinoptions KTRACE # ktrace(1) support 60c04c594dSMitchell Horneoptions STACK # stack(9) support 6128029b68SRuslan Bukinoptions SYSVSHM # SYSV-style shared memory 6228029b68SRuslan Bukinoptions SYSVMSG # SYSV-style message queues 6328029b68SRuslan Bukinoptions SYSVSEM # SYSV-style semaphores 6428029b68SRuslan Bukinoptions _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions 6528029b68SRuslan Bukinoptions PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 6628029b68SRuslan Bukinoptions KBD_INSTALL_CDEV # install a CDEV entry in /dev 6728029b68SRuslan Bukin# options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) 6828029b68SRuslan Bukinoptions AUDIT # Security event auditing 6928029b68SRuslan Bukinoptions CAPABILITY_MODE # Capsicum capability mode 7028029b68SRuslan Bukinoptions CAPABILITIES # Capsicum capabilities 7128029b68SRuslan Bukinoptions MAC # TrustedBSD MAC Framework 7222d5f354SRuslan Bukinoptions KDTRACE_FRAME # Ensure frames are compiled in 7322d5f354SRuslan Bukinoptions KDTRACE_HOOKS # Kernel DTrace hooks 74c085d2eaSAndrew Turneroptions DDB_CTF # Kernel ELF linker loads CTF data 7528029b68SRuslan Bukinoptions RACCT # Resource accounting framework 7628029b68SRuslan Bukinoptions RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 7728029b68SRuslan Bukinoptions RCTL # Resource limits 7817696c12SRuslan Bukinoptions SMP 7917696c12SRuslan Bukin 80af19cc59SRuslan Bukin# RISC-V SBI console 81af19cc59SRuslan Bukindevice rcons 82af19cc59SRuslan Bukin 83092a42a6SEmmanuel Vadot# pseudo devices 8482524003SJessica Clarkedevice clk 858e7e0690SJessica Clarkedevice hwreset 86*4a763910SMitchell Hornedevice phy 87*4a763910SMitchell Hornedevice regulator 8882524003SJessica Clarkedevice syscon 8982524003SJessica Clarkedevice syscon_power 9082524003SJessica Clarkedevice riscv_syscon 9182524003SJessica Clarke 927106b618SRuslan Bukin# Bus drivers 937106b618SRuslan Bukindevice pci 947106b618SRuslan Bukin 956e162bd2SJessica Clarke# Block devices 966e162bd2SJessica Clarkedevice scbus 976e162bd2SJessica Clarkedevice da 986e162bd2SJessica Clarke 996fdc5735SRuslan Bukin# VirtIO support 1006fdc5735SRuslan Bukindevice virtio # Generic VirtIO bus (required) 1016fdc5735SRuslan Bukindevice virtio_pci # VirtIO PCI device 1026fdc5735SRuslan Bukindevice vtnet # VirtIO Ethernet device 1036fdc5735SRuslan Bukindevice virtio_blk # VirtIO Block device 1046fdc5735SRuslan Bukindevice virtio_mmio # VirtIO MMIO bus 1056fdc5735SRuslan Bukin 106f78cc42fSJessica Clarke# ATA/SCSI peripherals 107f78cc42fSJessica Clarkedevice pass # Passthrough device (direct ATA/SCSI access) 108f78cc42fSJessica Clarke 1096e162bd2SJessica Clarke# NVM Express (NVMe) support 1106e162bd2SJessica Clarkedevice nvme # base NVMe driver 1116e162bd2SJessica Clarkeoptions NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 1126e162bd2SJessica Clarkedevice nvd # expose NVMe namespaces as disks, depends on nvme 1136e162bd2SJessica Clarke 1146e162bd2SJessica Clarke# USB support 1156e162bd2SJessica Clarkeoptions USB_DEBUG # enable debug msgs 1166e162bd2SJessica Clarkedevice ohci # OHCI USB interface 1176e162bd2SJessica Clarkedevice uhci # UHCI USB interface 1186e162bd2SJessica Clarkedevice ehci # EHCI USB interface (USB 2.0) 1196e162bd2SJessica Clarkedevice xhci # XHCI USB interface (USB 3.0) 1206e162bd2SJessica Clarkedevice usb # USB Bus (required) 1216e162bd2SJessica Clarkedevice ukbd # Keyboard 1226e162bd2SJessica Clarkedevice umass # Disks/Mass storage - Requires scbus and da 1236e162bd2SJessica Clarke 1246e162bd2SJessica Clarke# HID support 1256e162bd2SJessica Clarkeoptions HID_DEBUG # enable debug msgs 1266e162bd2SJessica Clarkedevice hid # Generic HID support 1276e162bd2SJessica Clarke 128a0823230SRuslan Bukin# Serial (COM) ports 129a0823230SRuslan Bukindevice uart # Generic UART driver 130053ec050SRuslan Bukindevice uart_lowrisc # lowRISC UART driver 131a0823230SRuslan Bukindevice uart_ns8250 # ns8250-type UART driver 132a0823230SRuslan Bukin 1332404f03fSJessica Clarke# Console 1342404f03fSJessica Clarkedevice vt 1352404f03fSJessica Clarkedevice kbdmux 1362404f03fSJessica Clarke 137d63a631eSJessica Clarke# RTC 138d63a631eSJessica Clarkedevice goldfish_rtc # QEMU RTC 139fcc3a0f6SRuslan Bukin 140fcc3a0f6SRuslan Bukin# Ethernet drivers 141fcc3a0f6SRuslan Bukindevice miibus # MII bus support 142fcc3a0f6SRuslan Bukindevice xae # Xilinx AXI Ethernet MAC 143fcc3a0f6SRuslan Bukin 144fcc3a0f6SRuslan Bukin# DMA support 145fcc3a0f6SRuslan Bukindevice xdma # DMA interface 146fcc3a0f6SRuslan Bukindevice axidma # Xilinx AXI DMA Controller 147fcc3a0f6SRuslan Bukin 148b47e5c5dSJessica Clarke# GPIO 149b47e5c5dSJessica Clarkedevice gpio 150b47e5c5dSJessica Clarke 1518c439847SJessica Clarke# SPI 1528c439847SJessica Clarkedevice spibus 1538c439847SJessica Clarkedevice spigen 1548c439847SJessica Clarke 15528029b68SRuslan Bukin# Debugging support. Always need this: 156d52d6d7cSRuslan Bukinoptions KDB # Enable kernel debugger support. 157d52d6d7cSRuslan Bukinoptions KDB_TRACE # Print a stack trace for a panic. 15828029b68SRuslan Bukin# For full debugger support use (turn off in stable branch): 159d52d6d7cSRuslan Bukinoptions DDB # Support DDB. 160d72e9448SMitchell Horneoptions GDB # Support remote GDB. 16128029b68SRuslan Bukinoptions DEADLKRES # Enable the deadlock resolver 16228029b68SRuslan Bukinoptions INVARIANTS # Enable calls of extra sanity checking 16328029b68SRuslan Bukinoptions INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 164fb50c414SMark Johnstonoptions WITNESS # Enable checks to detect deadlocks and cycles 16539585a4cSJohn Baldwinoptions WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 16628029b68SRuslan Bukinoptions MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 167e6ee2b65SMitchell Horneoptions ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence 16828029b68SRuslan Bukin# options EARLY_PRINTF 169be352d20SKyle Evansoptions VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default 17028029b68SRuslan Bukin 17196744f02SSean Bruno# Kernel dump features. 172a779fd06SMitchell Horneoptions EKCD # Support for encrypted kernel dumps 173a779fd06SMitchell Horneoptions GZIO # gzip-compressed kernel and user dumps 17496744f02SSean Brunooptions ZSTDIO # zstd-compressed kernel and user dumps 175a779fd06SMitchell Horneoptions DEBUGNET # debugnet networking 176a779fd06SMitchell Horneoptions NETDUMP # netdump(4) client support 17796744f02SSean Bruno 17828029b68SRuslan Bukin# Pseudo devices. 1798cd385fdSJohn Baldwindevice crypto # core crypto support 18028029b68SRuslan Bukindevice loop # Network loopback 18128029b68SRuslan Bukindevice ether # Ethernet support 18228029b68SRuslan Bukindevice vlan # 802.1Q VLAN support 183251a32b5SKyle Evansdevice tuntap # Packet tunnel. 18428029b68SRuslan Bukindevice md # Memory "disks" 18528029b68SRuslan Bukindevice gif # IPv6 and IPv4 tunneling 18628029b68SRuslan Bukindevice firmware # firmware assist module 18728029b68SRuslan Bukin 188*4a763910SMitchell Horne# MMC/SD/SDIO Card slot support 189*4a763910SMitchell Hornedevice sdhci 190*4a763910SMitchell Hornedevice mmc # MMC/SD bus 191*4a763910SMitchell Hornedevice mmcsd # MMC/SD flash cards 192*4a763910SMitchell Horne 19322d5f354SRuslan Bukin# The `bpf' device enables the Berkeley Packet Filter. 19422d5f354SRuslan Bukin# Be aware of the administrative consequences of enabling this! 19522d5f354SRuslan Bukin# Note that 'bpf' is required for DHCP. 19622d5f354SRuslan Bukindevice bpf # Berkeley packet filter 19722d5f354SRuslan Bukin 1983994f5bcSMitchell Horne# Flattened Device Tree 19928029b68SRuslan Bukinoptions FDT 2003994f5bcSMitchell Horne 20191feb4f4SPhilip Paeps# I2C support 20291feb4f4SPhilip Paepsdevice iicbus # Bus support, required for iicoc below. 20391feb4f4SPhilip Paepsdevice iicoc # OpenCores I2C controller support 20491feb4f4SPhilip Paeps 205bd79cafeSMitchell Horne# Include SoC specific configuration 206bd79cafeSMitchell Horneinclude "std.allwinner" 207bd79cafeSMitchell Horneinclude "std.sifive" 208