Skip to content

Instantly share code, notes, and snippets.

@ignisf
Created July 1, 2013 00:22
Show Gist options
  • Save ignisf/5897628 to your computer and use it in GitHub Desktop.
Save ignisf/5897628 to your computer and use it in GitHub Desktop.
ROUTERSTATION FreeBSD config patches
Index: sys/mips/conf/AR71XX_BASE
===================================================================
--- sys/mips/conf/AR71XX_BASE (revision 252430)
+++ sys/mips/conf/AR71XX_BASE (working copy)
@@ -24,7 +24,7 @@
# Build these as modules so small platform builds will have the
# modules already built.
-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"
+# 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"
options DDB
options KDB
@@ -32,6 +32,7 @@
options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking
options INET6 # IPv6
+options IPSEC
# options NFSCL #Network Filesystem Client
@@ -40,24 +41,29 @@
# options NFS_LEGACYRPC
# Debugging for use in -current
-options INVARIANTS
-options INVARIANT_SUPPORT
-options WITNESS
-options WITNESS_SKIPSPIN
-options DEBUG_REDZONE
-options DEBUG_MEMGUARD
+#options INVARIANTS
+#options INVARIANT_SUPPORT
+#options WITNESS
+#options WITNESS_SKIPSPIN
+#options DEBUG_REDZONE
+#options DEBUG_MEMGUARD
options FFS #Berkeley Fast Filesystem
-# options SOFTUPDATES #Enable FFS soft updates support
-# options UFS_ACL #Support for access control lists
-# options UFS_DIRHASH #Improve performance on big directories
-# options MSDOSFS # Read MSDOS filesystems; useful for USB/CF
+options NANDFS
+#options GEOM_PART_GPT
+#options GEOM_LABEL
+# options SOFTUPDATES #Enable FFS soft updates support
+# options UFS_ACL #Support for access control lists
+# options UFS_DIRHASH #Improve performance on big directories
+# options MSDOSFS # Read MSDOS filesystems; useful for USB/CF
+device nand
+device crypto
device pci
device ar71xx_pci
# 802.11 framework
-options IEEE80211_DEBUG
+#options IEEE80211_DEBUG
options IEEE80211_ALQ
options IEEE80211_SUPPORT_MESH
# This option is currently broken for if_ath_tx.
@@ -72,11 +78,11 @@
# Atheros wireless NICs
device ath # Atheros interface support
device ath_pci # Atheros PCI/Cardbus bus
-options ATH_DEBUG
+#options ATH_DEBUG
options ATH_DIAGAPI
options ATH_ENABLE_11N
-options AH_DEBUG
-options AH_DEBUG_ALQ
+#options AH_DEBUG
+#options AH_DEBUG_ALQ
options ALQ
device ath_hal
option AH_SUPPORT_AR5416
@@ -119,7 +125,7 @@
device gif # ip[46] in ip[46] tunneling protocol
device gre # generic encapsulation - only for IPv4 in IPv4 though atm
-options ARGE_DEBUG # Enable if_arge debugging for now
+#options ARGE_DEBUG # Enable if_arge debugging for now
# Enable GPIO
device gpio
Index: sys/mips/conf/ROUTERSTATION.hints
===================================================================
--- sys/mips/conf/ROUTERSTATION.hints (revision 252430)
+++ sys/mips/conf/ROUTERSTATION.hints (working copy)
@@ -23,8 +23,23 @@
hint.ukswitch.0.at="mdio0"
hint.ukswitch.0.phymask=0x30000
+# Don't flip on anything that isn't already enabled.
+# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're
+# not use dhere.
+hint.gpio.0.function_set=0.0c
+hint.gpio.0.function_clear=0x10
+
+# These are the GPIO LEDs and buttons which can be software controlled.
+hint.gpio.0.pinmask=0x000001ff
+
# RF led
hint.gpioled.0.at="gpiobus0"
hint.gpioled.0.name="rf"
# pin 2
hint.gpioled.0.pins=0x0004
+
+# Reset button
+hint.gpiobutton.0.at="gpiobus0"
+hiht.gpiobutton.0.name="reset"
+hint.gpiobutton.0.pins=0x0100
+hint.gpiobutton.0.flags=0x0581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment