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 SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 58options KTRACE # ktrace(1) support 59options STACK # stack(9) support 60options SYSVSHM # SYSV-style shared memory 61options SYSVMSG # SYSV-style message queues 62options SYSVSEM # SYSV-style semaphores 63options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions 64options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 65options KBD_INSTALL_CDEV # install a CDEV entry in /dev 66# options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) 67options AUDIT # Security event auditing 68options CAPABILITY_MODE # Capsicum capability mode 69options CAPABILITIES # Capsicum capabilities 70options MAC # TrustedBSD MAC Framework 71options KDTRACE_FRAME # Ensure frames are compiled in 72options KDTRACE_HOOKS # Kernel DTrace hooks 73options DDB_CTF # Kernel ELF linker loads CTF data 74options RACCT # Resource accounting framework 75options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 76options RCTL # Resource limits 77options SMP 78 79# RISC-V SBI console 80device rcons 81 82# pseudo devices 83device clk 84device hwreset 85device syscon 86device syscon_power 87device riscv_syscon 88 89# Bus drivers 90device pci 91 92# Block devices 93device scbus 94device da 95 96# VirtIO support 97device virtio # Generic VirtIO bus (required) 98device virtio_pci # VirtIO PCI device 99device vtnet # VirtIO Ethernet device 100device virtio_blk # VirtIO Block device 101device virtio_mmio # VirtIO MMIO bus 102 103# ATA/SCSI peripherals 104device pass # Passthrough device (direct ATA/SCSI access) 105 106# NVM Express (NVMe) support 107device nvme # base NVMe driver 108options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 109device nvd # expose NVMe namespaces as disks, depends on nvme 110 111# USB support 112options USB_DEBUG # enable debug msgs 113device ohci # OHCI USB interface 114device uhci # UHCI USB interface 115device ehci # EHCI USB interface (USB 2.0) 116device xhci # XHCI USB interface (USB 3.0) 117device usb # USB Bus (required) 118device ukbd # Keyboard 119device umass # Disks/Mass storage - Requires scbus and da 120 121# HID support 122options HID_DEBUG # enable debug msgs 123device hid # Generic HID support 124 125# DTrace support 126# device dtrace 127# device dtrace_profile 128# device dtrace_sdt 129# device dtrace_fbt 130# device dtrace_systrace 131# device dtrace_prototype 132# device dtraceall 133 134# Serial (COM) ports 135device uart # Generic UART driver 136device uart_lowrisc # lowRISC UART driver 137device uart_ns8250 # ns8250-type UART driver 138 139# Console 140device vt 141device kbdmux 142 143# RTC 144device da9063_rtc # Dialog Semiconductor DA9063 RTC 145device goldfish_rtc # QEMU RTC 146 147# Ethernet drivers 148device cgem # Cadence GEM Gigabit Ethernet device 149device miibus # MII bus support 150device xae # Xilinx AXI Ethernet MAC 151 152# DMA support 153device xdma # DMA interface 154device axidma # Xilinx AXI DMA Controller 155 156# GPIO 157device gpio 158 159# SPI 160device spibus 161device spigen 162 163# Power management controllers 164device da9063_pmic # Dialog Semiconductor DA9063 PMIC 165 166# Uncomment for memory disk 167# options MD_ROOT 168# options MD_ROOT_SIZE=32768 # 32MB ram disk 169# makeoptions MFS_IMAGE=/path/to/img 170# options ROOTDEVNAME=\"ufs:/dev/md0\" 171 172# Uncomment for virtio block device 173# options ROOTDEVNAME=\"ufs:/dev/vtbd0\" 174 175# Debugging support. Always need this: 176options KDB # Enable kernel debugger support. 177options KDB_TRACE # Print a stack trace for a panic. 178# For full debugger support use (turn off in stable branch): 179options DDB # Support DDB. 180options GDB # Support remote GDB. 181options DEADLKRES # Enable the deadlock resolver 182options INVARIANTS # Enable calls of extra sanity checking 183options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 184options WITNESS # Enable checks to detect deadlocks and cycles 185options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 186options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 187options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence 188# options EARLY_PRINTF 189options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default 190 191# Kernel dump features. 192options ZSTDIO # zstd-compressed kernel and user dumps 193 194# Pseudo devices. 195device crypto # core crypto support 196device loop # Network loopback 197device ether # Ethernet support 198device vlan # 802.1Q VLAN support 199device tuntap # Packet tunnel. 200device md # Memory "disks" 201device gif # IPv6 and IPv4 tunneling 202device firmware # firmware assist module 203 204# The `bpf' device enables the Berkeley Packet Filter. 205# Be aware of the administrative consequences of enabling this! 206# Note that 'bpf' is required for DHCP. 207device bpf # Berkeley packet filter 208 209# Flattened Device Tree 210options FDT 211makeoptions MODULES_EXTRA+="dtb/sifive" 212 213# I2C support 214device iicbus # Bus support, required for iicoc below. 215device iicoc # OpenCores I2C controller support 216 217# Allwinner device drivers 218device aw_wdog # Allwinner Watchdog 219files "../allwinner/files.allwinner" 220 221# SiFive device drivers 222device fu740_pci_dw 223device sifive_gpio 224device sifive_spi 225include "../sifive/std.sifive" 226