changeset 219:1770e567c935

Add new device TPLink TL-WR941ND-v3_2 Submited by: [email protected]
author ray@terran.dlink.ua
date Tue, 18 Oct 2011 21:08:57 +0300
parents 66632fb813e3
children 8ab5788e89ec
files boards/TPLink/TL-WR941ND-v3_2/board.hints boards/TPLink/TL-WR941ND-v3_2/board.mk boards/TPLink/TL-WR941ND-v3_2/files/etc/rc.d/ADAPTATION
diffstat 3 files changed, 176 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/TPLink/TL-WR941ND-v3_2/board.hints	Tue Oct 18 21:08:57 2011 +0300
@@ -0,0 +1,42 @@
+
+
+# arge0
+hint.arge.0.at="nexus0"
+hint.arge.0.maddr=0x19000000
+hint.arge.0.msize=0x1000
+hint.arge.0.irq=2
+# PHY4, PHY3, PHY2, PHY1, PHY0
+hint.arge.0.phymask=0x001f
+hint.arge.0.media=100
+hint.arge.0.fduplex=1
+# Where is the MAC address stored in flash ?
+hint.arge.0.eeprommac=0x1f01fc00
+
+# ath0
+hint.ath.0.at="nexus0"
+hint.ath.0.maddr=0x180c0000
+hint.ath.0.msize=0x30000
+hint.ath.0.irq=0
+hint.ath.0.eepromaddr=0x1fff1000
+
+# SYS led
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.name="sys"
+# pin 2
+hint.gpioled.0.pins=0x0004
+
+# QSS led
+hint.gpioled.1.at="gpiobus0"
+hint.gpioled.1.name="qss-red"
+# pin 4
+hint.gpioled.1.pins=0x0010
+hint.gpioled.2.at="gpiobus0"
+hint.gpioled.2.name="qss-green"
+# pin 5
+hint.gpioled.2.pins=0x0020
+
+# WLAN led
+hint.gpioled.3.at="gpiobus0"
+hint.gpioled.3.name="wlan"
+# pin 9
+hint.gpioled.3.pins=0x0200
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/TPLink/TL-WR941ND-v3_2/board.mk	Tue Oct 18 21:08:57 2011 +0300
@@ -0,0 +1,92 @@
+
+###################################################
+#
+# Board used hardware/chip`s
+#
+###################################################
+
+
+SOC_VENDOR=Atheros
+SOC_CHIP=AR9132
+# Maybe used for kernel config and maybe multiple e.g. "cfi nand"
+BOARD_FLASH_TYPE=flash
+# TODO: size suffixes
+BOARD_FLASH_SIZE=4194304
+
+
+###################################################
+#
+# Vars for kernel config 
+#
+###################################################
+
+# ident 
+KERNCONF_IDENT=${TARGET_VENDOR}_${TARGET_DEVICE}
+# Include usb and SoC usb controller drivers
+#WITH_USB=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
+
+# 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+=	AH_DEBUG
+KERNCONF_OPTIONS+=	ATH_DEBUG
+KERNCONF_OPTIONS+=	AH_SUPPORT_AR5416
+KERNCONF_OPTIONS+=	AH_SUPPORT_AR9130
+KERNCONF_OPTIONS+=	AH_RXCFG_SDMAMW_4BYTES
+KERNCONF_DEVICES+=	ath
+KERNCONF_DEVICES+=	ath_hal
+KERNCONF_DEVICES+=	ath_ahb
+KERNCONF_DEVICES+=	ath_rate_sample
+.endif
+
+
+
+###################################################
+#
+#       Limits
+#
+###################################################
+
+
+
+# Image must not be biggest than GEOM_MAP_P2 (upgrade part.)
+FIRMWARE_IMAGE_SIZE_MAX=0x007a0000
+
+###################################################
+#
+#       Firmware Image Options
+#
+###################################################
+
+TARGET_PROFILES+=SMALL_
+#TARGET_PROFILES+=SMALL_ mpd ssh shttpd dlink.ua.web hostap dhcp nfs_client
+# mono
+# racoon
+
+KERNEL_COMPRESSION=oldlzma
+KERNEL_COMPRESSION_TYPE=oldlzma
+UBOOT_KERNEL_COMPRESSION_TYPE=lzma
+
+MKULZMA_BLOCKSIZE=65536
+
+PACKING_KERNEL_IMAGE?=kernel.oldlzma.uboot
+PACKING_ROOTFS_IMAGE?=rootfs.iso.ulzma
+
+PACKING_ROOTFS_METHOD?=	tar.gz
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/TPLink/TL-WR941ND-v3_2/files/etc/rc.d/ADAPTATION	Tue Oct 18 21:08:57 2011 +0300
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# PROVIDE: ADAPTATION
+
+. /etc/rc.subr
+. /etc/network.subr
+
+name="ADAPTATION"
+start_cmd="adapt_start"
+start_precmd="adapt_prestart"
+start_postcmd="adapt_poststart"
+stop_cmd="adapt_stop"
+
+adapt_prestart()
+{
+	#ifconfig rt0 name lan0
+	#ifconfig vlan2 create vlan 2 vlandev lan0
+	#ifconfig vlan2 name wan0
+	# name wlan0 will be used when hostap or client are created
+	#ifconfig rt28600 name wifi0
+	#hostname `kenv HostName`
+	#wan_mac_addr=`kenv WAN_MAC_ADDR`
+	# lan mac wan+1
+	# wlan mac wan+2
+
+}
+
+adapt_start()
+{
+}
+
+adapt_poststart()
+{
+}
+
+adapt_stop()
+{
+}
+
+load_rc_config $name
+
+run_rc_command $*