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: src/sys/mips/conf/AR724X_BASE,v 1.7 2012/11/17 05:10:20 svnexp Exp $
9: #
10:
11: machine mips mips
12: ident ELWIX_ALFA_NX
13: cpu CPU_MIPS4KC
14: makeoptions KERNLOADADDR=0x80002000
15: options HZ=1000
16: options HWPMC_HOOKS
17:
18: device nvram2env
19:
20: options AR71XX_ENV_UBOOT
21: options AR71XX_ENV_REDBOOT
22: options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash
23: options ATH_EEPROM_FIRMWARE # Use EEPROM from flash
24: device firmware # Used by the above
25:
26: device etherswitch
27: device arswitch
28:
29: files "../atheros/files.ar71xx"
30:
31: # For now, hints are per-board.
32:
33: hints "ALFA_NX.hints"
34:
35: makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
36:
37: # Build these as modules so small platform builds will have the
38: # modules already built.
39: #makeoptions MODULES_OVERRIDE="random 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 zlib"
40:
41: options DDB
42: #options KDB
43:
44: options SCHED_4BSD #4BSD scheduler
45: options INET #InterNETworking
46: options INET6 # IPv6
47: options NFSCL #Network Filesystem Client
48: options PSEUDOFS #Pseudo-filesystem framework
49: options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
50:
51: #options NFS_LEGACYRPC
52: # Debugging for use in -current
53: #options INVARIANTS
54: #options INVARIANT_SUPPORT
55: #options WITNESS
56: #options WITNESS_SKIPSPIN
57: #options DEBUG_REDZONE
58: #options DEBUG_MEMGUARD
59:
60: # Don't include the SCSI/CAM strings in the default build
61: #options SCSI_NO_SENSE_STRINGS
62: #options SCSI_NO_OP_STRINGS
63:
64: # .. And no sysctl strings
65: #options NO_SYSCTL_DESCR
66:
67: options FFS #Berkeley Fast Filesystem
68: options NO_FFS_SNAPSHOT
69: # options SOFTUPDATES #Enable FFS soft updates support
70: # options UFS_ACL #Support for access control lists
71: # options UFS_DIRHASH #Improve performance on big directories
72: # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF
73:
74: device pci
75: device ar724x_pci
76:
77: options MD_ROOT # MD is a potential root device
78: options MD_ROOT_SIZE=5120
79:
80: #options NFSD # New Network Filesystem Server
81: options NFSCLIENT #Network File System client
82: #options NFSSERVER #Network File System server
83: #options NFSLOCKD # Network Lock Manager
84: #options NFS_ROOT # NFS usable as /, requires NFSCL
85: #options BOOTP # Use BOOTP to obtain IP address/hostname
86: # Requires NFSCLIENT and NFS_ROOT
87: #options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info
88: #options BOOTP_NFSV3 # Use NFS v3 to NFS mount root
89: #options BOOTP_COMPAT # Workaround for broken bootp daemons.
90: #options BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
91: options ROOTDEVNAME=\"ufs:/dev/md0.uzip\"
92:
93: options GEOM_LABEL # Provides labelization
94: options GEOM_UZIP
95: options GEOM_UNCOMPRESS
96: device geom_redboot
97: device geom_map # to get access to the SPI flash partitions
98: device geom_uncompress # compressed in-memory filesystem hackery!
99: device geom_uzip # compressed in-memory filesystem support
100:
101: # 802.11 framework
102: options IEEE80211_DEBUG
103: options IEEE80211_ALQ
104: options IEEE80211_SUPPORT_MESH
105: options IEEE80211_SUPPORT_SUPERG
106: options IEEE80211_SUPPORT_TDMA
107: options IEEE80211_AMPDU_AGE
108: device wlan # 802.11 support
109: device wlan_wep # 802.11 WEP support
110: device wlan_ccmp # 802.11 CCMP support
111: device wlan_tkip # 802.11 TKIP support
112: device wlan_xauth # 802.11 hostap support
113: device wlan_acl
114: device wlan_amrr
115: device wlan_rssadapt
116:
117: # Atheros wireless NICs
118: device ath # Atheros interface support
119: device ath_pci # Atheros PCI/Cardbus bus
120: device ath_ahb
121: options ATH_DEBUG
122: options ATH_DIAGAPI
123: options ATH_ENABLE_11N
124: options AH_DEBUG
125: options AH_DEBUG_ALQ
126: options ALQ
127: device ath_hal
128: option AH_SUPPORT_AR5416
129: #option AH_SUPPORT_AR9130 # Makes other chipsets not function!
130: device ath_rate_sample
131: option AH_RXCFG_SDMAMW_4BYTES
132: option AH_AR5416_INTERRUPT_MITIGATION
133: # There's no DFS radar detection support yet so this won't actually
134: # detect radars. It however does enable the rest of the channel change
135: # machinery so DFS can be debugged.
136: #option ATH_ENABLE_DFS
137:
138: device mii
139: device arge
140: options ARGE_DEBUG # Enable if_arge debugging for now
141: options ARGE_MDIO # Export an MDIO bus separate from arge
142: device miiproxy # MDIO bus <-> MII PHY rendezvous
143:
144: #device usb
145: options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order
146: #options USB_DEBUG
147: options USB_HOST_ALIGN=32 # AR724X (MIPS in general?) requires this
148: #device ehci
149: #device ohci # OHCI PCI->USB interface
150:
151: #device umass
152:
153: device scbus
154: device da
155:
156: # On-board SPI flash
157: device spibus
158: device ar71xx_spi
159: device mx25l
160: device ar71xx_wdog
161:
162: device uart
163: device uart_ar71xx
164:
165: device loop
166: device ether
167: device md
168: device bpf
169: device random
170: device if_bridge
171: device gif # ip[46] in ip[46] tunneling protocol
172: #device gre # generic encapsulation - only for IPv4 in IPv4 though atm
173:
174: # Enable GPIO
175: device gpio
176: device gpioled
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>