changeset 212:3f7f9da14c6c

Enable switch drivers/framework
author ray@terran.dlink.ua
date Sat, 15 Oct 2011 02:33:55 +0300
parents 0bbc77ee863b
children c95f20a7c688
files boards/D-Link/DIR-615-E4/board.hints boards/D-Link/DIR-615-E4/board.image.sig boards/D-Link/DIR-615-E4/board.mk
diffstat 3 files changed, 27 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/boards/D-Link/DIR-615-E4/board.hints	Sat Oct 15 02:33:09 2011 +0300
+++ b/boards/D-Link/DIR-615-E4/board.hints	Sat Oct 15 02:33:55 2011 +0300
@@ -42,12 +42,27 @@
 #hint.arge.0.phymask=0x00000001 # Limit to only PHY0 (RTL8309 switch)
 hint.arge.0.phymask=0xffffffff
 
+# Real value is 0x1f3f0000, but it will by found at address alias, so
+# 4M/8M/16M devices can have same address
+hint.arge.0.eeprommac=0x1fff0000
+
+hint.arge.1.at="nexus0"
+hint.arge.1.maddr=0x1a000000
+hint.arge.1.msize=0x1000
+hint.arge.1.irq=3
+hint.arge.1.media=100
+hint.arge.1.fduplex=1
+hint.arge.1.phymask=0xffffffff
+hint.arge.1.eeprommac=0x1fff0000
+
 #hint.nvram.0.base=0x1f030000
 #hint.nvram.0.maxsize=0x2000
 #hint.nvram.0.flags=9 # 1 = No check, 2 = Format U-Boot
 
 hint.switch.0.iface="arge0"
 hint.switch.0.driver="ar8x16_switch"
+hint.switch.1.iface="arge1"
+hint.switch.1.driver="ar8x16_switch"
 
 # GPIO
 hint.gpio.0.at="apb0"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DIR-615-E4/board.image.sig	Sat Oct 15 02:33:55 2011 +0300
@@ -0,0 +1,1 @@
+AP99-AR7240-RT-091105-05
\ No newline at end of file
--- a/boards/D-Link/DIR-615-E4/board.mk	Sat Oct 15 02:33:09 2011 +0300
+++ b/boards/D-Link/DIR-615-E4/board.mk	Sat Oct 15 02:33:55 2011 +0300
@@ -11,7 +11,7 @@
 # Maybe used for kernel config and maybe multiple e.g. "cfi nand"
 BOARD_FLASH_TYPE=spi
 # TODO: size suffixes
-BOARD_FLASH_SIZE=8388608
+BOARD_FLASH_SIZE=4194304
 
 
 ###################################################
@@ -23,11 +23,12 @@
 # ident 
 KERNCONF_IDENT=${TARGET_VENDOR}_${TARGET_DEVICE}
 # Include usb and SoC usb controller drivers
-WITH_USB=yes
-WITH_IPSEC=yes
+# USB ports on DIR-615 E4 unwired
+#WITH_USB=yes
+#WITH_IPSEC=yes
 #WITH_WIRELESS=yes
 # Builded modules
-KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib
+#KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib
 
 # Additional utilities
 WORLD_SUBDIRS_ZROUTER+=target/sbin/upgrade
@@ -61,39 +62,15 @@
 KERNCONF_DEVICES+=	ath_rate_sample
 .endif
 
-
-#.if !defined(WITHOUT_WIRELESS)
-#KERNCONF_OPTIONS+=	IEEE80211_DEBUG
-##KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_MESH
-##KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_TDMA
-#KERNCONF_MODULES_OVERRIDE+=	wlan
-#KERNCONF_MODULES_OVERRIDE+=	wlan_amrr
-#KERNCONF_MODULES_OVERRIDE+=	wlan_wep
-#KERNCONF_MODULES_OVERRIDE+=	wlan_ccmp
-#KERNCONF_MODULES_OVERRIDE+=	wlan_tkip
-#
-#KERNCONF_OPTIONS+=	AH_DEBUG
-#KERNCONF_OPTIONS+=	ATH_DEBUG
-#KERNCONF_OPTIONS+=	AH_SUPPORT_AR5416
-#KERNCONF_OPTIONS+=	AH_RXCFG_SDMAMW_4BYTES
-#KERNCONF_MODULES_OVERRIDE+=	ath
-##KERNCONF_MODULES_OVERRIDE+=	ath_hal
-#KERNCONF_MODULES_OVERRIDE+=	ath_pci
-##KERNCONF_MODULES_OVERRIDE+=	ath_rate_sample
-#.endif
-
-
-
 ###################################################
 #
 #       Limits
 #
 ###################################################
 
-
-
 # Image must not be biggest than GEOM_MAP_P2 (upgrade part.)
-FIRMWARE_IMAGE_SIZE_MAX=0x007a0000
+# 3538944
+FIRMWARE_IMAGE_SIZE_MAX=0x00360000
 
 
 ###################################################
@@ -102,14 +79,16 @@
 #
 ###################################################
 
-TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp hostap ath
+TARGET_PROFILES+=xSMALL_
+# hostap
+# ath
 # nfs_client
 
 KERNEL_COMPRESSION=oldlzma
 KERNEL_COMPRESSION_TYPE=oldlzma
 UBOOT_KERNEL_COMPRESSION_TYPE=lzma
 
-MKULZMA_BLOCKSIZE=65536
+MKULZMA_BLOCKSIZE=131072
 
 PACKING_KERNEL_IMAGE?=kernel.oldlzma.uboot
 PACKING_ROOTFS_IMAGE?=rootfs.iso.ulzma