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 33# options VIMAGE # Subsystem virtualization, e.g. VNET 34options INET # InterNETworking 35options INET6 # IPv6 communications protocols 36options TCP_HHOOK # hhook(9) framework for TCP 37options IPSEC # IP (v4/v6) security 38options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 39device crypto # core crypto support (required for IPSEC) 40options TCP_OFFLOAD # TCP offload 41options SCTP # Stream Control Transmission Protocol 42options FFS # Berkeley Fast Filesystem 43options SOFTUPDATES # Enable FFS soft updates support 44options UFS_ACL # Support for access control lists 45options UFS_DIRHASH # Improve performance on big directories 46options UFS_GJOURNAL # Enable gjournal-based UFS journaling 47options QUOTA # Enable disk quotas for UFS 48options NFSCL # Network Filesystem Client 49options NFSD # Network Filesystem Server 50options NFSLOCKD # Network Lock Manager 51options NFS_ROOT # NFS usable as /, requires NFSCL 52options MSDOSFS # MSDOS Filesystem 53options CD9660 # ISO 9660 Filesystem 54options PROCFS # Process filesystem (requires PSEUDOFS) 55options PSEUDOFS # Pseudo-filesystem framework 56options GEOM_PART_GPT # GUID Partition Tables. 57# options GEOM_RAID # Soft RAID functionality. 58options GEOM_LABEL # Provides labelization 59options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 60options KTRACE # ktrace(1) support 61# options 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 FPE # Floating-point extension support 76options RACCT # Resource accounting framework 77options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 78options RCTL # Resource limits 79options SMP 80options INTRNG 81 82# RISC-V SBI console 83device rcons 84 85# VirtIO support 86device virtio # Generic VirtIO bus (required) 87device virtio_pci # VirtIO PCI device 88device vtnet # VirtIO Ethernet device 89device virtio_blk # VirtIO Block device 90device virtio_mmio # VirtIO MMIO bus 91 92# Serial (COM) ports 93device uart # Generic UART driver 94device uart_ns8250 # ns8250-type UART driver 95 96# Uncomment for memory disk 97# options MD_ROOT 98# options MD_ROOT_SIZE=32768 # 32MB ram disk 99# makeoptions MFS_IMAGE=/path/to/img 100# options ROOTDEVNAME=\"ufs:/dev/md0\" 101 102# Uncomment for virtio block device 103# options ROOTDEVNAME=\"ufs:/dev/vtbd0\" 104 105# Debugging support. Always need this: 106options KDB # Enable kernel debugger support. 107options KDB_TRACE # Print a stack trace for a panic. 108# For full debugger support use (turn off in stable branch): 109options DDB # Support DDB. 110# options GDB # Support remote GDB. 111options DEADLKRES # Enable the deadlock resolver 112options INVARIANTS # Enable calls of extra sanity checking 113options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 114# options WITNESS # Enable checks to detect deadlocks and cycles 115# options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 116options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 117# options EARLY_PRINTF 118# options VERBOSE_SYSINIT 119 120# Kernel dump features. 121options ZSTDIO # zstd-compressed kernel and user dumps 122 123# Pseudo devices. 124device loop # Network loopback 125device random # Entropy device 126device ether # Ethernet support 127device vlan # 802.1Q VLAN support 128device tun # Packet tunnel. 129device md # Memory "disks" 130device gif # IPv6 and IPv4 tunneling 131device firmware # firmware assist module 132 133# The `bpf' device enables the Berkeley Packet Filter. 134# Be aware of the administrative consequences of enabling this! 135# Note that 'bpf' is required for DHCP. 136device bpf # Berkeley packet filter 137 138options FDT 139