xref: /freebsd/sys/riscv/conf/GENERIC (revision be181ee2a28aa2b4b0e76684bce9f673ef668874)
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_RAID		# Soft RAID functionality.
53options 	GEOM_LABEL		# Provides labelization
54options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
55options 	COMPAT_FREEBSD13	# Compatible with FreeBSD13
56options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
57options 	KTRACE			# ktrace(1) support
58options 	STACK			# stack(9) support
59options 	SYSVSHM			# SYSV-style shared memory
60options 	SYSVMSG			# SYSV-style message queues
61options 	SYSVSEM			# SYSV-style semaphores
62options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
63options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
64options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
65# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
66options 	AUDIT			# Security event auditing
67options 	CAPABILITY_MODE		# Capsicum capability mode
68options 	CAPABILITIES		# Capsicum capabilities
69options 	MAC			# TrustedBSD MAC Framework
70options 	KDTRACE_FRAME		# Ensure frames are compiled in
71options 	KDTRACE_HOOKS		# Kernel DTrace hooks
72options 	DDB_CTF			# Kernel ELF linker loads CTF data
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# 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# NVM Express (NVMe) support
105device		nvme		# base NVMe driver
106options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
107device		nvd		# expose NVMe namespaces as disks, depends on nvme
108
109# USB support
110options 	USB_DEBUG		# enable debug msgs
111device		ohci			# OHCI USB interface
112device		uhci			# UHCI USB interface
113device		ehci			# EHCI USB interface (USB 2.0)
114device		xhci			# XHCI USB interface (USB 3.0)
115device		usb			# USB Bus (required)
116device		ukbd			# Keyboard
117device		umass			# Disks/Mass storage - Requires scbus and da
118
119# HID support
120options 	HID_DEBUG	# enable debug msgs
121device		hid		# Generic HID support
122
123# DTrace support
124# device	dtrace
125# device	dtrace_profile
126# device	dtrace_sdt
127# device	dtrace_fbt
128# device	dtrace_systrace
129# device	dtrace_prototype
130# device	dtraceall
131
132# Serial (COM) ports
133device		uart		# Generic UART driver
134device		uart_lowrisc	# lowRISC UART driver
135device		uart_ns8250	# ns8250-type UART driver
136
137# Console
138device		vt
139device		kbdmux
140
141# RTC
142device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
143device		goldfish_rtc	# QEMU RTC
144
145# Ethernet drivers
146device		cgem		# Cadence GEM Gigabit Ethernet device
147device		miibus		# MII bus support
148device		xae		# Xilinx AXI Ethernet MAC
149
150# DMA support
151device		xdma		# DMA interface
152device		axidma		# Xilinx AXI DMA Controller
153
154# GPIO
155device		gpio
156
157# SPI
158device		spibus
159device		spigen
160
161# Power management controllers
162device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
163
164# Uncomment for memory disk
165# options 	MD_ROOT
166# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
167# makeoptions	MFS_IMAGE=/path/to/img
168# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
169
170# Uncomment for virtio block device
171# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
172
173# Debugging support.  Always need this:
174options 	KDB			# Enable kernel debugger support.
175options 	KDB_TRACE		# Print a stack trace for a panic.
176# For full debugger support use (turn off in stable branch):
177options 	DDB			# Support DDB.
178options 	GDB			# Support remote GDB.
179options 	DEADLKRES		# Enable the deadlock resolver
180options 	INVARIANTS		# Enable calls of extra sanity checking
181options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
182options 	WITNESS			# Enable checks to detect deadlocks and cycles
183options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
184options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
185options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
186# options 	EARLY_PRINTF
187options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
188
189# Kernel dump features.
190options		ZSTDIO			# zstd-compressed kernel and user dumps
191
192# Pseudo devices.
193device		crypto		# core crypto support
194device		loop		# Network loopback
195device		ether		# Ethernet support
196device		vlan		# 802.1Q VLAN support
197device		tuntap		# Packet tunnel.
198device		md		# Memory "disks"
199device		gif		# IPv6 and IPv4 tunneling
200device		firmware	# firmware assist module
201
202# The `bpf' device enables the Berkeley Packet Filter.
203# Be aware of the administrative consequences of enabling this!
204# Note that 'bpf' is required for DHCP.
205device		bpf		# Berkeley packet filter
206
207# Flattened Device Tree
208options 	FDT
209makeoptions	MODULES_EXTRA+="dtb/sifive"
210
211# I2C support
212device		iicbus		# Bus support, required for iicoc below.
213device		iicoc		# OpenCores I2C controller support
214
215# Allwinner device drivers
216device		aw_wdog		# Allwinner Watchdog
217files		"../allwinner/files.allwinner"
218
219# SiFive device drivers
220device		fu740_pci_dw
221device		sifive_gpio
222device		sifive_spi
223include		"../sifive/std.sifive"
224