[Zrouter-src] ZRouter.org: push to ZRouter boards/Ubiquiti/RS/board.hints boar...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Dec 22 23:11:48 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/3d336978613e
changeset: 289:3d336978613e
user:      ray at terran.dlink.ua
date:      Fri Dec 23 01:12:58 2011 +0200
description:
Add support for Ubiquiti Router Station.

Submited by: Maciej Milewski milu at dat dot pl

diffstat:

 boards/Ubiquiti/RS/board.hints |  42 ++++++++++++++++++
 boards/Ubiquiti/RS/board.mk    |  96 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+), 0 deletions(-)

diffs (146 lines):

diff -r c6d3f2f49246 -r 3d336978613e boards/Ubiquiti/RS/board.hints
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/Ubiquiti/RS/board.hints	Fri Dec 23 01:12:58 2011 +0200
@@ -0,0 +1,42 @@
+
+# ohci
+hint.ohci.0.at="apb0"
+hint.ohci.0.maddr=0x1c000000
+hint.ohci.0.msize=0x01000000
+hint.ohci.0.irq=6
+
+# ehci
+hint.ehci.0.at="nexus0"
+hint.ehci.0.maddr=0x1b000000
+hint.ehci.0.msize=0x01000000
+hint.ehci.0.irq=1
+
+# arge0
+hint.arge.0.at="nexus0"
+hint.arge.0.maddr=0x19000000
+hint.arge.0.msize=0x1000
+hint.arge.0.irq=2
+# PHY20 = 1 << 20
+hint.arge.0.phymask=0x100000
+
+# arge1
+hint.arge.1.at="nexus0"
+hint.arge.1.maddr=0x1a000000
+hint.arge.1.msize=0x1000
+hint.arge.1.irq=3
+# PHY1, PHY2, PHY3 
+hint.arge.1.phymask=0x0e
+hint.arge.1.media=100
+hint.arge.1.fduplex=1
+
+
+# RTC shares the same bus with mx25l. 
+# CE low for flash, CE high for RTC
+#hint.rtc.0.at="spibus0"
+#hint.rtc.0.cs=0
+
+# RF led - pin 2
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.name="rfled"
+hint.gpioled.0.pins=0x0004
+
diff -r c6d3f2f49246 -r 3d336978613e boards/Ubiquiti/RS/board.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/Ubiquiti/RS/board.mk	Fri Dec 23 01:12:58 2011 +0200
@@ -0,0 +1,96 @@
+
+###################################################
+#
+# Board used hardware/chip`s
+#
+###################################################
+
+
+SOC_VENDOR=Atheros
+SOC_CHIP=AR7161
+# Maybe used for kernel config and maybe multiple e.g. "cfi nand"
+BOARD_FLASH_TYPE=flash
+# TODO: size suffixes
+BOARD_FLASH_SIZE=16777216
+
+
+###################################################
+#
+# Vars for kernel config 
+#
+###################################################
+
+# ident 
+KERNCONF_IDENT=${TARGET_VENDOR}_${TARGET_DEVICE}
+KERNCONF_KERNLOADADDR?=0x80050100
+
+# Include usb and SoC usb controller drivers
+WITH_USB=yes
+WITH_IPSEC=yes
+# Builded modules
+# device wlan in kernel alredy enable this modules
+#KERNCONF_MODULES_OVERRIDE+=wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt
+#KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib
+KERNCONF_MODULES_OVERRIDE+=pf pflog
+# Additional utilities
+WORLD_SUBDIRS_ZROUTER+=target/sbin/upgrade
+
+.if !defined(WITHOUT_WIRELESS)
+KERNCONF_OPTIONS+=	IEEE80211_DEBUG
+KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_MESH
+KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_TDMA
+KERNCONF_DEVICES+=	wlan
+KERNCONF_DEVICES+=	wlan_amrr
+KERNCONF_DEVICES+=	wlan_wep
+KERNCONF_DEVICES+=	wlan_ccmp
+KERNCONF_DEVICES+=	wlan_tkip
+
+KERNCONF_OPTIONS+=	ATH_DEBUG
+KERNCONF_OPTIONS+=	ATH_DIAGAPI
+KERNCONF_OPTIONS+=	AH_DEBUG
+KERNCONF_OPTIONS+=	ALQ
+KERNCONF_OPTIONS+=	AH_DEBUG_ALQ
+KERNCONF_OPTIONS+=	AH_AR5416_INTERRUPT_MITIGATION
+KERNCONF_OPTIONS+=	AH_SUPPORT_AR5416
+KERNCONF_OPTIONS+=	AH_RXCFG_SDMAMW_4BYTES
+KERNCONF_DEVICES+=	ath
+KERNCONF_DEVICES+=	ath_hal
+KERNCONF_DEVICES+=	ath_pci
+KERNCONF_DEVICES+=	ath_rate_sample
+.endif
+KERNCONF_OPTIONS+=	FFS
+
+###################################################
+#
+#       Limits
+#
+###################################################
+
+
+
+# Image must not be biggest than GEOM_MAP_P2 (upgrade part.)
+FIRMWARE_IMAGE_SIZE_MAX=0x007a0000
+
+###################################################
+#
+#       Firmware Image Options
+#
+###################################################
+
+TARGET_PROFILES+=SMALL_ ath dnsmasq mpd ssh shttpd dlink.ua.web hostap dhcp \
+  racoon ntpdate pf
+
+KERNEL_COMPRESSION=oldlzma
+KERNEL_COMPRESSION_TYPE=oldlzma
+
+MKULZMA_BLOCKSIZE=65536
+
+# XXX: Here is must be Redboot packer, but not defined yet
+PACKING_KERNEL_IMAGE?=kernel.kbin.gz.sync
+PACKING_ROOTFS_IMAGE?=rootfs_clean.iso.ulzma
+
+IMAGE_SUFFIX=zimage
+
+UBNT_VERSION?=RS.ar7100.Zrouter.V1
+
+NEW_IMAGE_TYPE=ubntimage


More information about the Zrouter-src mailing list