1#
2# AR724X -- Kernel configuration file for FreeBSD/MIPS for Atheros 724x systems
3#
4# This includes all the common drivers for the AR724x boards.
5# Since the AR724x boards tend to have minimal flash (sometimes 4MB!),
6# the majority of the kernel framework will be built as modules.
7#
8# $FreeBSD$
9#
10
11machine		mips mips
12ident		AR724X_BASE
13cpu		CPU_MIPS24K
14makeoptions	KERNLOADADDR=0x80050000
15options 	HZ=1000
16options 	HWPMC_HOOKS
17
18files		"../atheros/files.ar71xx"
19
20# For now, hints are per-board.
21
22hints		"AR724X_BASE.hints"
23
24makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
25
26# Build these as modules so small platform builds will have the
27# modules already built.
28makeoptions	MODULES_OVERRIDE="gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci hwpmc cam"
29
30# For small memory footprints
31options 	VM_KMEM_SIZE_SCALE=1
32
33options 	DDB
34options 	KDB
35
36options 	SCHED_4BSD		#4BSD scheduler
37options 	INET			#InterNETworking
38#options 	INET6			# IPv6
39#options 	NFSCL			#Network Filesystem Client
40options 	PSEUDOFS		#Pseudo-filesystem framework
41options 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
42
43#options 	NFS_LEGACYRPC
44# Debugging for use in -current
45options 	INVARIANTS
46options 	INVARIANT_SUPPORT
47options 	WITNESS
48options 	WITNESS_SKIPSPIN
49options 	DEBUG_REDZONE
50options 	DEBUG_MEMGUARD
51
52# Don't include the SCSI/CAM strings in the default build
53options 	SCSI_NO_SENSE_STRINGS
54options 	SCSI_NO_OP_STRINGS
55
56# .. And no sysctl strings
57options         NO_SYSCTL_DESCR
58
59options         FFS                     #Berkeley Fast Filesystem
60options 	NO_FFS_SNAPSHOT
61# options         SOFTUPDATES             #Enable FFS soft updates support
62# options         UFS_ACL                 #Support for access control lists
63# options         UFS_DIRHASH             #Improve performance on big directories
64# options 	MSDOSFS			# Read MSDOS filesystems; useful for USB/CF
65
66device		pci
67device		ar724x_pci
68
69# 802.11 framework
70options 	IEEE80211_DEBUG
71options 	IEEE80211_ALQ
72options 	IEEE80211_SUPPORT_MESH
73options 	IEEE80211_SUPPORT_SUPERG
74options 	IEEE80211_SUPPORT_TDMA
75options 	IEEE80211_AMPDU_AGE
76#device		wlan            # 802.11 support
77#device		wlan_wep        # 802.11 WEP support
78#device		wlan_ccmp       # 802.11 CCMP support
79#device		wlan_tkip       # 802.11 TKIP support
80#device		wlan_xauth	# 802.11 hostap support
81
82# Atheros wireless NICs
83#device		ath             # Atheros interface support
84#device		ath_pci		# Atheros PCI/Cardbus bus
85options 	ATH_DEBUG
86options 	ATH_DIAGAPI
87options 	ATH_ENABLE_11N
88options 	AH_DEBUG
89options 	AH_DEBUG_ALQ
90options 	ALQ
91#device		ath_hal
92option		AH_SUPPORT_AR5416
93#device		ath_rate_sample
94option		AH_RXCFG_SDMAMW_4BYTES
95option		AH_AR5416_INTERRUPT_MITIGATION
96# There's no DFS radar detection support yet so this won't actually
97# detect radars.  It however does enable the rest of the channel change
98# machinery so DFS can be debugged.
99option		ATH_ENABLE_DFS
100
101device		mii
102device		arge
103options 	ARGE_DEBUG	# Enable if_arge debugging for now
104
105#device		usb
106options 	USB_EHCI_BIG_ENDIAN_DESC        # handle big-endian byte order
107options 	USB_DEBUG
108options 	USB_HOST_ALIGN=32		# AR724X (MIPS in general?) requires this
109#device		ehci
110
111#device		umass
112
113device		scbus
114device		da
115
116# On-board SPI flash
117device		spibus
118device		ar71xx_spi
119device		mx25l
120device		ar71xx_wdog
121
122device		uart
123device		uart_ar71xx
124
125device		ar71xx_apb
126
127device		loop
128device		ether
129device		md
130device		bpf
131#device		random
132#device		if_bridge
133#device		gif		# ip[46] in ip[46] tunneling protocol
134#device		gre		# generic encapsulation - only for IPv4 in IPv4 though atm
135
136# Enable GPIO
137#device		gpio
138#device		gpioled
139