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 8685471971SMitchell Hornedevice nvmem 874a763910SMitchell Hornedevice phy 884a763910SMitchell Hornedevice regulator 8982524003SJessica Clarkedevice syscon 9082524003SJessica Clarkedevice syscon_power 9182524003SJessica Clarkedevice riscv_syscon 9282524003SJessica Clarke 93def7999cSMitchell Horne# CPU frequency control 94def7999cSMitchell Hornedevice cpufreq 95def7999cSMitchell Horne 967106b618SRuslan Bukin# Bus drivers 977106b618SRuslan Bukindevice pci 987106b618SRuslan Bukin 996e162bd2SJessica Clarke# Block devices 10062cb6717SRuslan Bukindevice ahci 1016e162bd2SJessica Clarkedevice scbus 1026e162bd2SJessica Clarkedevice da 1036e162bd2SJessica Clarke 1046fdc5735SRuslan Bukin# VirtIO support 1056fdc5735SRuslan Bukindevice virtio # Generic VirtIO bus (required) 1066fdc5735SRuslan Bukindevice virtio_pci # VirtIO PCI device 1076fdc5735SRuslan Bukindevice vtnet # VirtIO Ethernet device 1086fdc5735SRuslan Bukindevice virtio_blk # VirtIO Block device 1096fdc5735SRuslan Bukindevice virtio_mmio # VirtIO MMIO bus 1106fdc5735SRuslan Bukin 111f78cc42fSJessica Clarke# ATA/SCSI peripherals 112f78cc42fSJessica Clarkedevice pass # Passthrough device (direct ATA/SCSI access) 113f78cc42fSJessica Clarke 1146e162bd2SJessica Clarke# NVM Express (NVMe) support 1156e162bd2SJessica Clarkedevice nvme # base NVMe driver 1166e162bd2SJessica Clarkeoptions NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 1176e162bd2SJessica Clarkedevice nvd # expose NVMe namespaces as disks, depends on nvme 1186e162bd2SJessica Clarke 1196e162bd2SJessica Clarke# USB support 1206e162bd2SJessica Clarkeoptions USB_DEBUG # enable debug msgs 1216e162bd2SJessica Clarkedevice ohci # OHCI USB interface 1226e162bd2SJessica Clarkedevice uhci # UHCI USB interface 1236e162bd2SJessica Clarkedevice ehci # EHCI USB interface (USB 2.0) 1246e162bd2SJessica Clarkedevice xhci # XHCI USB interface (USB 3.0) 1256e162bd2SJessica Clarkedevice usb # USB Bus (required) 12613d00a43SEmmanuel Vadotdevice usbhid # USB HID Transport 12713d00a43SEmmanuel Vadotdevice hkbd # Keyboard 1286e162bd2SJessica Clarkedevice ukbd # Keyboard 1296e162bd2SJessica Clarkedevice umass # Disks/Mass storage - Requires scbus and da 1306e162bd2SJessica Clarke 1316e162bd2SJessica Clarke# HID support 1326e162bd2SJessica Clarkeoptions HID_DEBUG # enable debug msgs 1336e162bd2SJessica Clarkedevice hid # Generic HID support 13413d00a43SEmmanuel Vadotdevice hidbus # Generic HID Bus 1356e162bd2SJessica Clarke 136a0823230SRuslan Bukin# Serial (COM) ports 137a0823230SRuslan Bukindevice uart # Generic UART driver 138053ec050SRuslan Bukindevice uart_lowrisc # lowRISC UART driver 139a0823230SRuslan Bukindevice uart_ns8250 # ns8250-type UART driver 140a0823230SRuslan Bukin 1412404f03fSJessica Clarke# Console 1422404f03fSJessica Clarkedevice vt 143e2a08ac9SMitchell Hornedevice vt_efifb 1442404f03fSJessica Clarkedevice kbdmux 1452404f03fSJessica Clarke 146d63a631eSJessica Clarke# RTC 147d63a631eSJessica Clarkedevice goldfish_rtc # QEMU RTC 148fcc3a0f6SRuslan Bukin 149fcc3a0f6SRuslan Bukin# Ethernet drivers 150fcc3a0f6SRuslan Bukindevice miibus # MII bus support 151fcc3a0f6SRuslan Bukindevice xae # Xilinx AXI Ethernet MAC 152fcc3a0f6SRuslan Bukin 153fcc3a0f6SRuslan Bukin# DMA support 154fcc3a0f6SRuslan Bukindevice xdma # DMA interface 155fcc3a0f6SRuslan Bukindevice axidma # Xilinx AXI DMA Controller 156fcc3a0f6SRuslan Bukin 157b47e5c5dSJessica Clarke# GPIO 158b47e5c5dSJessica Clarkedevice gpio 15971924545SJulien Cassettedevice fdt_pinctrl 160b47e5c5dSJessica Clarke 1618c439847SJessica Clarke# SPI 1628c439847SJessica Clarkedevice spibus 1638c439847SJessica Clarkedevice spigen 164*c7ffe32bSRuslan Bukindevice xilinx_spi # Xilinx AXI SPI Controller 1658c439847SJessica Clarke 16628029b68SRuslan Bukin# Debugging support. Always need this: 167d52d6d7cSRuslan Bukinoptions KDB # Enable kernel debugger support. 168d52d6d7cSRuslan Bukinoptions KDB_TRACE # Print a stack trace for a panic. 16928029b68SRuslan Bukin# For full debugger support use (turn off in stable branch): 1704f8f9d70SLexi Winterinclude "std.debug" 171da48ddbfSMitchell Horne# options EARLY_PRINTF=sbi 17228029b68SRuslan Bukin 17396744f02SSean Bruno# Kernel dump features. 174a779fd06SMitchell Horneoptions EKCD # Support for encrypted kernel dumps 175a779fd06SMitchell Horneoptions GZIO # gzip-compressed kernel and user dumps 17696744f02SSean Brunooptions ZSTDIO # zstd-compressed kernel and user dumps 177a779fd06SMitchell Horneoptions DEBUGNET # debugnet networking 178a779fd06SMitchell Horneoptions NETDUMP # netdump(4) client support 17996744f02SSean Bruno 18028029b68SRuslan Bukin# Pseudo devices. 1818cd385fdSJohn Baldwindevice crypto # core crypto support 18228029b68SRuslan Bukindevice loop # Network loopback 18328029b68SRuslan Bukindevice ether # Ethernet support 18428029b68SRuslan Bukindevice vlan # 802.1Q VLAN support 185251a32b5SKyle Evansdevice tuntap # Packet tunnel. 18628029b68SRuslan Bukindevice md # Memory "disks" 18728029b68SRuslan Bukindevice gif # IPv6 and IPv4 tunneling 18828029b68SRuslan Bukindevice firmware # firmware assist module 18928029b68SRuslan Bukin 1904a763910SMitchell Horne# MMC/SD/SDIO Card slot support 1914a763910SMitchell Hornedevice sdhci 1924a763910SMitchell Hornedevice mmc # MMC/SD bus 1934a763910SMitchell Hornedevice mmcsd # MMC/SD flash cards 1944a763910SMitchell Horne 19522d5f354SRuslan Bukin# The `bpf' device enables the Berkeley Packet Filter. 19622d5f354SRuslan Bukin# Be aware of the administrative consequences of enabling this! 19722d5f354SRuslan Bukin# Note that 'bpf' is required for DHCP. 19822d5f354SRuslan Bukindevice bpf # Berkeley packet filter 19922d5f354SRuslan Bukin 2003994f5bcSMitchell Horne# Flattened Device Tree 20128029b68SRuslan Bukinoptions FDT 2023994f5bcSMitchell Horne 20391feb4f4SPhilip Paeps# I2C support 20491feb4f4SPhilip Paepsdevice iicbus # Bus support, required for iicoc below. 20591feb4f4SPhilip Paepsdevice iicoc # OpenCores I2C controller support 20691feb4f4SPhilip Paeps 207bd79cafeSMitchell Horne# Include SoC specific configuration 208bd79cafeSMitchell Horneinclude "std.allwinner" 2094f584512SRuslan Bukininclude "std.eswin" 210bd79cafeSMitchell Horneinclude "std.sifive" 211749e318dSMitchell Horneinclude "std.starfive" 212