xref: /freebsd/sys/riscv/conf/GENERIC (revision 058ac3e8063366dafa634d9107642e12b038bf09)
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 	TCP_BLACKBOX		# Enhanced TCP event logging
37options 	TCP_RFC7413		# TCP Fast Open
38options 	SCTP_SUPPORT		# Allow kldload of SCTP
39options 	FFS			# Berkeley Fast Filesystem
40options 	SOFTUPDATES		# Enable FFS soft updates support
41options 	UFS_ACL			# Support for access control lists
42options 	UFS_DIRHASH		# Improve performance on big directories
43options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
44options 	QUOTA			# Enable disk quotas for UFS
45options 	NFSCL			# Network Filesystem Client
46options 	NFSD			# Network Filesystem Server
47options 	NFSLOCKD		# Network Lock Manager
48options 	NFS_ROOT		# NFS usable as /, requires NFSCL
49options 	MSDOSFS			# MSDOS Filesystem
50options 	CD9660			# ISO 9660 Filesystem
51options 	PROCFS			# Process filesystem (requires PSEUDOFS)
52options 	PSEUDOFS		# Pseudo-filesystem framework
53options 	TMPFS			# Efficient memory filesystem
54options 	GEOM_RAID		# Soft RAID functionality.
55options 	GEOM_LABEL		# Provides labelization
56options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
57options 	COMPAT_FREEBSD13	# Compatible with FreeBSD13
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 	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
80
81# RISC-V SBI console
82device		rcons
83
84# pseudo devices
85device		clk
86device		hwreset
87device		syscon
88device		syscon_power
89device		riscv_syscon
90
91# Bus drivers
92device		pci
93
94# Block devices
95device		scbus
96device		da
97
98# VirtIO support
99device		virtio			# Generic VirtIO bus (required)
100device		virtio_pci		# VirtIO PCI device
101device		vtnet			# VirtIO Ethernet device
102device		virtio_blk		# VirtIO Block device
103device		virtio_mmio		# VirtIO MMIO bus
104
105# NVM Express (NVMe) support
106device		nvme		# base NVMe driver
107options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
108device		nvd		# expose NVMe namespaces as disks, depends on nvme
109
110# USB support
111options 	USB_DEBUG		# enable debug msgs
112device		ohci			# OHCI USB interface
113device		uhci			# UHCI USB interface
114device		ehci			# EHCI USB interface (USB 2.0)
115device		xhci			# XHCI USB interface (USB 3.0)
116device		usb			# USB Bus (required)
117device		ukbd			# Keyboard
118device		umass			# Disks/Mass storage - Requires scbus and da
119
120# HID support
121options 	HID_DEBUG	# enable debug msgs
122device		hid		# Generic HID support
123
124# DTrace support
125# device	dtrace
126# device	dtrace_profile
127# device	dtrace_sdt
128# device	dtrace_fbt
129# device	dtrace_systrace
130# device	dtrace_prototype
131# device	dtraceall
132
133# Serial (COM) ports
134device		uart		# Generic UART driver
135device		uart_lowrisc	# lowRISC UART driver
136device		uart_ns8250	# ns8250-type UART driver
137
138# Console
139device		vt
140device		kbdmux
141
142# RTC
143device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
144device		goldfish_rtc	# QEMU RTC
145
146# Ethernet drivers
147device		cgem		# Cadence GEM Gigabit Ethernet device
148device		miibus		# MII bus support
149device		xae		# Xilinx AXI Ethernet MAC
150
151# DMA support
152device		xdma		# DMA interface
153device		axidma		# Xilinx AXI DMA Controller
154
155# GPIO
156device		gpio
157
158# SPI
159device		spibus
160device		spigen
161
162# Power management controllers
163device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
164
165# Uncomment for memory disk
166# options 	MD_ROOT
167# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
168# makeoptions	MFS_IMAGE=/path/to/img
169# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
170
171# Uncomment for virtio block device
172# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
173
174# Debugging support.  Always need this:
175options 	KDB			# Enable kernel debugger support.
176options 	KDB_TRACE		# Print a stack trace for a panic.
177# For full debugger support use (turn off in stable branch):
178options 	DDB			# Support DDB.
179options 	GDB			# Support remote GDB.
180options 	DEADLKRES		# Enable the deadlock resolver
181options 	INVARIANTS		# Enable calls of extra sanity checking
182options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
183options 	WITNESS			# Enable checks to detect deadlocks and cycles
184options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
185options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
186options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
187# options 	EARLY_PRINTF
188options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
189
190# Kernel dump features.
191options		ZSTDIO			# zstd-compressed kernel and user dumps
192
193# Pseudo devices.
194device		crypto		# core crypto support
195device		loop		# Network loopback
196device		ether		# Ethernet support
197device		vlan		# 802.1Q VLAN support
198device		tuntap		# Packet tunnel.
199device		md		# Memory "disks"
200device		gif		# IPv6 and IPv4 tunneling
201device		firmware	# firmware assist module
202
203# The `bpf' device enables the Berkeley Packet Filter.
204# Be aware of the administrative consequences of enabling this!
205# Note that 'bpf' is required for DHCP.
206device		bpf		# Berkeley packet filter
207
208# Flattened Device Tree
209options 	FDT
210makeoptions	MODULES_EXTRA+="dtb/sifive"
211
212# I2C support
213device		iicbus		# Bus support, required for iicoc below.
214device		iicoc		# OpenCores I2C controller support
215
216# Allwinner device drivers
217device		aw_wdog		# Allwinner Watchdog
218files		"../allwinner/files.allwinner"
219
220# SiFive device drivers
221device		fu740_pci_dw
222device		sifive_gpio
223device		sifive_spi
224include		"../sifive/std.sifive"
225