[Zrouter-src] ZRouter.org: push to ZRouter boards/D-Link/DIR-615-E4/board.hint...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Fri Dec 2 19:38:34 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/43573d10a699
changeset: 243:43573d10a699
user:      ray at terran.dlink.ua
date:      Fri Dec 02 21:39:07 2011 +0200
description:
DIR-615-E4 for testing only

diffstat:

 boards/D-Link/DIR-615-E4/board.hints               |  19 ++++++++++++-------
 boards/D-Link/DIR-615-E4/board.mk                  |   2 ++
 boards/D-Link/DIR-615-E4/files/etc/rc.d/ADAPTATION |   6 +++---
 3 files changed, 17 insertions(+), 10 deletions(-)

diffs (73 lines):

diff -r 16d7c7f1f4d2 -r 43573d10a699 boards/D-Link/DIR-615-E4/board.hints
--- a/boards/D-Link/DIR-615-E4/board.hints	Fri Dec 02 21:37:53 2011 +0200
+++ b/boards/D-Link/DIR-615-E4/board.hints	Fri Dec 02 21:39:07 2011 +0200
@@ -39,9 +39,7 @@
 hint.arge.0.irq=2
 hint.arge.0.media=100
 hint.arge.0.fduplex=1
-#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
@@ -50,7 +48,7 @@
 hint.arge.1.maddr=0x1a000000
 hint.arge.1.msize=0x1000
 hint.arge.1.irq=3
-hint.arge.1.media=100
+hint.arge.1.media=1000
 hint.arge.1.fduplex=1
 hint.arge.1.phymask=0xffffffff
 hint.arge.1.eeprommac=0x1fff0000
@@ -59,10 +57,17 @@
 #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"
+hint.miibus.0.phymask="0x00000001"
+hint.miibus.0.phy0="plumbphy"
+hint.plumbphy.0.master="ar8x16_switch0"
+hint.plumbphy.0.port=4
+hint.miibus.1.phymask="0x00000001"
+hint.miibus.1.phy0="switch"
+
+#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"
diff -r 16d7c7f1f4d2 -r 43573d10a699 boards/D-Link/DIR-615-E4/board.mk
--- a/boards/D-Link/DIR-615-E4/board.mk	Fri Dec 02 21:37:53 2011 +0200
+++ b/boards/D-Link/DIR-615-E4/board.mk	Fri Dec 02 21:39:07 2011 +0200
@@ -36,6 +36,8 @@
 KERNCONF_OPTIONS+=	ALT_BREAK_TO_DEBUGGER
 KERNCONF_OPTIONS+=	BREAK_TO_DEBUGGER
 
+KERNCONF_OPTIONS+=	NBUF=1024
+
 .if !defined(WITHOUT_WIRELESS)
 KERNCONF_MODULES_OVERRIDE+=wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt
 KERNCONF_OPTIONS+=	IEEE80211_DEBUG
diff -r 16d7c7f1f4d2 -r 43573d10a699 boards/D-Link/DIR-615-E4/files/etc/rc.d/ADAPTATION
--- a/boards/D-Link/DIR-615-E4/files/etc/rc.d/ADAPTATION	Fri Dec 02 21:37:53 2011 +0200
+++ b/boards/D-Link/DIR-615-E4/files/etc/rc.d/ADAPTATION	Fri Dec 02 21:39:07 2011 +0200
@@ -46,10 +46,10 @@
 #	kenv LAN_MAC_ADDR=`kenv ethaddr`
 #	kenv WAN_MAC_ADDR=`kenv wanmac`
 
-	ifconfig arge0 name lan0
-#	ifconfig arge1 name wan0
+	ifconfig arge0 name wan0
+	ifconfig arge1 name lan0
 
-	ifconfig lan0 ether `kenv LAN_MAC_ADDR`
+#	ifconfig lan0 ether `kenv LAN_MAC_ADDR`
 #	ifconfig wan0 ether `kenv WAN_MAC_ADDR`
 
 	hostname `kenv HostName`


More information about the Zrouter-src mailing list