This patch adds support for D-Link's DVA-G3810BN/TL product. Signed-off-by: Roman Dumycz <ro...@secureas.com>
Index: network =================================================================== --- network (revision 0) +++ network (revision 0) @@ -0,0 +1,29 @@ +# Copyright (C) 2008 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface lan + option type bridge + option ifname eth1.1 + option proto static + option ipaddr 192.168.1.1 + option netmask 255.255.255.0 + option nat 1 + +config interface wan + option ifname eth0 + option proto dhcp + +config switch eth1 + option enable 1 + option enable_vlan 1 + option reset 1 + +config switch_vlan + option vlan 1 + option device eth1 + option ports "0 1 2 3 5t" Index: target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network =================================================================== --- target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network (revision 0) +++ target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network (revision 0) @@ -0,0 +1,29 @@ +# Copyright (C) 2008 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface lan + option type bridge + option ifname eth1.1 + option proto static + option ipaddr 192.168.1.1 + option netmask 255.255.255.0 + option nat 1 + +config interface wan + option ifname eth0 + option proto dhcp + +config switch eth1 + option enable 1 + option enable_vlan 1 + option reset 1 + +config switch_vlan + option vlan 1 + option device eth1 + option ports "0 1 2 3 5t" Index: network =================================================================== --- network (revision 0) +++ network (revision 0) @@ -0,0 +1,29 @@ +# Copyright (C) 2008 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface lan + option type bridge + option ifname eth1.1 + option proto static + option ipaddr 192.168.1.1 + option netmask 255.255.255.0 + option nat 1 + +config interface wan + option ifname eth0 + option proto dhcp + +config switch eth1 + option enable 1 + option enable_vlan 1 + option reset 1 + +config switch_vlan + option vlan 1 + option device eth1 + option ports "0 1 2 3 5t" Index: target/linux/brcm63xx/image/Makefile =================================================================== --- target/linux/brcm63xx/image/Makefile (revision 26213) +++ target/linux/brcm63xx/image/Makefile (working copy) @@ -176,6 +176,8 @@ $(call Image/Build/CFE,$(1),D-4P-W,6348,DSL2640B) # D-Link DSL-2740B/DSL-2741B, rev C2 $(call Image/Build/CFE,$(1),96358GW,6358,DSL274XB-C2) + # D-Link DVA-G3810BN/TL + $(call Image/Build/CFE,$(1),96358GW,6358,DVAG3810BN) # TP-Link TD-8810A, TD-8810B, TD-8811A, TD-8811B $(call Image/Build/CFE,$(1),8L-2M-8M,6338,TP8810_8811) Index: target/linux/brcm63xx/base-files/etc/init.d/defconfig =================================================================== --- target/linux/brcm63xx/base-files/etc/init.d/defconfig (revision 26213) +++ target/linux/brcm63xx/base-files/etc/init.d/defconfig (working copy) @@ -8,6 +8,10 @@ start() { local board=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo) + if [ "$board" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then + board="DVAG3810BN" + fi + [ ! -d /etc/defconfig/$board ] && board="generic" for f in $( ls /etc/defconfig/$board ); do _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel