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 ROUTE_MPATH # Multipath routing support 34options FIB_ALGO # Modular fib lookups 35options TCP_OFFLOAD # TCP offload 36options TCP_BLACKBOX # Enhanced TCP event logging 37options TCP_RFC7413 # TCP Fast Open 38options SCTP_SUPPORT # Allow kldload of SCTP 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 80 81# RISC-V SBI console 82device rcons 83 84# pseudo devices 85device clk 86device hwreset 87device nvmem 88device phy 89device regulator 90device syscon 91device syscon_power 92device riscv_syscon 93 94# CPU frequency control 95device cpufreq 96 97# Bus drivers 98device pci 99device xlnx_pcib # Xilinx PCIe Controller 100 101# Block devices 102device ahci 103device scbus 104device da 105 106# VirtIO support 107device virtio # Generic VirtIO bus (required) 108device virtio_pci # VirtIO PCI device 109device vtnet # VirtIO Ethernet device 110device virtio_blk # VirtIO Block device 111device virtio_mmio # VirtIO MMIO bus 112 113# ATA/SCSI peripherals 114device pass # Passthrough device (direct ATA/SCSI access) 115 116# NVM Express (NVMe) support 117device nvme # base NVMe driver 118options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 119device nvd # expose NVMe namespaces as disks, depends on nvme 120 121# USB support 122options USB_DEBUG # enable debug msgs 123device ohci # OHCI USB interface 124device uhci # UHCI USB interface 125device ehci # EHCI USB interface (USB 2.0) 126device xhci # XHCI USB interface (USB 3.0) 127device usb # USB Bus (required) 128device usbhid # USB HID Transport 129device hkbd # Keyboard 130device ukbd # Keyboard 131device umass # Disks/Mass storage - Requires scbus and da 132 133# HID support 134options HID_DEBUG # enable debug msgs 135device hid # Generic HID support 136device hidbus # Generic HID Bus 137 138# Serial (COM) ports 139device uart # Generic UART driver 140device uart_lowrisc # lowRISC UART driver 141device uart_ns8250 # ns8250-type UART driver 142 143# Console 144device vt 145device vt_efifb 146device kbdmux 147 148# RTC 149device goldfish_rtc # QEMU RTC 150 151# Ethernet drivers 152device miibus # MII bus support 153device xae # Xilinx AXI Ethernet MAC 154 155# DMA support 156device xdma # DMA interface 157device axidma # Xilinx AXI DMA Controller 158 159# GPIO 160device gpio 161device fdt_pinctrl 162 163# SPI 164device spibus 165device spigen 166device xilinx_spi # Xilinx AXI SPI Controller 167 168# Debugging support. Always need this: 169options KDB # Enable kernel debugger support. 170options KDB_TRACE # Print a stack trace for a panic. 171# For full debugger support use (turn off in stable branch): 172include "std.debug" 173# options EARLY_PRINTF=sbi 174 175# Kernel dump features. 176options EKCD # Support for encrypted kernel dumps 177options GZIO # gzip-compressed kernel and user dumps 178options ZSTDIO # zstd-compressed kernel and user dumps 179options DEBUGNET # debugnet networking 180options NETDUMP # netdump(4) client support 181 182# Pseudo devices. 183device crypto # core crypto support 184device loop # Network loopback 185device ether # Ethernet support 186device vlan # 802.1Q VLAN support 187device tuntap # Packet tunnel. 188device md # Memory "disks" 189device gif # IPv6 and IPv4 tunneling 190device firmware # firmware assist module 191 192# MMC/SD/SDIO Card slot support 193device sdhci 194device mmc # MMC/SD bus 195device mmcsd # MMC/SD flash cards 196 197# The `bpf' device enables the Berkeley Packet Filter. 198# Be aware of the administrative consequences of enabling this! 199# Note that 'bpf' is required for DHCP. 200device bpf # Berkeley packet filter 201 202# random(4) 203options RANDOM_ENABLE_KBD 204options RANDOM_ENABLE_MOUSE 205 206# Flattened Device Tree 207options FDT 208 209# I2C support 210device iicbus # Bus support, required for iicoc below. 211device iicoc # OpenCores I2C controller support 212 213# random(4) 214device tpm # Trusted Platform Module 215options RANDOM_ENABLE_TPM # enable entropy from TPM 2.0 216 217# Include SoC specific configuration 218include "std.allwinner" 219include "std.cvitek" 220include "std.eswin" 221include "std.sifive" 222include "std.starfive" 223