2014-12-21 11:37:00 +00:00
|
|
|
#
|
2012-08-15 06:31:32 +00:00
|
|
|
# BEAGLEBONE -- Custom configuration for the BeagleBone ARM development
|
2013-05-17 15:20:45 +00:00
|
|
|
# platforms, check out http://www.beagleboard.org/bone and
|
|
|
|
# http://www.beagleboard.org/black. This kernel config file is used for the
|
|
|
|
# original BeagleBone and the BeagleBone Black.
|
2012-08-15 06:31:32 +00:00
|
|
|
#
|
2014-12-21 11:37:00 +00:00
|
|
|
# For more information on this file, please read the config(5) manual page,
|
|
|
|
# and/or the handbook section on Kernel Configuration Files:
|
2012-08-15 06:31:32 +00:00
|
|
|
#
|
|
|
|
# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
|
|
|
|
#
|
|
|
|
# The handbook is also available locally in /usr/share/doc/handbook
|
|
|
|
# if you've installed the doc distribution, otherwise always see the
|
|
|
|
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
|
|
|
|
# latest information.
|
|
|
|
#
|
|
|
|
# An exhaustive list of options and more detailed explanations of the
|
|
|
|
# device lines is also present in the ../../conf/NOTES and NOTES files.
|
|
|
|
# If you are in doubt as to the purpose or necessity of a line, check first
|
|
|
|
# in NOTES.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
ident BEAGLEBONE
|
|
|
|
|
2015-05-05 16:09:25 +00:00
|
|
|
include "std.armv6"
|
2014-10-13 16:16:32 +00:00
|
|
|
include "../ti/am335x/std.am335x"
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2015-03-09 21:54:27 +00:00
|
|
|
makeoptions MODULES_EXTRA="dtb/am335x"
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2015-02-10 19:41:30 +00:00
|
|
|
# DTrace support
|
2015-03-06 16:23:30 +00:00
|
|
|
options KDTRACE_HOOKS # Kernel DTrace hooks
|
|
|
|
options DDB_CTF # all architectures - kernel ELF linker loads CTF data
|
|
|
|
makeoptions WITH_CTF=1
|
2015-03-09 21:54:27 +00:00
|
|
|
makeoptions MODULES_EXTRA+="opensolaris dtrace dtrace/lockstat dtrace/profile dtrace/fbt"
|
2015-02-10 19:41:30 +00:00
|
|
|
|
2012-09-16 19:48:48 +00:00
|
|
|
options HZ=100
|
2014-03-16 15:22:46 +00:00
|
|
|
options SCHED_4BSD # 4BSD scheduler
|
2014-05-17 18:35:22 +00:00
|
|
|
options PLATFORM
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-05-25 10:17:26 +00:00
|
|
|
# Debugging for use in -current
|
2014-03-16 15:22:46 +00:00
|
|
|
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
|
2012-09-16 19:48:48 +00:00
|
|
|
options BREAK_TO_DEBUGGER
|
2014-03-16 15:22:46 +00:00
|
|
|
#options VERBOSE_SYSINIT # Enable verbose sysinit messages
|
2014-12-21 11:37:00 +00:00
|
|
|
options KDB # Enable kernel debugger support
|
|
|
|
# For minimum debugger support (stable branch) use:
|
|
|
|
#options KDB_TRACE # Print a stack trace for a panic
|
|
|
|
# For full debugger support use this instead:
|
2014-03-16 15:22:46 +00:00
|
|
|
options DDB # Enable the kernel debugger
|
|
|
|
options INVARIANTS # Enable calls of extra sanity checking
|
|
|
|
options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
|
|
|
|
options WITNESS # Enable checks to detect deadlocks and cycles
|
|
|
|
options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
|
2012-09-16 19:48:48 +00:00
|
|
|
#options DIAGNOSTIC
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-12-21 11:37:00 +00:00
|
|
|
# NFS server support
|
2014-12-21 11:55:40 +00:00
|
|
|
#options NFSD
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-12-21 11:37:00 +00:00
|
|
|
# NFS root from boopt/dhcp
|
|
|
|
#options BOOTP
|
2012-09-16 19:48:48 +00:00
|
|
|
#options BOOTP_NFSROOT
|
|
|
|
#options BOOTP_COMPAT
|
|
|
|
#options BOOTP_NFSV3
|
|
|
|
#options BOOTP_WIRED_TO=cpsw0
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-12-21 11:37:00 +00:00
|
|
|
# Boot device is 2nd slice on MMC/SD card
|
|
|
|
options ROOTDEVNAME=\"ufs:mmcsd0s2\"
|
|
|
|
|
2014-05-25 10:17:26 +00:00
|
|
|
# MMC/SD/SDIO Card slot support
|
2012-08-15 06:31:32 +00:00
|
|
|
device mmc # mmc/sd bus
|
|
|
|
device mmcsd # mmc/sd flash cards
|
2013-08-20 12:33:35 +00:00
|
|
|
device sdhci # mmc/sd host controller
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-05-25 10:17:26 +00:00
|
|
|
# I2C support
|
|
|
|
device iicbus
|
|
|
|
device iic
|
|
|
|
device ti_i2c
|
|
|
|
device am335x_pmic # AM335x Power Management IC (TPC65217)
|
|
|
|
|
2015-01-12 03:23:16 +00:00
|
|
|
device am335x_rtc # RTC support (power management only)
|
|
|
|
|
2012-08-15 06:31:32 +00:00
|
|
|
# Console and misc
|
|
|
|
device uart
|
|
|
|
device uart_ns8250
|
|
|
|
device pty
|
|
|
|
device snp
|
|
|
|
device md
|
|
|
|
device random # Entropy device
|
|
|
|
|
|
|
|
# GPIO
|
|
|
|
device gpio
|
2014-02-13 18:51:37 +00:00
|
|
|
device gpioled
|
2012-08-15 06:31:32 +00:00
|
|
|
|
2014-03-24 20:06:27 +00:00
|
|
|
# ADC support
|
|
|
|
device ti_adc
|
|
|
|
|
2014-10-18 16:59:21 +00:00
|
|
|
# Watchdog support
|
|
|
|
# If we don't enable the watchdog driver, the system could potentially
|
|
|
|
# reboot automatically because the boot loader might have enabled the
|
|
|
|
# watchdog.
|
|
|
|
device ti_wdt
|
|
|
|
|
2014-10-18 17:00:55 +00:00
|
|
|
# TI Programmable Realtime Unit support
|
|
|
|
device ti_pruss
|
|
|
|
|
|
|
|
# Mailbox support
|
|
|
|
device ti_mbox
|
|
|
|
|
2012-08-15 06:31:32 +00:00
|
|
|
# USB support
|
|
|
|
device usb
|
2014-05-25 10:17:26 +00:00
|
|
|
options USB_HOST_ALIGN=64 # Align usb buffers to cache line size.
|
2012-09-16 19:48:48 +00:00
|
|
|
options USB_DEBUG
|
|
|
|
#options USB_REQ_DEBUG
|
|
|
|
#options USB_VERBOSE
|
2012-08-15 06:31:32 +00:00
|
|
|
device musb
|
|
|
|
device umass
|
2014-09-01 03:49:21 +00:00
|
|
|
device scbus # SCSI bus (required for ATA/SCSI)
|
2012-08-15 06:31:32 +00:00
|
|
|
device da # Direct Access (disks)
|
|
|
|
|
|
|
|
# Ethernet
|
|
|
|
device loop
|
|
|
|
device ether
|
|
|
|
device mii
|
|
|
|
device smscphy
|
|
|
|
device cpsw
|
|
|
|
device bpf
|
|
|
|
|
2014-05-25 10:17:26 +00:00
|
|
|
# USB Ethernet support, requires miibus
|
2012-08-15 06:31:32 +00:00
|
|
|
device miibus
|
|
|
|
device axe # ASIX Electronics USB Ethernet
|
|
|
|
|
2013-07-07 04:24:38 +00:00
|
|
|
# Device mode support and USFS template
|
2014-03-16 15:22:46 +00:00
|
|
|
device usb_template # Control of the gadget
|
2013-07-07 04:24:38 +00:00
|
|
|
device usfs
|
|
|
|
|
2012-08-15 06:31:32 +00:00
|
|
|
# Flattened Device Tree
|
2014-12-21 11:37:00 +00:00
|
|
|
options FDT # Configure using FDT/DTB data
|