1221259Sadrian# 2221259Sadrian# PB92 -- Kernel configuration file for FreeBSD/mips for Atheros PB92 reference 3221259Sadrian# board (AR7242) 4221259Sadrian# 5221259Sadrian# $FreeBSD: releng/10.2/sys/mips/conf/PB92 266331 2014-05-17 17:34:37Z ian $ 6221259Sadrian# 7221259Sadrian 8221259Sadrianident PB92 9221489Sadrian# XXX The default load address in the Uboot environment is 0x80010000 10221259Sadrianmakeoptions KERNLOADADDR=0x80050000 11266331Sianoptions HZ=1000 12221259Sadrian 13221489Sadrian# The PB92 has 32mb of RAM; hard-code that 14266331Sianoptions AR71XX_REALMEM=32*1024*1024 15221489Sadrian 16232845Sadrian# It's UBOOT, not Redboot - without this, things will hang at startup 17266331Sianoptions AR71XX_ENV_UBOOT 18232845Sadrian 19232845Sadrian# We have to build most things as modules rather than in the kernel. 20232845Sadrian# The PB92 has 4MB of SPI flash and the default kernel "partition" 21232845Sadrian# is only 892KiB. In order to try and squeeze into that (so people 22232845Sadrian# who already are using it without modifying the default flash layout) 23232845Sadrian# we need to cut down on a lot of things. 24232845Sadrian 25253845Sobrienmakeoptions MODULES_OVERRIDE="ath ath_pci ath_ahb bridgestp if_bridge if_gif if_gre random wlan wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt wlan_tkip wlan_wep wlan_xauth usb ar71xx" 26232845Sadrian 27221259Sadrianhints "PB92.hints" 28221259Sadrianinclude "../atheros/std.ar71xx" 29221259Sadrian 30221259Sadrianmakeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 31221259Sadrianmakeoptions MODULES_OVERRIDE="" 32221259Sadrian 33266331Sianoptions DDB 34266331Sianoptions KDB 35221259Sadrian 36266331Sianoptions SCHED_4BSD #4BSD scheduler 37266331Sianoptions INET #InterNETworking 38232845Sadrian# Can't do IPv6 - it just doesn't fit. 39266331Sian# options INET6 40266331Sian# options NFSCL #Network Filesystem Client 41266331Sianoptions PSEUDOFS #Pseudo-filesystem framework 42266331Sianoptions _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 43266331Sianoptions ALQ 44221259Sadrian 45221259Sadrian# Debugging for use in -current 46266331Sianoptions DEADLKRES 47266331Sianoptions INVARIANTS 48266331Sianoptions INVARIANT_SUPPORT 49266331Sianoptions WITNESS 50266331Sianoptions WITNESS_SKIPSPIN 51221259Sadrianoptions FFS #Berkeley Fast Filesystem 52221259Sadrian#options SOFTUPDATES #Enable FFS soft updates support 53221259Sadrian#options UFS_ACL #Support for access control lists 54221259Sadrian#options UFS_DIRHASH #Improve performance on big directories 55221259Sadrian 56232845Sadrian# Support uncompress lzma rootfs 57232845Sadriandevice geom_uncompress 58266331Sianoptions GEOM_UNCOMPRESS 59266331Sianoptions ROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\" 60221259Sadrian 61221489Sadrian# PCI bus 62221259Sadriandevice pci 63221259Sadriandevice ar724x_pci 64221259Sadrian 65221489Sadrian# NVRAM U-Boot Environment -> Kernel environment 66221489Sadriandevice nvram2env 67221489Sadrian 68221259Sadrian# Wireless NIC cards 69266331Sianoptions IEEE80211_DEBUG 70266331Sianoptions IEEE80211_SUPPORT_MESH 71266331Sianoptions IEEE80211_SUPPORT_TDMA 72266331Sianoptions IEEE80211_ALQ 73232845Sadrian#device wlan # 802.11 support 74232845Sadrian#device wlan_wep # 802.11 WEP support 75232845Sadrian#device wlan_ccmp # 802.11 CCMP support 76232845Sadrian#device wlan_tkip # 802.11 TKIP support 77232845Sadrian#device wlan_xauth # 802.11 hostap support 78221259Sadrian 79232845Sadrian#device ath # Atheros pci/cardbus NIC's 80232845Sadrian#device ath_pci # PCI/PCIe bus glue 81221259Sadrianoptions ATH_DEBUG 82266331Sianoptions ATH_ENABLE_11N 83266331Sianoptions ATH_DIAGAPI 84221259Sadrian 85232845Sadrian# device ath_hal 86266331Sianoptions AH_SUPPORT_AR5416 87266331Sianoptions AH_DEBUG 88266331Sianoptions AH_DEBUG_ALQ 89221259Sadrian 90232845Sadrian# device ath_rate_sample 91221259Sadrian 92221259Sadriandevice mii 93221259Sadriandevice arge 94221259Sadrian 95221489Sadrian# USB devices - PB92 has EHCI only 96221489Sadrian 97232845Sadrian#device usb 98266331Sianoptions USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order 99266331Sianoptions USB_DEBUG 100266331Sianoptions USB_HOST_ALIGN=32 101232845Sadrian#device ehci 102221259Sadrian 103221489Sadrian# Mass storage 104232845Sadrian#device scbus 105232845Sadrian#device umass 106232845Sadrian#device da 107221489Sadrian 108221489Sadrian# Read MSDOS formatted disks 109266331Sian# options MSDOSFS 110221489Sadrian 111221489Sadrian# GPIO Bus 112232845Sadrian#device gpio 113232845Sadrian#device gpioled 114221259Sadrian 115221489Sadrian# SPI and flash 116221259Sadriandevice spibus 117221259Sadriandevice ar71xx_spi 118221259Sadriandevice mx25l 119221259Sadrian 120221489Sadrian# The flash is statically partitioned; add in that 121221489Sadriandevice geom_map 122221489Sadrian 123221259Sadriandevice ar71xx_wdog 124221259Sadrian 125221489Sadrian# Serial 126221259Sadriandevice uart 127243177Sadriandevice uart_ar71xx 128221259Sadrian 129221489Sadrian# Network twiddling 130221259Sadriandevice loop 131221259Sadriandevice ether 132232845Sadrian#device md 133232845Sadrian#device bpf 134232845Sadrian#device random 135232845Sadrian#device if_bridge 136