xref: /freebsd/sys/riscv/conf/GENERIC (revision 4f8f43b06ed07e96a250855488cc531799d5b78f)
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		syscon
87device		syscon_power
88device		riscv_syscon
89
90# Bus drivers
91device		pci
92
93# Block devices
94device		scbus
95device		da
96
97# VirtIO support
98device		virtio			# Generic VirtIO bus (required)
99device		virtio_pci		# VirtIO PCI device
100device		vtnet			# VirtIO Ethernet device
101device		virtio_blk		# VirtIO Block device
102device		virtio_mmio		# VirtIO MMIO bus
103
104# ATA/SCSI peripherals
105device		pass			# Passthrough device (direct ATA/SCSI access)
106
107# NVM Express (NVMe) support
108device		nvme		# base NVMe driver
109options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
110device		nvd		# expose NVMe namespaces as disks, depends on nvme
111
112# USB support
113options 	USB_DEBUG		# enable debug msgs
114device		ohci			# OHCI USB interface
115device		uhci			# UHCI USB interface
116device		ehci			# EHCI USB interface (USB 2.0)
117device		xhci			# XHCI USB interface (USB 3.0)
118device		usb			# USB Bus (required)
119device		ukbd			# Keyboard
120device		umass			# Disks/Mass storage - Requires scbus and da
121
122# HID support
123options 	HID_DEBUG	# enable debug msgs
124device		hid		# Generic HID support
125
126# DTrace support
127# device	dtrace
128# device	dtrace_profile
129# device	dtrace_sdt
130# device	dtrace_fbt
131# device	dtrace_systrace
132# device	dtrace_prototype
133# device	dtraceall
134
135# Serial (COM) ports
136device		uart		# Generic UART driver
137device		uart_lowrisc	# lowRISC UART driver
138device		uart_ns8250	# ns8250-type UART driver
139
140# Console
141device		vt
142device		kbdmux
143
144# RTC
145device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
146device		goldfish_rtc	# QEMU RTC
147
148# Ethernet drivers
149device		cgem		# Cadence GEM Gigabit Ethernet device
150device		miibus		# MII bus support
151device		xae		# Xilinx AXI Ethernet MAC
152
153# DMA support
154device		xdma		# DMA interface
155device		axidma		# Xilinx AXI DMA Controller
156
157# GPIO
158device		gpio
159
160# SPI
161device		spibus
162device		spigen
163
164# Power management controllers
165device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
166
167# Uncomment for memory disk
168# options 	MD_ROOT
169# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
170# makeoptions	MFS_IMAGE=/path/to/img
171# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
172
173# Uncomment for virtio block device
174# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
175
176# Debugging support.  Always need this:
177options 	KDB			# Enable kernel debugger support.
178options 	KDB_TRACE		# Print a stack trace for a panic.
179# For full debugger support use (turn off in stable branch):
180options 	DDB			# Support DDB.
181options 	GDB			# Support remote GDB.
182options 	DEADLKRES		# Enable the deadlock resolver
183options 	INVARIANTS		# Enable calls of extra sanity checking
184options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
185options 	WITNESS			# Enable checks to detect deadlocks and cycles
186options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
187options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
188options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
189# options 	EARLY_PRINTF
190options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
191
192# Kernel dump features.
193options 	ZSTDIO			# zstd-compressed kernel and user dumps
194
195# Pseudo devices.
196device		crypto		# core crypto support
197device		loop		# Network loopback
198device		ether		# Ethernet support
199device		vlan		# 802.1Q VLAN support
200device		tuntap		# Packet tunnel.
201device		md		# Memory "disks"
202device		gif		# IPv6 and IPv4 tunneling
203device		firmware	# firmware assist module
204
205# The `bpf' device enables the Berkeley Packet Filter.
206# Be aware of the administrative consequences of enabling this!
207# Note that 'bpf' is required for DHCP.
208device		bpf		# Berkeley packet filter
209
210# Flattened Device Tree
211options 	FDT
212makeoptions	MODULES_EXTRA+="dtb/sifive"
213
214# I2C support
215device		iicbus		# Bus support, required for iicoc below.
216device		iicoc		# OpenCores I2C controller support
217
218# Allwinner device drivers
219device		aw_wdog		# Allwinner Watchdog
220files		"../allwinner/files.allwinner"
221
222# SiFive device drivers
223device		fu740_pci_dw
224device		sifive_gpio
225device		sifive_spi
226include		"../sifive/std.sifive"
227