aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/conf/ROCKET_M2HP
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-02-28 22:49:45 +0000
committerWarner Losh <imp@FreeBSD.org>2017-02-28 22:49:45 +0000
commit3fc79998ea7d08699311131c3dd3365ff400c886 (patch)
tree89f3683ffedef36dea52e318585f377c8a1486a0 /sys/mips/conf/ROCKET_M2HP
parent15c7946344c6a365877ad98e464609a49885da3e (diff)
downloadsrc-3fc79998ea7d08699311131c3dd3365ff400c886.tar.gz
src-3fc79998ea7d08699311131c3dd3365ff400c886.zip
Add Ubiquiti Rocket M support
Updated to use geom_uzip Submitted by: Michael Vale <m.vale@live.com.au> Pull Request: https://github.com/freebsd/freebsd/pull/16
Notes
Notes: svn path=/head/; revision=314428
Diffstat (limited to 'sys/mips/conf/ROCKET_M2HP')
-rw-r--r--sys/mips/conf/ROCKET_M2HP70
1 files changed, 70 insertions, 0 deletions
diff --git a/sys/mips/conf/ROCKET_M2HP b/sys/mips/conf/ROCKET_M2HP
new file mode 100644
index 000000000000..6eac071e54c7
--- /dev/null
+++ b/sys/mips/conf/ROCKET_M2HP
@@ -0,0 +1,70 @@
+#
+# Specific board setup for the Rocket M2 HP board.
+#
+# This board has the following hardware:
+#
+# + AR7241 CPU SoC
+# + AR9287 Wifi
+# + Integrated switch (XXX speed?)
+# + 8MB flash
+# + 32MB RAM
+# + uboot environment
+
+# $FreeBSD$
+
+#NO_UNIVERSE
+
+include "AR724X_BASE"
+ident "ROCKET_M2HP"
+hints "ROCKET_M2HP.hints"
+
+options AR71XX_REALMEM=32*1024*1024
+
+options AR71XX_ENV_UBOOT
+
+# Limit inlines
+makeoptions INLINE_LIMIT=768
+
+# We bite the performance overhead for now; the kernel won't
+# fit if the mutexes are inlined.
+options MUTEX_NOINLINE
+options RWLOCK_NOINLINE
+options SX_NOINLINE
+
+# There's no need to enable swapping on this platform.
+options NO_SWAPPING
+
+# For DOS - enable if required
+# options MSDOSFS
+
+# uncompress - to boot read-only lzma natively from flash
+device geom_uzip
+options GEOM_UZIP
+options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uzip\"
+
+# Not enough space for these..
+nooptions INVARIANTS
+nooptions INVARIANT_SUPPORT
+nooptions WITNESS
+nooptions WITNESS_SKIPSPIN
+nooptions DEBUG_REDZONE
+nooptions DEBUG_MEMGUARD
+
+# Used for the static uboot partition map
+device geom_map
+
+# Options needed for the EEPROM based calibration/PCI configuration data.
+options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash
+options ATH_EEPROM_FIRMWARE # Use EEPROM from flash
+device firmware # Used by the above
+
+# Options required for miiproxy and mdiobus
+options ARGE_MDIO # Export an MDIO bus separate from arge
+device miiproxy # MDIO bus <-> MII PHY rendezvous
+
+device etherswitch
+device arswitch
+
+# Enable GPIO
+device gpio
+device gpioled