1# 2# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V 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# https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config 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 (https://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 20cpu RISCV 21ident GENERIC 22 23makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 24makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support 25 26options SCHED_ULE # ULE scheduler 27options PREEMPTION # Enable kernel thread preemption 28options VIMAGE # Subsystem virtualization, e.g. VNET 29options INET # InterNETworking 30options INET6 # IPv6 communications protocols 31options TCP_HHOOK # hhook(9) framework for TCP 32options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 33options FIB_ALGO # Modular fib lookups 34options TCP_OFFLOAD # TCP offload 35options TCP_BLACKBOX # Enhanced TCP event logging 36options TCP_RFC7413 # TCP Fast Open 37options SCTP_SUPPORT # Allow kldload of SCTP 38options KERN_TLS # TLS transmit & receive offload 39options FFS # Berkeley Fast Filesystem 40options SOFTUPDATES # Enable FFS soft updates support 41options UFS_ACL # Support for access control lists 42options UFS_DIRHASH # Improve performance on big directories 43options UFS_GJOURNAL # Enable gjournal-based UFS journaling 44options QUOTA # Enable disk quotas for UFS 45options NFSCL # Network Filesystem Client 46options NFSD # Network Filesystem Server 47options NFSLOCKD # Network Lock Manager 48options NFS_ROOT # NFS usable as /, requires NFSCL 49options MSDOSFS # MSDOS Filesystem 50options CD9660 # ISO 9660 Filesystem 51options PROCFS # Process filesystem (requires PSEUDOFS) 52options PSEUDOFS # Pseudo-filesystem framework 53options TMPFS # Efficient memory filesystem 54options GEOM_RAID # Soft RAID functionality. 55options GEOM_LABEL # Provides labelization 56options COMPAT_FREEBSD12 # Compatible with FreeBSD12 57options COMPAT_FREEBSD13 # Compatible with FreeBSD13 58options COMPAT_FREEBSD14 # Compatible with FreeBSD14 59options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 60options KTRACE # ktrace(1) support 61options STACK # stack(9) support 62options SYSVSHM # SYSV-style shared memory 63options SYSVMSG # SYSV-style message queues 64options SYSVSEM # SYSV-style semaphores 65options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions 66options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 67options KBD_INSTALL_CDEV # install a CDEV entry in /dev 68# options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) 69options AUDIT # Security event auditing 70options CAPABILITY_MODE # Capsicum capability mode 71options CAPABILITIES # Capsicum capabilities 72options MAC # TrustedBSD MAC Framework 73options KDTRACE_FRAME # Ensure frames are compiled in 74options KDTRACE_HOOKS # Kernel DTrace hooks 75options DDB_CTF # Kernel ELF linker loads CTF data 76options RACCT # Resource accounting framework 77options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 78options RCTL # Resource limits 79options SMP 80options IOMMU 81 82# RISC-V SBI console 83device rcons 84 85# pseudo devices 86device clk 87device hwreset 88device nvmem 89device phy 90device regulator 91device syscon 92device syscon_power 93device riscv_syscon 94 95# CPU frequency control 96device cpufreq 97 98# Bus drivers 99device pci 100device xlnx_pcib # Xilinx PCIe Controller 101 102# Block devices 103device ahci 104device scbus 105device da 106 107# VirtIO support 108device virtio # Generic VirtIO bus (required) 109device virtio_pci # VirtIO PCI device 110device vtnet # VirtIO Ethernet device 111device virtio_blk # VirtIO Block device 112device virtio_mmio # VirtIO MMIO bus 113 114# ATA/SCSI peripherals 115device pass # Passthrough device (direct ATA/SCSI access) 116 117# NVM Express (NVMe) support 118device nvme # base NVMe driver 119options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 120device nvd # expose NVMe namespaces as disks, depends on nvme 121 122# USB support 123options USB_DEBUG # enable debug msgs 124device ohci # OHCI USB interface 125device uhci # UHCI USB interface 126device ehci # EHCI USB interface (USB 2.0) 127device xhci # XHCI USB interface (USB 3.0) 128device usb # USB Bus (required) 129device usbhid # USB HID Transport 130device hkbd # Keyboard 131device ukbd # Keyboard 132device umass # Disks/Mass storage - Requires scbus and da 133 134# HID support 135options HID_DEBUG # enable debug msgs 136device hid # Generic HID support 137device hidbus # Generic HID Bus 138 139# Serial (COM) ports 140device uart # Generic UART driver 141device uart_lowrisc # lowRISC UART driver 142device uart_ns8250 # ns8250-type UART driver 143 144# Console 145device vt 146device vt_efifb 147device kbdmux 148 149# RTC 150device goldfish_rtc # QEMU RTC 151 152# Ethernet drivers 153device miibus # MII bus support 154device xae # Xilinx AXI Ethernet MAC 155 156# DMA support 157device xdma # DMA interface 158device axidma # Xilinx AXI DMA Controller 159 160# GPIO 161device gpio 162device fdt_pinctrl 163 164# SPI 165device spibus 166device spigen 167device xilinx_spi # Xilinx AXI SPI Controller 168 169# Debugging support. Always need this: 170options KDB # Enable kernel debugger support. 171options KDB_TRACE # Print a stack trace for a panic. 172# For full debugger support use (turn off in stable branch): 173include "std.debug" 174# options EARLY_PRINTF=sbi 175 176# Compression support 177options GZIO # gzip (dumps) 178options ZSTDIO # zstd (dumps, tarfs, uzip, zfs) 179 180# Kernel dump features. 181options EKCD # Support for encrypted kernel dumps 182options DEBUGNET # debugnet networking 183options NETDUMP # netdump(4) client support 184 185# Pseudo devices. 186device crypto # core crypto support 187device loop # Network loopback 188device ether # Ethernet support 189device vlan # 802.1Q VLAN support 190device tuntap # Packet tunnel. 191device md # Memory "disks" 192device gif # IPv6 and IPv4 tunneling 193device firmware # firmware assist module 194 195# MMC/SD/SDIO Card slot support 196device sdhci 197device mmc # MMC/SD bus 198device mmcsd # MMC/SD flash cards 199 200# The `bpf' device enables the Berkeley Packet Filter. 201# Be aware of the administrative consequences of enabling this! 202# Note that 'bpf' is required for DHCP. 203device bpf # Berkeley packet filter 204 205# random(4) 206options RANDOM_ENABLE_KBD 207options RANDOM_ENABLE_MOUSE 208 209# Flattened Device Tree 210options FDT 211 212# I2C support 213device iicbus # Bus support, required for iicoc below. 214device iicoc # OpenCores I2C controller support 215 216# random(4) 217device tpm # Trusted Platform Module 218options RANDOM_ENABLE_TPM # enable entropy from TPM 2.0 219 220# Include SoC specific configuration 221include "std.allwinner" 222include "std.cvitek" 223include "std.eswin" 224include "std.sifive" 225include "std.starfive" 226