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