1a9643ea8Slogwang# 2a9643ea8Slogwang# PB92 -- Kernel configuration file for FreeBSD/mips for Atheros PB92 reference 3a9643ea8Slogwang# board (AR7242) 4a9643ea8Slogwang# 5a9643ea8Slogwang# $FreeBSD$ 6a9643ea8Slogwang# 7a9643ea8Slogwang 8a9643ea8Slogwangident PB92 9a9643ea8Slogwang# XXX The default load address in the Uboot environment is 0x80010000 10a9643ea8Slogwangmakeoptions KERNLOADADDR=0x80050000 11a9643ea8Slogwangoptions HZ=1000 12a9643ea8Slogwang 13a9643ea8Slogwang# The PB92 has 32mb of RAM; hard-code that 14a9643ea8Slogwangoptions AR71XX_REALMEM=32*1024*1024 15a9643ea8Slogwang 16a9643ea8Slogwang# It's UBOOT, not Redboot - without this, things will hang at startup 17a9643ea8Slogwangoptions AR71XX_ENV_UBOOT 18a9643ea8Slogwang 19a9643ea8Slogwang# We have to build most things as modules rather than in the kernel. 20a9643ea8Slogwang# The PB92 has 4MB of SPI flash and the default kernel "partition" 21a9643ea8Slogwang# is only 892KiB. In order to try and squeeze into that (so people 22a9643ea8Slogwang# who already are using it without modifying the default flash layout) 23a9643ea8Slogwang# we need to cut down on a lot of things. 24a9643ea8Slogwang 25a9643ea8Slogwangmakeoptions MODULES_OVERRIDE="ath ath_pci ath_ahb bridgestp if_bridge if_gif if_gre wlan wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt wlan_tkip wlan_wep wlan_xauth usb ar71xx" 26a9643ea8Slogwang 27a9643ea8Slogwanghints "PB92.hints" 28a9643ea8Slogwanginclude "../atheros/std.ar71xx" 29a9643ea8Slogwang 30a9643ea8Slogwangmakeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 31a9643ea8Slogwangmakeoptions MODULES_OVERRIDE="" 32a9643ea8Slogwang 33a9643ea8Slogwangoptions DDB 34a9643ea8Slogwangoptions KDB 35a9643ea8Slogwang 36a9643ea8Slogwangoptions SCHED_4BSD #4BSD scheduler 37a9643ea8Slogwangoptions INET #InterNETworking 38a9643ea8Slogwang# Can't do IPv6 - it just doesn't fit. 39a9643ea8Slogwang# options INET6 40*22ce4affSfengbojiangoptions TCP_HHOOK # hhook(9) framework for TCP 41a9643ea8Slogwang# options NFSCL #Network Filesystem Client 42a9643ea8Slogwangoptions PSEUDOFS #Pseudo-filesystem framework 43a9643ea8Slogwangoptions _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 44a9643ea8Slogwangoptions ALQ 45a9643ea8Slogwang 46a9643ea8Slogwang# Debugging for use in -current 47a9643ea8Slogwangoptions DEADLKRES 48a9643ea8Slogwangoptions INVARIANTS 49a9643ea8Slogwangoptions INVARIANT_SUPPORT 50a9643ea8Slogwangoptions WITNESS 51a9643ea8Slogwangoptions WITNESS_SKIPSPIN 52a9643ea8Slogwangoptions FFS #Berkeley Fast Filesystem 53a9643ea8Slogwang#options SOFTUPDATES #Enable FFS soft updates support 54a9643ea8Slogwang#options UFS_ACL #Support for access control lists 55a9643ea8Slogwang#options UFS_DIRHASH #Improve performance on big directories 56a9643ea8Slogwang 57a9643ea8Slogwang# Support uncompress lzma rootfs 58*22ce4affSfengbojiangdevice xz 59a9643ea8Slogwangoptions GEOM_UZIP 60a9643ea8Slogwangoptions ROOTDEVNAME=\"ufs:/dev/map/rootfs.uzip\" 61a9643ea8Slogwang 62a9643ea8Slogwang# PCI bus 63a9643ea8Slogwangdevice pci 64a9643ea8Slogwangdevice ar724x_pci 65a9643ea8Slogwang 66a9643ea8Slogwang# NVRAM U-Boot Environment -> Kernel environment 67a9643ea8Slogwangdevice nvram2env 68a9643ea8Slogwang 69a9643ea8Slogwang# Wireless NIC cards 70a9643ea8Slogwangoptions IEEE80211_DEBUG 71a9643ea8Slogwangoptions IEEE80211_SUPPORT_MESH 72a9643ea8Slogwangoptions IEEE80211_SUPPORT_TDMA 73a9643ea8Slogwangoptions IEEE80211_ALQ 74a9643ea8Slogwang#device wlan # 802.11 support 75a9643ea8Slogwang#device wlan_wep # 802.11 WEP support 76a9643ea8Slogwang#device wlan_ccmp # 802.11 CCMP support 77a9643ea8Slogwang#device wlan_tkip # 802.11 TKIP support 78a9643ea8Slogwang#device wlan_xauth # 802.11 hostap support 79a9643ea8Slogwang 80a9643ea8Slogwang#device ath # Atheros pci/cardbus NIC's 81a9643ea8Slogwang#device ath_pci # PCI/PCIe bus glue 82a9643ea8Slogwangoptions ATH_DEBUG 83a9643ea8Slogwangoptions ATH_ENABLE_11N 84a9643ea8Slogwangoptions ATH_DIAGAPI 85a9643ea8Slogwang 86a9643ea8Slogwang# device ath_hal 87a9643ea8Slogwangoptions AH_DEBUG 88a9643ea8Slogwangoptions AH_DEBUG_ALQ 89a9643ea8Slogwang 90a9643ea8Slogwang# device ath_rate_sample 91a9643ea8Slogwang 92a9643ea8Slogwangdevice mii 93a9643ea8Slogwangdevice arge 94a9643ea8Slogwang 95a9643ea8Slogwang# USB devices - PB92 has EHCI only 96a9643ea8Slogwang 97a9643ea8Slogwang#device usb 98a9643ea8Slogwangoptions USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order 99a9643ea8Slogwangoptions USB_DEBUG 100a9643ea8Slogwangoptions USB_HOST_ALIGN=32 101a9643ea8Slogwang#device ehci 102a9643ea8Slogwang 103a9643ea8Slogwang# Mass storage 104a9643ea8Slogwang#device scbus 105a9643ea8Slogwang#device umass 106a9643ea8Slogwang#device da 107a9643ea8Slogwang 108a9643ea8Slogwang# Read MSDOS formatted disks 109a9643ea8Slogwang# options MSDOSFS 110a9643ea8Slogwang 111a9643ea8Slogwang# GPIO Bus 112a9643ea8Slogwang#device gpio 113a9643ea8Slogwang#device gpioled 114a9643ea8Slogwang 115a9643ea8Slogwang# SPI and flash 116a9643ea8Slogwangdevice spibus 117a9643ea8Slogwangdevice ar71xx_spi 118a9643ea8Slogwangdevice mx25l 119a9643ea8Slogwang 120a9643ea8Slogwang# The flash is statically partitioned; add in that 121a9643ea8Slogwangdevice geom_map 122a9643ea8Slogwang 123a9643ea8Slogwangdevice ar71xx_wdog 124a9643ea8Slogwang 125a9643ea8Slogwang# Serial 126a9643ea8Slogwangdevice uart 127a9643ea8Slogwangdevice uart_ar71xx 128a9643ea8Slogwang 129a9643ea8Slogwangdevice ar71xx_apb 130a9643ea8Slogwang 131a9643ea8Slogwang# Network twiddling 132a9643ea8Slogwangdevice loop 133a9643ea8Slogwangdevice ether 134a9643ea8Slogwang#device md 135a9643ea8Slogwang#device bpf 136a9643ea8Slogwang#device if_bridge 137