xref: /freebsd/sys/riscv/conf/GENERIC (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
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			# Stream Control Transmission Protocol
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 	GEOM_PART_GPT		# GUID Partition Tables.
51options 	GEOM_RAID		# Soft RAID functionality.
52options 	GEOM_LABEL		# Provides labelization
53options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
54options 	KTRACE			# ktrace(1) support
55options 	STACK			# stack(9) support
56options 	SYSVSHM			# SYSV-style shared memory
57options 	SYSVMSG			# SYSV-style message queues
58options 	SYSVSEM			# SYSV-style semaphores
59options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
60options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
61options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
62# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
63options 	AUDIT			# Security event auditing
64options 	CAPABILITY_MODE		# Capsicum capability mode
65options 	CAPABILITIES		# Capsicum capabilities
66options 	MAC			# TrustedBSD MAC Framework
67options 	KDTRACE_FRAME		# Ensure frames are compiled in
68options 	KDTRACE_HOOKS		# Kernel DTrace hooks
69options 	FPE			# Floating-point extension support
70options 	RACCT			# Resource accounting framework
71options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
72options 	RCTL			# Resource limits
73options 	SMP
74options 	INTRNG
75
76# RISC-V SBI console
77device		rcons
78
79# Bus drivers
80device		pci
81
82# VirtIO support
83device		virtio			# Generic VirtIO bus (required)
84device		virtio_pci		# VirtIO PCI device
85device		vtnet			# VirtIO Ethernet device
86device		virtio_blk		# VirtIO Block device
87device		virtio_mmio		# VirtIO MMIO bus
88
89# DTrace support
90# device	dtrace
91# device	dtrace_profile
92# device	dtrace_sdt
93# device	dtrace_fbt
94# device	dtrace_systrace
95# device	dtrace_prototype
96# device	dtraceall
97
98# Serial (COM) ports
99device		uart		# Generic UART driver
100device		uart_lowrisc	# lowRISC UART driver
101device		uart_ns8250	# ns8250-type UART driver
102
103
104# Ethernet drivers
105device		miibus		# MII bus support
106device		cgem		# Cadence Gigabit Ethernet MAC
107device		xae		# Xilinx AXI Ethernet MAC
108
109# DMA support
110device		xdma		# DMA interface
111device		axidma		# Xilinx AXI DMA Controller
112
113# Uncomment for memory disk
114# options 	MD_ROOT
115# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
116# makeoptions	MFS_IMAGE=/path/to/img
117# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
118
119# Uncomment for virtio block device
120# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
121
122# Debugging support.  Always need this:
123options 	KDB			# Enable kernel debugger support.
124options 	KDB_TRACE		# Print a stack trace for a panic.
125# For full debugger support use (turn off in stable branch):
126options 	DDB			# Support DDB.
127# options 	GDB			# Support remote GDB.
128options 	DEADLKRES		# Enable the deadlock resolver
129options 	INVARIANTS		# Enable calls of extra sanity checking
130options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
131options 	WITNESS			# Enable checks to detect deadlocks and cycles
132# options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
133options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
134# options 	EARLY_PRINTF
135options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
136
137# Kernel dump features.
138options		ZSTDIO			# zstd-compressed kernel and user dumps
139
140# Pseudo devices.
141device		crypto		# core crypto support
142device		loop		# Network loopback
143device		ether		# Ethernet support
144device		vlan		# 802.1Q VLAN support
145device		tuntap		# Packet tunnel.
146device		md		# Memory "disks"
147device		gif		# IPv6 and IPv4 tunneling
148device		firmware	# firmware assist module
149
150# The `bpf' device enables the Berkeley Packet Filter.
151# Be aware of the administrative consequences of enabling this!
152# Note that 'bpf' is required for DHCP.
153device		bpf		# Berkeley packet filter
154
155options 	FDT
156