2 # GENERIC -- Generic kernel configuration file for FreeBSD/arm64
4 # For more information on this file, please read the config(5) manual page,
5 # and/or the handbook section on Kernel Configuration Files:
7 # https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
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
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
24 makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
25 makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support
27 options SCHED_ULE # ULE scheduler
28 options PREEMPTION # Enable kernel thread preemption
29 options VIMAGE # Subsystem virtualization, e.g. VNET
30 options INET # InterNETworking
31 options INET6 # IPv6 communications protocols
32 options IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5
33 options TCP_HHOOK # hhook(9) framework for TCP
34 options TCP_OFFLOAD # TCP offload
35 options TCP_RFC7413 # TCP Fast Open
36 options SCTP # Stream Control Transmission Protocol
37 options FFS # Berkeley Fast Filesystem
38 options SOFTUPDATES # Enable FFS soft updates support
39 options UFS_ACL # Support for access control lists
40 options UFS_DIRHASH # Improve performance on big directories
41 options UFS_GJOURNAL # Enable gjournal-based UFS journaling
42 options QUOTA # Enable disk quotas for UFS
43 options MD_ROOT # MD is a potential root device
44 options NFSCL # Network Filesystem Client
45 options NFSD # Network Filesystem Server
46 options NFSLOCKD # Network Lock Manager
47 options NFS_ROOT # NFS usable as /, requires NFSCL
48 options MSDOSFS # MSDOS Filesystem
49 options CD9660 # ISO 9660 Filesystem
50 options PROCFS # Process filesystem (requires PSEUDOFS)
51 options PSEUDOFS # Pseudo-filesystem framework
52 options GEOM_RAID # Soft RAID functionality.
53 options GEOM_LABEL # Provides labelization
54 options COMPAT_FREEBSD32 # Compatible with FreeBSD/arm
55 options COMPAT_FREEBSD11 # Compatible with FreeBSD11
56 options COMPAT_FREEBSD12 # Compatible with FreeBSD12
57 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
58 options KTRACE # ktrace(1) support
59 options STACK # stack(9) support
60 options SYSVSHM # SYSV-style shared memory
61 options SYSVMSG # SYSV-style message queues
62 options SYSVSEM # SYSV-style semaphores
63 options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
64 options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
65 options KBD_INSTALL_CDEV # install a CDEV entry in /dev
66 options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
67 options AUDIT # Security event auditing
68 options CAPABILITY_MODE # Capsicum capability mode
69 options CAPABILITIES # Capsicum capabilities
70 options MAC # TrustedBSD MAC Framework
71 options KDTRACE_FRAME # Ensure frames are compiled in
72 options KDTRACE_HOOKS # Kernel DTrace hooks
73 options VFP # Floating-point support
74 options RACCT # Resource accounting framework
75 options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
76 options RCTL # Resource limits
80 # Debugging support. Always need this:
81 options KDB # Enable kernel debugger support.
82 options KDB_TRACE # Print a stack trace for a panic.
83 # For full debugger support use (turn off in stable branch):
84 options DDB # Support DDB.
85 #options GDB # Support remote GDB.
86 options DEADLKRES # Enable the deadlock resolver
87 options INVARIANTS # Enable calls of extra sanity checking
88 options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
89 options WITNESS # Enable checks to detect deadlocks and cycles
90 options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
91 options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
92 options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence
93 options USB_DEBUG # enable debug msgs
94 options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default
97 #options COVERAGE # Generic kernel coverage. Used by KCOV
98 #options KCOV # Kernel Coverage Sanitizer
99 # Warning: KUBSAN can result in a kernel too large for loader to load
100 #options KUBSAN # Kernel Undefined Behavior Sanitizer
102 # Kernel dump features.
103 options EKCD # Support for encrypted kernel dumps
104 options GZIO # gzip-compressed kernel and user dumps
105 options ZSTDIO # zstd-compressed kernel and user dumps
106 options NETDUMP # netdump(4) client support
109 options SOC_ALLWINNER_A64
110 options SOC_ALLWINNER_H5
111 options SOC_CAVM_THUNDERX
112 options SOC_HISI_HI6220
113 options SOC_BRCM_BCM2837
114 options SOC_MARVELL_8K
115 options SOC_ROCKCHIP_RK3328
116 options SOC_ROCKCHIP_RK3399
117 options SOC_XILINX_ZYNQ
122 # Annapurna Alpine drivers
123 device al_ccu # Alpine Cache Coherency Unit
124 device al_nb_service # Alpine North Bridge Service
125 device al_iofic # I/O Fabric Interrupt Controller
126 device al_serdes # Serializer/Deserializer
127 device al_udma # Universal DMA
129 # Qualcomm Snapdragon drivers
130 device qcom_gcc # Global Clock Controller
139 # CPU frequency control
144 device al_pci # Annapurna Alpine PCI-E
145 options PCI_HP # PCI-Express native HotPlug
146 options PCI_IOV # PCI SR-IOV support
148 # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
150 device em # Intel PRO/1000 Gigabit Ethernet Family
151 device ix # Intel 10Gb Ethernet Family
156 device miibus # MII bus support
157 device awg # Allwinner EMAC Gigabit Ethernet
158 device axgbe # AMD Opteron A1100 integrated NIC
159 device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet
160 device neta # Marvell Armada 370/38x/XP/3700 NIC
161 device smc # SMSC LAN91C111
162 device vnic # Cavium ThunderX NIC
163 device al_eth # Annapurna Alpine Ethernet NIC
164 device dwc_rk # Rockchip Designware
166 # Etherswitch devices
167 device etherswitch # Enable etherswitch support
168 device miiproxy # Required for etherswitch
169 device e6000sw # Marvell mv88e6085 based switches
176 # ATA/SCSI peripherals
177 device pass # Passthrough device (direct ATA/SCSI access)
179 # NVM Express (NVMe) support
180 device nvme # base NVMe driver
181 options NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver
182 device nvd # expose NVMe namespaces as disks, depends on nvme
184 # MMC/SD/SDIO Card slot support
186 device sdhci_xenon # Marvell Xenon SD/MMC controller
187 device aw_mmc # Allwinner SD/MMC controller
188 device mmc # mmc/sd bus
189 device mmcsd # mmc/sd flash cards
193 device uart # Generic UART driver
194 device uart_msm # Qualcomm MSM UART driver
195 device uart_mu # RPI3 aux port
196 device uart_mvebu # Armada 3700 UART driver
197 device uart_ns8250 # ns8250-type UART driver
202 device aw_ehci # Allwinner EHCI USB interface (USB 2.0)
203 device aw_usbphy # Allwinner USB PHY
204 device dwcotg # DWC OTG controller
205 device ohci # OHCI USB interface
206 device ehci # EHCI USB interface (USB 2.0)
207 device ehci_mv # Marvell EHCI USB interface
208 device xhci # XHCI USB interface (USB 3.0)
209 device usb # USB Bus (required)
210 device ukbd # Keyboard
211 device umass # Disks/Mass storage - Requires scbus and da
213 # USB ethernet support
226 device a37x0_gpio # Marvell Armada 37x0 GPIO controller
227 device aw_gpio # Allwinner GPIO controller
232 device mv_gpio # Marvell GPIO controller
233 device mvebu_pinctrl # Marvell Pinmux Controller
234 device rk_gpio # RockChip GPIO Controller
235 device rk_pinctrl # RockChip Pinmux Controller
238 device aw_rsb # Allwinner Reduced Serial Bus
239 device bcm2835_bsc # Broadcom BCM283x I2C bus
242 device twsi # Allwinner I2C controller
243 device rk_i2c # RockChip I2C controller
244 device syr827 # Silergy SYR827 PMIC
245 device sy8106a # SY8106A Buck Regulator
247 # Clock and reset controllers
248 device aw_ccu # Allwinner clock controller
250 # Interrupt controllers
251 device aw_nmi # Allwinner NMI support
252 device mv_cp110_icu # Marvell CP110 ICU
253 device mv_ap806_gicp # Marvell AP806 GICP
255 # Real-time clock support
256 device aw_rtc # Allwinner Real-time Clock
257 device mv_rtc # Marvell Real-time Clock
259 # Watchdog controllers
260 device aw_wdog # Allwinner Watchdog
262 # Power management controllers
263 device axp81x # X-Powers AXP81x PMIC
264 device rk805 # RockChip RK805 PMIC
267 device aw_sid # Allwinner Secure ID EFUSE
270 device aw_thermal # Allwinner Thermal Sensor Controller
271 device mv_thermal # Marvell Thermal Sensor Controller
275 device bcm2835_spi # Broadcom BCM283x SPI bus
288 device evdev # input event device support
289 options EVDEV_SUPPORT # evdev support in legacy drivers
290 device uinput # install /dev/uinput cdev
294 device crypto # core crypto support
295 device loop # Network loopback
296 device ether # Ethernet support
297 device vlan # 802.1Q VLAN support
298 device tuntap # Packet tunnel.
299 device md # Memory "disks"
300 device gif # IPv6 and IPv4 tunneling
301 device firmware # firmware assist module
302 options EFIRT # EFI Runtime Services
304 # EXT_RESOURCES pseudo devices
305 options EXT_RESOURCES
314 # The `bpf' device enables the Berkeley Packet Filter.
315 # Be aware of the administrative consequences of enabling this!
316 # Note that 'bpf' is required for DHCP.
317 device bpf # Berkeley packet filter
319 # Chip-specific errata
320 options THUNDERX_PASS_1_1_ERRATA
326 makeoptions MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi"