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://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html 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# $FreeBSD$ 20 21cpu RISCV 22ident GENERIC 23 24makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 25# makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support 26 27# FIXME: linker error. "--relax and -r may not be used together" 28makeoptions WITHOUT_MODULES="usb otusfw mwlfw ispfw mwlfw ralfw rtwnfw" 29# makeoptions NO_MODULES 30 31options SCHED_ULE # ULE scheduler 32options PREEMPTION # Enable kernel thread preemption 33options VIMAGE # Subsystem virtualization, e.g. VNET 34options INET # InterNETworking 35options INET6 # IPv6 communications protocols 36options TCP_HHOOK # hhook(9) framework for TCP 37options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 38options TCP_OFFLOAD # TCP offload 39options SCTP # Stream Control Transmission Protocol 40options FFS # Berkeley Fast Filesystem 41options SOFTUPDATES # Enable FFS soft updates support 42options UFS_ACL # Support for access control lists 43options UFS_DIRHASH # Improve performance on big directories 44options UFS_GJOURNAL # Enable gjournal-based UFS journaling 45options QUOTA # Enable disk quotas for UFS 46options NFSCL # Network Filesystem Client 47options NFSD # Network Filesystem Server 48options NFSLOCKD # Network Lock Manager 49options NFS_ROOT # NFS usable as /, requires NFSCL 50options MSDOSFS # MSDOS Filesystem 51options CD9660 # ISO 9660 Filesystem 52options PROCFS # Process filesystem (requires PSEUDOFS) 53options PSEUDOFS # Pseudo-filesystem framework 54options GEOM_PART_GPT # GUID Partition Tables. 55# options GEOM_RAID # Soft RAID functionality. 56options GEOM_LABEL # Provides labelization 57options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 58options KTRACE # ktrace(1) support 59# options 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 FPE # Floating-point extension support 74options RACCT # Resource accounting framework 75options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 76options RCTL # Resource limits 77options SMP 78options INTRNG 79 80# RISC-V SBI console 81device rcons 82 83# VirtIO support 84device virtio # Generic VirtIO bus (required) 85device virtio_pci # VirtIO PCI device 86device vtnet # VirtIO Ethernet device 87device virtio_blk # VirtIO Block device 88device virtio_mmio # VirtIO MMIO bus 89 90# DTrace support 91# device dtrace 92# device dtrace_profile 93# device dtrace_sdt 94# device dtrace_fbt 95# device dtrace_systrace 96# device dtrace_prototype 97# device dtraceall 98 99# Serial (COM) ports 100device uart # Generic UART driver 101device uart_lowrisc # lowRISC UART driver 102device uart_ns8250 # ns8250-type UART driver 103 104 105# Ethernet drivers 106device miibus # MII bus support 107device cgem # Cadence Gigabit Ethernet MAC 108device xae # Xilinx AXI Ethernet MAC 109 110# DMA support 111device xdma # DMA interface 112device axidma # Xilinx AXI DMA Controller 113 114# Uncomment for memory disk 115# options MD_ROOT 116# options MD_ROOT_SIZE=32768 # 32MB ram disk 117# makeoptions MFS_IMAGE=/path/to/img 118# options ROOTDEVNAME=\"ufs:/dev/md0\" 119 120# Uncomment for virtio block device 121# options ROOTDEVNAME=\"ufs:/dev/vtbd0\" 122 123# Debugging support. Always need this: 124options KDB # Enable kernel debugger support. 125options KDB_TRACE # Print a stack trace for a panic. 126# For full debugger support use (turn off in stable branch): 127options DDB # Support DDB. 128# options GDB # Support remote GDB. 129options DEADLKRES # Enable the deadlock resolver 130options INVARIANTS # Enable calls of extra sanity checking 131options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 132options WITNESS # Enable checks to detect deadlocks and cycles 133# options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 134options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 135# options EARLY_PRINTF 136options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default 137 138# Kernel dump features. 139options ZSTDIO # zstd-compressed kernel and user dumps 140 141# Pseudo devices. 142device crypto # core crypto support 143device loop # Network loopback 144device random # Entropy device 145device ether # Ethernet support 146device vlan # 802.1Q VLAN support 147device tuntap # Packet tunnel. 148device md # Memory "disks" 149device gif # IPv6 and IPv4 tunneling 150device firmware # firmware assist module 151 152# The `bpf' device enables the Berkeley Packet Filter. 153# Be aware of the administrative consequences of enabling this! 154# Note that 'bpf' is required for DHCP. 155device bpf # Berkeley packet filter 156 157options FDT 158