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