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