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# $FreeBSD$ 20 21cpu RISCV 22ident GENERIC 23 24makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 25makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support 26 27options SCHED_ULE # ULE scheduler 28options PREEMPTION # Enable kernel thread preemption 29options VIMAGE # Subsystem virtualization, e.g. VNET 30options INET # InterNETworking 31options INET6 # IPv6 communications protocols 32options TCP_HHOOK # hhook(9) framework for TCP 33options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5 34options ROUTE_MPATH # Multipath routing support 35options TCP_OFFLOAD # TCP offload 36options SCTP_SUPPORT # Allow kldload of SCTP 37options FFS # Berkeley Fast Filesystem 38options SOFTUPDATES # Enable FFS soft updates support 39options UFS_ACL # Support for access control lists 40options UFS_DIRHASH # Improve performance on big directories 41options UFS_GJOURNAL # Enable gjournal-based UFS journaling 42options QUOTA # Enable disk quotas for UFS 43options NFSCL # Network Filesystem Client 44options NFSD # Network Filesystem Server 45options NFSLOCKD # Network Lock Manager 46options NFS_ROOT # NFS usable as /, requires NFSCL 47options MSDOSFS # MSDOS Filesystem 48options CD9660 # ISO 9660 Filesystem 49options PROCFS # Process filesystem (requires PSEUDOFS) 50options PSEUDOFS # Pseudo-filesystem framework 51options TMPFS # Efficient memory filesystem 52options GEOM_PART_GPT # GUID Partition Tables. 53options GEOM_RAID # Soft RAID functionality. 54options GEOM_LABEL # Provides labelization 55options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 56options KTRACE # ktrace(1) support 57options STACK # stack(9) support 58options SYSVSHM # SYSV-style shared memory 59options SYSVMSG # SYSV-style message queues 60options SYSVSEM # SYSV-style semaphores 61options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions 62options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 63options KBD_INSTALL_CDEV # install a CDEV entry in /dev 64# options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) 65options AUDIT # Security event auditing 66options CAPABILITY_MODE # Capsicum capability mode 67options CAPABILITIES # Capsicum capabilities 68options MAC # TrustedBSD MAC Framework 69options KDTRACE_FRAME # Ensure frames are compiled in 70options KDTRACE_HOOKS # Kernel DTrace hooks 71options DDB_CTF # Kernel ELF linker loads CTF data 72options FPE # Floating-point extension support 73options RACCT # Resource accounting framework 74options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 75options RCTL # Resource limits 76options SMP 77options INTRNG 78 79# RISC-V SBI console 80device rcons 81 82# EXT_RESOURCES pseudo devices 83options EXT_RESOURCES 84device clk 85device syscon 86device syscon_power 87device riscv_syscon 88 89# Bus drivers 90device pci 91 92# VirtIO support 93device virtio # Generic VirtIO bus (required) 94device virtio_pci # VirtIO PCI device 95device vtnet # VirtIO Ethernet device 96device virtio_blk # VirtIO Block device 97device virtio_mmio # VirtIO MMIO bus 98 99# DTrace support 100# device dtrace 101# device dtrace_profile 102# device dtrace_sdt 103# device dtrace_fbt 104# device dtrace_systrace 105# device dtrace_prototype 106# device dtraceall 107 108# Serial (COM) ports 109device uart # Generic UART driver 110device uart_lowrisc # lowRISC UART driver 111device uart_ns8250 # ns8250-type UART driver 112 113# RTC 114device goldfish_rtc # QEMU RTC 115 116# Ethernet drivers 117device cgem # Cadence GEM Gigabit Ethernet device 118device miibus # MII bus support 119device xae # Xilinx AXI Ethernet MAC 120 121# DMA support 122device xdma # DMA interface 123device axidma # Xilinx AXI DMA Controller 124 125# SPI 126device spibus 127device spigen 128 129# Uncomment for memory disk 130# options MD_ROOT 131# options MD_ROOT_SIZE=32768 # 32MB ram disk 132# makeoptions MFS_IMAGE=/path/to/img 133# options ROOTDEVNAME=\"ufs:/dev/md0\" 134 135# Uncomment for virtio block device 136# options ROOTDEVNAME=\"ufs:/dev/vtbd0\" 137 138# Debugging support. Always need this: 139options KDB # Enable kernel debugger support. 140options KDB_TRACE # Print a stack trace for a panic. 141# For full debugger support use (turn off in stable branch): 142options DDB # Support DDB. 143# options GDB # Support remote GDB. 144options DEADLKRES # Enable the deadlock resolver 145options INVARIANTS # Enable calls of extra sanity checking 146options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 147options WITNESS # Enable checks to detect deadlocks and cycles 148options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 149options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 150# options EARLY_PRINTF 151options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default 152 153# Kernel dump features. 154options ZSTDIO # zstd-compressed kernel and user dumps 155 156# Pseudo devices. 157device crypto # core crypto support 158device loop # Network loopback 159device ether # Ethernet support 160device vlan # 802.1Q VLAN support 161device tuntap # Packet tunnel. 162device md # Memory "disks" 163device gif # IPv6 and IPv4 tunneling 164device firmware # firmware assist module 165 166# The `bpf' device enables the Berkeley Packet Filter. 167# Be aware of the administrative consequences of enabling this! 168# Note that 'bpf' is required for DHCP. 169device bpf # Berkeley packet filter 170 171# Flattened Device Tree 172options FDT 173makeoptions MODULES_EXTRA+="dtb/sifive" 174 175# SiFive device drivers 176device fu540spi 177include "../sifive/std.sifive" 178