1# 2# ERL - EdgeRouter Lite kernel config 3# Based on configuration from http://rtfm.net/FreeBSD/ERL 4# 5# For more information on this file, please read the config(5) manual page, 6# and/or the handbook section on Kernel Configuration Files: 7# 8# https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html 9# 10# The handbook is also available locally in /usr/share/doc/handbook 11# if you've installed the doc distribution, otherwise always see the 12# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the 13# latest information. 14# 15# An exhaustive list of options and more detailed explanations of the 16# device lines is also present in the ../../conf/NOTES and NOTES files. 17# If you are in doubt as to the purpose or necessity of a line, check first 18# in NOTES. 19# 20# $FreeBSD$ 21 22ident ERL 23 24makeoptions ARCH_FLAGS="-march=octeon+" 25makeoptions LDSCRIPT_NAME=ldscript.mips.octeon1 26 27makeoptions KERNLOADADDR=0xffffffff80100000 28 29# We don't need to build a trampolined version of the kernel. 30makeoptions WITHOUT_KERNEL_TRAMPOLINE=1 31 32include "../cavium/std.octeon1" 33 34hints "OCTEON1.hints" #Default places to look for devices. 35 36makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 37 38# Board-specific support that cannot be auto-detected at runtime. 39#options OCTEON_VENDOR_LANNER # Support for Lanner boards. 40#options OCTEON_VENDOR_RADISYS # Support for Radisys boards. 41options OCTEON_VENDOR_UBIQUITI # Support for Ubiquiti boards. 42#options OCTEON_VENDOR_GEFES # Support for GE LANIC boards 43#options OCTEON_BOARD_CAPK_0100ND # Support for CAPK-0100nd. 44 45# Compile for a specified Octeon model. If not specified, support for 46# detection at runtime will be used instead, which may give inferior 47# performance. 48# 49# See sys/contrib/octeon-sdk/octeon-model.h for possible values. 50options OCTEON_MODEL=OCTEON_CN50XX_PASS1 51 52options SCHED_ULE # ULE scheduler 53options PREEMPTION # Enable kernel thread preemption 54options INET # InterNETworking 55options INET6 # IPv6 communications protocols 56options IPSEC # IP (v4/v6) security 57options TCP_HHOOK # hhook(9) framework for TCP 58options SCTP_SUPPORT # Allow kldload of SCTP 59options FFS # Berkeley Fast Filesystem 60options SOFTUPDATES # Enable FFS soft updates support 61options UFS_ACL # Support for access control lists 62options UFS_DIRHASH # Improve performance on big directories 63options UFS_GJOURNAL # Enable gjournal-based UFS journaling 64options MD_ROOT # MD is a potential root device 65options NFSCL # Network Filesystem Client 66options NFSD # Network Filesystem Server 67options NFSLOCKD # Network Lock Manager 68options NFS_ROOT # NFS usable as /, requires NFSCL 69options MSDOSFS # MSDOS Filesystem 70options CD9660 # ISO 9660 Filesystem 71options PROCFS # Process filesystem (requires PSEUDOFS) 72options PSEUDOFS # Pseudo-filesystem framework 73options GEOM_PART_GPT # GUID Partition Tables. 74options GEOM_LABEL # Provides labelization 75options COMPAT_FREEBSD32 # Compatible with o32 binaries 76options COMPAT_FREEBSD10 # Compatible with FreeBSD10 77options COMPAT_FREEBSD11 # Compatible with FreeBSD11 78options COMPAT_FREEBSD12 # Compatible with FreeBSD12 79options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI 80options KTRACE # ktrace(1) support 81options STACK # stack(9) support 82options SYSVSHM # SYSV-style shared memory 83options SYSVMSG # SYSV-style message queues 84options SYSVSEM # SYSV-style semaphores 85options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions 86options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 87options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) 88options AUDIT # Security event auditing 89options MAC # TrustedBSD MAC Framework 90options KDTRACE_FRAME # Ensure frames are compiled in 91options KDTRACE_HOOKS # Kernel DTrace hooks 92options DDB_CTF # Kernel ELF linker loads CTF data 93options INCLUDE_CONFIG_FILE # Include this file in kernel 94options TMPFS # Temporary file system 95options CAPABILITY_MODE # Capsicum capability mode 96options CAPABILITIES # Capsicum capabilities 97 98# Debugging for use in -current 99#options KDB # Enable kernel debugger support. 100options DDB # Support DDB. 101#options GDB # Support remote GDB. 102#options DEADLKRES # Enable the deadlock resolver 103#options INVARIANTS # Enable calls of extra sanity checking 104#options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS 105#options WITNESS # Enable checks to detect deadlocks and cycles 106#options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 107#options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones 108 109# Make an SMP-capable kernel by default 110options SMP # Symmetric MultiProcessor Kernel 111 112options ROOTDEVNAME=\"ufs:da0s2a\" # Default root filesystem. 113 114# ATA/SCSI peripherals 115device scbus # SCSI bus (required for ATA/SCSI) 116device ch # SCSI media changers 117device da # Direct Access (disks) 118device sa # Sequential Access (tape etc) 119device cd # CD 120device pass # Passthrough device (direct ATA/SCSI access) 121device ses # Enclosure Services (SES and SAF-TE) 122 123# Serial (COM) ports 124device uart # Generic UART driver 125 126# On-board Cavium Octeon Ethernet. 127# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! 128device octe 129 130# Cavium Octeon management Ethernet. 131device octm 132 133# Switch PHY support for the octe driver. These currently present a VLAN per 134# physical port, but may eventually provide support for DSA or similar instead. 135#device mv88e61xxphy # Marvell 88E61XX 136 137# Wireless NIC cards 138device wlan # 802.11 support 139options IEEE80211_DEBUG # enable debug msgs 140options IEEE80211_SUPPORT_MESH # enable 802.11s draft support 141device wlan_wep # 802.11 WEP support 142device wlan_ccmp # 802.11 CCMP support 143device wlan_tkip # 802.11 TKIP support 144device wlan_amrr # AMRR transmit rate control algorithm 145#device ath # Atheros NIC's 146#device ath_pci # Atheros pci/cardbus glue 147#device ath_hal # pci/cardbus chip support 148#device ath_rate_sample # SampleRate tx rate control for ath 149 150# Pseudo devices. 151device loop # Network loopback 152device ether # Ethernet support 153device vlan # 802.1Q VLAN support 154device tuntap # Packet tunnel. 155device md # Memory "disks" 156device gif # IPv6 and IPv4 tunneling 157device firmware # firmware assist module 158 159# The `bpf' device enables the Berkeley Packet Filter. 160# Be aware of the administrative consequences of enabling this! 161# Note that 'bpf' is required for DHCP. 162device bpf # Berkeley packet filter 163 164# Hardware watchdog support. 165#device octeon_wdog # Octeon hardware watchdog 166 167# USB support 168options USB_DEBUG # enable debug msgs 169device octusb # Cavium Octeon on-board USB interface (USB 2.0) 170device uhci # UHCI PCI->USB interface 171device ohci # OHCI PCI->USB interface 172device ehci # EHCI PCI->USB interface (USB 2.0) 173device usb # USB Bus (required) 174#device udbp # USB Double Bulk Pipe devices 175device uhid # "Human Interface Devices" 176device ulpt # Printer 177device umass # Disks/Mass storage - Requires scbus and da 178device ums # Mouse 179device urio # Diamond Rio 500 MP3 player 180# USB Serial devices 181device u3g # USB-based 3G modems (Option, Huawei, Sierra) 182device uark # Technologies ARK3116 based serial adapters 183device ubsa # Belkin F5U103 and compatible serial adapters 184device uftdi # For FTDI usb serial adapters 185device uipaq # Some WinCE based devices 186device uplcom # Prolific PL-2303 serial adapters 187device uslcom # SI Labs CP2101/CP2102 serial adapters 188device uvisor # Visor and Palm devices 189device uvscom # USB serial support for DDI pocket's PHS 190# USB Ethernet, requires miibus 191device miibus # MII bus support 192device aue # ADMtek USB Ethernet 193device axe # ASIX Electronics USB Ethernet 194device cdce # Generic USB over Ethernet 195device cue # CATC USB Ethernet 196device kue # Kawasaki LSI USB Ethernet 197device rue # RealTek RTL8150 USB Ethernet 198device udav # Davicom DM9601E USB 199# USB Wireless 200device rum # Ralink Technology RT2501USB wireless NICs 201device uath # Atheros AR5523 wireless NICs 202device ural # Ralink Technology RT2500USB wireless NICs 203device zyd # ZyDAS zd1211/zd1211b wireless NICs 204 205# crypto subsystem 206device crypto # core crypto support (required for IPSEC) 207device cryptodev # /dev/crypto for access to h/w 208device cryptocteon # Octeon coprocessor 2 crypto offload 209 210# GPIO support 211#device gpio 212 213# PMC support 214#device hwpmc 215 216# HID support 217options HID_DEBUG # enable debug msgs 218device hid # Generic HID support 219