[Zrouter-src] ZRouter.org: push to ZRouter boards/D-Link/DIR-632/board.hints b...
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Tue Apr 24 20:19:37 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/81194d5b1c9f
changeset: 391:81194d5b1c9f
user: Aleksandr Rybalko <ray at ddteam.net>
date: Tue Apr 24 23:20:15 2012 +0300
description:
Update to current switch framwork state.
diffstat:
boards/D-Link/DIR-632/board.hints | 40 +++++++++++++++++++++++++++++++++-----
boards/D-Link/DIR-632/board.mk | 32 ++++++++++++++++++++++++++++--
2 files changed, 63 insertions(+), 9 deletions(-)
diffs (133 lines):
diff -r bd7977a03670 -r 81194d5b1c9f boards/D-Link/DIR-632/board.hints
--- a/boards/D-Link/DIR-632/board.hints Sat Apr 21 15:10:17 2012 +0300
+++ b/boards/D-Link/DIR-632/board.hints Tue Apr 24 23:20:15 2012 +0300
@@ -26,11 +26,16 @@
# pci
hint.pcib.0.at="nexus0"
hint.pcib.0.irq=0
+
+# ath0 - slot 17
+hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
+hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
+hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
+
+
+
# compatible value, device with 4M/8M/16M of flash, may found it on same
# location, because flash just aliased to upper segments
-hint.pcib.0.eepromdata=0x1fff1000
-
-# Same data but for ATH driver
hint.ath.0.eepromdata=0x1fff1000
hint.arge.0.at="nexus0"
@@ -51,14 +56,37 @@
#hint.arge.1.phymask=0x00000001 # Limit to only PHY0 (internal S26 switch)
hint.arge.1.phymask=0xffffffff
-#hint.nvram.0.base=0x1f030000
-#hint.nvram.0.maxsize=0x2000
-#hint.nvram.0.flags=9 # 1 = No check, 2 = Format U-Boot
+# No probe at all
+hint.miibus.0.phymask="0x00000000"
+hint.miibus.1.phymask="0x00000000"
+hint.switch.0.at="miibus0"
+hint.switch.0.phyno=1
hint.switch.0.iface="arge0"
hint.switch.0.driver="rtl830x_switch"
+
+hint.switch.1.at="miibus1"
+hint.switch.1.phyno=16
hint.switch.1.iface="arge1"
hint.switch.1.driver="ar8x16_switch"
+# Switch attached to MDIO bus on arge0
+#hint.ar8x16_switch.0.mii_mode=0x012603e2
+
+hint.floatphy.0.at="miibus0"
+hint.floatphy.0.phyno=0
+hint.floatphy.0.master="switch"
+hint.floatphy.0.master_unit=0
+hint.floatphy.0.master_phys=0x000000ff # Sense PHY4
+hint.floatphy.0.flags=0x00000004 # Do not change speed
+hint.floatphy.0.speed=100 # RTL8309 can do 100baseTX max
+
+hint.floatphy.1.at="miibus1"
+hint.floatphy.1.phyno=0
+hint.floatphy.1.master="switch"
+hint.floatphy.1.master_unit=1
+hint.floatphy.1.master_phys=0x00000001 # Sense PHY0
+hint.floatphy.1.flags=0x00000004 # Do not change speed
+hint.floatphy.1.speed=1000
# GPIO
hint.gpio.0.at="apb0"
diff -r bd7977a03670 -r 81194d5b1c9f boards/D-Link/DIR-632/board.mk
--- a/boards/D-Link/DIR-632/board.mk Sat Apr 21 15:10:17 2012 +0300
+++ b/boards/D-Link/DIR-632/board.mk Tue Apr 24 23:20:15 2012 +0300
@@ -5,6 +5,7 @@
#
###################################################
+BOARD_REVISION=A1
SOC_VENDOR=Atheros
SOC_CHIP=AR7242
@@ -33,6 +34,13 @@
KERNCONF_OPTIONS+= ALT_BREAK_TO_DEBUGGER
KERNCONF_OPTIONS+= BREAK_TO_DEBUGGER
+#KERNCONF_OPTIONS+= KTR
+#KERNCONF_OPTIONS+= KTR_ENTRIES=1024
+#KERNCONF_OPTIONS+= KTR_COMPILE=(KTR_INTR)
+#KERNCONF_OPTIONS+= KTR_MASK=KTR_INTR
+#KERNCONF_OPTIONS+= ALQ
+#KERNCONF_OPTIONS+= KTR_ALQ
+
KERNCONF_DEVICES+= switch_rtl830x
@@ -47,13 +55,17 @@
KERNCONF_DEVICES+= wlan_ccmp
KERNCONF_DEVICES+= wlan_tkip
+KERNCONF_OPTIONS+= AR71XX_ATH_EEPROM
+KERNCONF_OPTIONS+= ATH_EEPROM_FIRMWARE
+KERNCONF_DEVICES+= firmware
+
KERNCONF_OPTIONS+= AH_DEBUG
KERNCONF_OPTIONS+= ATH_DEBUG
KERNCONF_OPTIONS+= ATH_DIAGAPI
KERNCONF_OPTIONS+= ATH_ENABLE_11N
KERNCONF_OPTIONS+= AH_SUPPORT_AR5416
#KERNCONF_OPTIONS+= AH_SUPPORT_AR9130
-KERNCONF_OPTIONS+= AH_RXCFG_SDMAMW_4BYTES
+#KERNCONF_OPTIONS+= AH_RXCFG_SDMAMW_4BYTES
# interrupt mitigation not possible on AR9130
# option AH_AR5416_INTERRUPT_MITIGATION
KERNCONF_DEVICES+= ath
@@ -103,8 +115,22 @@
#
###################################################
-TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp hostap ath
-# nfs_client
+TARGET_PROFILES+= \
+ SMALL_ \
+ ath \
+ dhclient \
+ dlink.ua.web \
+ dnsmasq \
+ hostap \
+ ipfw \
+ mroute \
+ mpd \
+ net_help \
+ nfs_client \
+ ntpdate \
+ ppp \
+ racoon \
+ ssh
KERNEL_COMPRESSION=oldlzma
KERNEL_COMPRESSION_TYPE=oldlzma
More information about the Zrouter-src
mailing list