1289336Semaste#
2289336Semaste# ERL - EdgeRouter Lite kernel config
3289336Semaste# Based on configuration from http://rtfm.net/FreeBSD/ERL
4289336Semaste#
5289336Semaste# For more information on this file, please read the config(5) manual page,
6289336Semaste# and/or the handbook section on Kernel Configuration Files:
7289336Semaste#
8289336Semaste#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
9289336Semaste#
10289336Semaste# The handbook is also available locally in /usr/share/doc/handbook
11289336Semaste# if you've installed the doc distribution, otherwise always see the
12289336Semaste# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
13289336Semaste# latest information.
14289336Semaste#
15289336Semaste# An exhaustive list of options and more detailed explanations of the
16289336Semaste# device lines is also present in the ../../conf/NOTES and NOTES files.
17289336Semaste# If you are in doubt as to the purpose or necessity of a line, check first
18289336Semaste# in NOTES.
19289336Semaste#
20289336Semaste# $FreeBSD: stable/11/sys/mips/conf/ERL 332566 2018-04-16 14:39:04Z lidl $
21289336Semaste
22289336Semasteident		ERL
23289336Semaste
24289336Semastemakeoptions	ARCH_FLAGS="-march=octeon -mabi=64"
25289336Semastemakeoptions	LDSCRIPT_NAME=ldscript.mips.octeon1
26289336Semaste
27289336Semaste# Don't build any modules yet.
28289336Semastemakeoptions	MODULES_OVERRIDE=""
29289336Semastemakeoptions	KERNLOADADDR=0xffffffff80100000
30289336Semaste
31289336Semaste# We don't need to build a trampolined version of the kernel.
32289336Semastemakeoptions	WITHOUT_KERNEL_TRAMPOLINE=1
33289336Semaste
34289336Semasteinclude		"../cavium/std.octeon1"
35289336Semaste
36289336Semastehints		"OCTEON1.hints"		#Default places to look for devices.
37289336Semaste
38289336Semastemakeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
39289336Semaste
40289336Semaste# Board-specific support that cannot be auto-detected at runtime.
41289336Semaste#options 	OCTEON_VENDOR_LANNER		# Support for Lanner boards.
42289336Semaste#options 	OCTEON_VENDOR_RADISYS		# Support for Radisys boards.
43289336Semasteoptions 	OCTEON_VENDOR_UBIQUITI		# Support for Ubiquiti boards.
44289336Semaste#options	OCTEON_VENDOR_GEFES		# Support for GE LANIC boards
45289336Semaste#options 	OCTEON_BOARD_CAPK_0100ND	# Support for CAPK-0100nd.
46289336Semaste
47289336Semaste# Compile for a specified Octeon model.  If not specified, support for
48289336Semaste# detection at runtime will be used instead, which may give inferior
49289336Semaste# performance.
50289336Semaste#
51289336Semaste# See sys/contrib/octeon-sdk/octeon-model.h for possible values.
52289336Semasteoptions 	OCTEON_MODEL=OCTEON_CN50XX_PASS1
53289336Semaste
54289336Semasteoptions 	SCHED_ULE		# ULE scheduler
55289336Semasteoptions 	PREEMPTION		# Enable kernel thread preemption
56289336Semasteoptions 	INET			# InterNETworking
57289336Semasteoptions 	INET6			# IPv6 communications protocols
58289336Semasteoptions 	SCTP			# Stream Control Transmission Protocol
59289336Semasteoptions 	FFS			# Berkeley Fast Filesystem
60289336Semasteoptions 	SOFTUPDATES		# Enable FFS soft updates support
61289336Semasteoptions 	UFS_ACL			# Support for access control lists
62289336Semasteoptions 	UFS_DIRHASH		# Improve performance on big directories
63289336Semasteoptions 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
64289336Semasteoptions 	MD_ROOT			# MD is a potential root device
65289336Semasteoptions 	NFSCL			# Network Filesystem Client
66289336Semasteoptions 	NFSD			# Network Filesystem Server
67289336Semasteoptions 	NFSLOCKD		# Network Lock Manager
68289336Semasteoptions 	NFS_ROOT		# NFS usable as /, requires NFSCL
69289336Semasteoptions 	MSDOSFS			# MSDOS Filesystem
70289336Semasteoptions 	CD9660			# ISO 9660 Filesystem
71289336Semasteoptions 	PROCFS			# Process filesystem (requires PSEUDOFS)
72289336Semasteoptions 	PSEUDOFS		# Pseudo-filesystem framework
73289336Semasteoptions 	GEOM_PART_GPT		# GUID Partition Tables.
74289336Semasteoptions 	GEOM_LABEL		# Provides labelization
75289336Semasteoptions 	COMPAT_FREEBSD32	# Compatible with o32 binaries
76307633Semasteoptions 	COMPAT_FREEBSD10	# Compatible with FreeBSD10
77289336Semasteoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
78289336Semasteoptions 	KTRACE			# ktrace(1) support
79289336Semasteoptions 	STACK			# stack(9) support
80289336Semasteoptions 	SYSVSHM			# SYSV-style shared memory
81289336Semasteoptions 	SYSVMSG			# SYSV-style message queues
82289336Semasteoptions 	SYSVSEM			# SYSV-style semaphores
83289336Semasteoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
84289336Semasteoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
85289336Semasteoptions 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
86289336Semasteoptions 	AUDIT			# Security event auditing
87289336Semasteoptions 	MAC			# TrustedBSD MAC Framework
88332566Slidloptions 	KDTRACE_FRAME		# Ensure frames are compiled in
89332566Slidloptions 	KDTRACE_HOOKS		# Kernel DTrace hooks
90332566Slidloptions 	DDB_CTF			# Kernel ELF linker loads CTF data
91332566Slidloptions 	INCLUDE_CONFIG_FILE	# Include this file in kernel
92289336Semasteoptions 	NO_SWAPPING		# Disable support for paging
93289336Semasteoptions		TMPFS			# Temporary file system
94289336Semaste
95289336Semaste# Debugging for use in -current
96289336Semaste#options 	KDB			# Enable kernel debugger support.
97332566Slidloptions 	DDB			# Support DDB.
98289336Semaste#options 	GDB			# Support remote GDB.
99289336Semaste#options 	DEADLKRES		# Enable the deadlock resolver
100289336Semaste#options 	INVARIANTS		# Enable calls of extra sanity checking
101289336Semaste#options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
102289336Semaste#options 	WITNESS			# Enable checks to detect deadlocks and cycles
103289336Semaste#options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
104289336Semaste#options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
105289336Semaste
106289336Semaste# Make an SMP-capable kernel by default
107289336Semasteoptions 	SMP			# Symmetric MultiProcessor Kernel
108289336Semaste
109289336Semasteoptions 	ROOTDEVNAME=\"ufs:da0s2a\"	# Default root filesystem.
110289336Semaste
111289336Semaste# ATA/SCSI peripherals
112289336Semastedevice		scbus		# SCSI bus (required for ATA/SCSI)
113289336Semastedevice		ch		# SCSI media changers
114289336Semastedevice		da		# Direct Access (disks)
115289336Semastedevice		sa		# Sequential Access (tape etc)
116289336Semastedevice		cd		# CD
117289336Semastedevice		pass		# Passthrough device (direct ATA/SCSI access)
118289336Semastedevice		ses		# Enclosure Services (SES and SAF-TE)
119289336Semaste
120289336Semaste# Serial (COM) ports
121289336Semastedevice		uart		# Generic UART driver
122289336Semaste
123289336Semaste# On-board Cavium Octeon Ethernet.
124289336Semaste# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
125289336Semastedevice		octe
126289336Semaste
127289336Semaste# Cavium Octeon management Ethernet.
128289336Semastedevice		octm
129289336Semaste
130289336Semaste# Switch PHY support for the octe driver.  These currently present a VLAN per
131289336Semaste# physical port, but may eventually provide support for DSA or similar instead.
132289336Semaste#device		mv88e61xxphy	# Marvell 88E61XX
133289336Semaste
134289336Semaste# Wireless NIC cards
135289336Semastedevice		wlan		# 802.11 support
136289336Semasteoptions 	IEEE80211_DEBUG	# enable debug msgs
137289336Semasteoptions 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
138289336Semasteoptions 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
139289336Semastedevice		wlan_wep	# 802.11 WEP support
140289336Semastedevice		wlan_ccmp	# 802.11 CCMP support
141289336Semastedevice		wlan_tkip	# 802.11 TKIP support
142289336Semastedevice		wlan_amrr	# AMRR transmit rate control algorithm
143289336Semaste#device		ath		# Atheros NIC's
144289336Semaste#device		ath_pci		# Atheros pci/cardbus glue
145289336Semaste#device		ath_hal		# pci/cardbus chip support
146289336Semaste#options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
147289336Semaste#device		ath_rate_sample	# SampleRate tx rate control for ath
148289336Semaste
149289336Semaste# Pseudo devices.
150289336Semastedevice		loop		# Network loopback
151289336Semastedevice		random		# Entropy device
152289336Semastedevice		ether		# Ethernet support
153289336Semastedevice		vlan		# 802.1Q VLAN support
154289336Semastedevice		tun		# Packet tunnel.
155289336Semastedevice		md		# Memory "disks"
156289336Semastedevice		gif		# IPv6 and IPv4 tunneling
157289336Semastedevice		firmware	# firmware assist module
158289336Semaste
159289336Semaste# The `bpf' device enables the Berkeley Packet Filter.
160289336Semaste# Be aware of the administrative consequences of enabling this!
161289336Semaste# Note that 'bpf' is required for DHCP.
162289336Semastedevice		bpf		# Berkeley packet filter
163289336Semaste
164289336Semaste# Hardware watchdog support.
165289336Semaste#device		octeon_wdog	# Octeon hardware watchdog
166289336Semaste
167289336Semaste# USB support
168289336Semasteoptions 	USB_DEBUG	# enable debug msgs
169289336Semastedevice		octusb		# Cavium Octeon on-board USB interface (USB 2.0)
170289336Semastedevice		uhci		# UHCI PCI->USB interface
171289336Semastedevice		ohci		# OHCI PCI->USB interface
172289336Semastedevice		ehci		# EHCI PCI->USB interface (USB 2.0)
173289336Semastedevice		usb		# USB Bus (required)
174289336Semaste#device		udbp		# USB Double Bulk Pipe devices
175289336Semastedevice		uhid		# "Human Interface Devices"
176289336Semastedevice		ulpt		# Printer
177289336Semastedevice		umass		# Disks/Mass storage - Requires scbus and da
178289336Semastedevice		ums		# Mouse
179289336Semastedevice		urio		# Diamond Rio 500 MP3 player
180289336Semaste# USB Serial devices
181289336Semastedevice		u3g		# USB-based 3G modems (Option, Huawei, Sierra)
182289336Semastedevice		uark		# Technologies ARK3116 based serial adapters
183289336Semastedevice		ubsa		# Belkin F5U103 and compatible serial adapters
184289336Semastedevice		uftdi		# For FTDI usb serial adapters
185289336Semastedevice		uipaq		# Some WinCE based devices
186289336Semastedevice		uplcom		# Prolific PL-2303 serial adapters
187289336Semastedevice		uslcom		# SI Labs CP2101/CP2102 serial adapters
188289336Semastedevice		uvisor		# Visor and Palm devices
189289336Semastedevice		uvscom		# USB serial support for DDI pocket's PHS
190289336Semaste# USB Ethernet, requires miibus
191289336Semastedevice		miibus		# MII bus support
192289336Semastedevice		aue		# ADMtek USB Ethernet
193289336Semastedevice		axe		# ASIX Electronics USB Ethernet
194289336Semastedevice		cdce		# Generic USB over Ethernet
195289336Semastedevice		cue		# CATC USB Ethernet
196289336Semastedevice		kue		# Kawasaki LSI USB Ethernet
197289336Semastedevice		rue		# RealTek RTL8150 USB Ethernet
198289336Semastedevice		udav		# Davicom DM9601E USB
199289336Semaste# USB Wireless
200289336Semastedevice		rum		# Ralink Technology RT2501USB wireless NICs
201289336Semastedevice		uath		# Atheros AR5523 wireless NICs
202289336Semastedevice		ural		# Ralink Technology RT2500USB wireless NICs
203289336Semastedevice		zyd		# ZyDAS zd1211/zd1211b wireless NICs
204289336Semaste
205289336Semaste# crypto subsystem
206289336Semastedevice		crypto		# core crypto support
207289336Semastedevice		cryptodev	# /dev/crypto for access to h/w
208289336Semastedevice		cryptocteon	# Octeon coprocessor 2 crypto offload
209289336Semaste
210289336Semaste# GPIO support
211289336Semaste#device		gpio
212289336Semaste
213289336Semaste# PMC support
214289336Semaste#device		hwpmc
215