aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files
diff options
context:
space:
mode:
authorJames <>2013-03-17 12:16:37 +0000
committerJames <>2013-03-17 12:16:37 +0000
commit27b76ab0671089c47506615a796a261e993896a7 (patch)
tree61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/brcm63xx/base-files
downloadtrunk-36060-master.tar.gz
trunk-36060-master.tar.bz2
trunk-36060-master.zip
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rw-r--r--target/linux/brcm63xx/base-files/.svn/entries34
-rw-r--r--target/linux/brcm63xx/base-files/etc/.svn/entries77
-rw-r--r--target/linux/brcm63xx/base-files/etc/.svn/prop-base/diag.sh.svn-base5
-rw-r--r--target/linux/brcm63xx/base-files/etc/.svn/text-base/diag.sh.svn-base24
-rw-r--r--target/linux/brcm63xx/base-files/etc/config/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/.svn/entries61
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/96348A-122/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/96358-502V/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/96358GW/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/AW4139/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/CPVA642/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/CT536_CT5621/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/D-4P-W/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/SPW500V/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/V2110/.svn/entries28
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/generic/.svn/entries28
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/diag.sh24
-rw-r--r--target/linux/brcm63xx/base-files/etc/hotplug.d/.svn/entries31
-rw-r--r--target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/entries62
-rw-r--r--target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-rt2x00-eeprom.svn-base42
-rw-r--r--target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom42
-rw-r--r--target/linux/brcm63xx/base-files/etc/init.d/.svn/entries62
-rw-r--r--target/linux/brcm63xx/base-files/etc/init.d/.svn/prop-base/defconfig.svn-base5
-rw-r--r--target/linux/brcm63xx/base-files/etc/init.d/.svn/text-base/defconfig.svn-base18
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/init.d/defconfig18
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/entries96
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base5
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/09_fix_crc.svn-base5
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base108
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/09_fix_crc.svn-base34
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/uci-defaults/02_network108
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc34
-rw-r--r--target/linux/brcm63xx/base-files/lib/.svn/entries68
-rw-r--r--target/linux/brcm63xx/base-files/lib/.svn/prop-base/brcm63xx.sh.svn-base5
-rw-r--r--target/linux/brcm63xx/base-files/lib/.svn/text-base/brcm63xx.sh.svn-base125
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh125
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/entries232
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/03_do_brcm63xx.sh.svn-base7
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_failsafe_config_switch_brcm63xx.svn-base10
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_init_interfaces_brcm63xx.svn-base7
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_reset_button_brcm63xx.svn-base15
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/15_set_preinit_interface_brcm63xx.svn-base27
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/20_failsafe_net_echo_brcm63xx.svn-base12
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh7
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/05_failsafe_config_switch_brcm63xx10
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx7
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx15
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/15_set_preinit_interface_brcm63xx27
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/20_failsafe_net_echo_brcm63xx12
-rw-r--r--target/linux/brcm63xx/base-files/lib/upgrade/.svn/entries62
-rw-r--r--target/linux/brcm63xx/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base16
-rw-r--r--target/linux/brcm63xx/base-files/lib/upgrade/platform.sh16
53 files changed, 2036 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/.svn/entries b/target/linux/brcm63xx/base-files/.svn/entries
new file mode 100644
index 0000000..a4d2faa
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/.svn/entries
@@ -0,0 +1,34 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-03-04T13:42:35.262045Z
+35880
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+lib
+dir
+
+etc
+dir
+
diff --git a/target/linux/brcm63xx/base-files/etc/.svn/entries b/target/linux/brcm63xx/base-files/etc/.svn/entries
new file mode 100644
index 0000000..3aa05e2
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/.svn/entries
@@ -0,0 +1,77 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-02-18T10:37:55.464755Z
+35661
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+defconfig
+dir
+
+hotplug.d
+dir
+
+config
+dir
+
+init.d
+dir
+
+uci-defaults
+dir
+
+diag.sh
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+0684f38c75e977c72c2e3620b21f83cd
+2013-02-18T10:37:55.464755Z
+35661
+florian
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+353
+
diff --git a/target/linux/brcm63xx/base-files/etc/.svn/prop-base/diag.sh.svn-base b/target/linux/brcm63xx/base-files/etc/.svn/prop-base/diag.sh.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/.svn/prop-base/diag.sh.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/brcm63xx/base-files/etc/.svn/text-base/diag.sh.svn-base b/target/linux/brcm63xx/base-files/etc/.svn/text-base/diag.sh.svn-base
new file mode 100644
index 0000000..a03f89d
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/.svn/text-base/diag.sh.svn-base
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Copyright (C) 2007-2013 OpenWrt.org
+
+. /lib/functions/leds.sh
+. /lib/brcm63xx.sh
+
+set_state() {
+ case "$1" in
+ preinit)
+ insmod leds-gpio
+ status_led_set_timer 200 200
+ ;;
+ failsafe)
+ status_led_set_timer 50 50
+ ;;
+ done)
+ if [ "${status_led/power}" != "$status_led" ]; then
+ status_led_on
+ else
+ status_led_off
+ fi
+ ;;
+ esac
+}
diff --git a/target/linux/brcm63xx/base-files/etc/config/.svn/entries b/target/linux/brcm63xx/base-files/etc/config/.svn/entries
new file mode 100644
index 0000000..04958ae
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/config/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/config
+svn://svn.openwrt.org/openwrt
+
+
+
+2010-11-28T22:04:19.373058Z
+24185
+cshore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/.svn/entries
new file mode 100644
index 0000000..25e26ad
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/.svn/entries
@@ -0,0 +1,61 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+96348A-122
+dir
+
+SPW500V
+dir
+
+CPVA642
+dir
+
+96358-502V
+dir
+
+AW4139
+dir
+
+CT536_CT5621
+dir
+
+D-4P-W
+dir
+
+V2110
+dir
+
+96358GW
+dir
+
+generic
+dir
+
+DVAG3810BN
+dir
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/96348A-122/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/96348A-122/.svn/entries
new file mode 100644
index 0000000..ef0bcb2
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/96348A-122/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/96348A-122
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/96358-502V/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/96358-502V/.svn/entries
new file mode 100644
index 0000000..91b8861
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/96358-502V/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/96358-502V
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/96358GW/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/96358GW/.svn/entries
new file mode 100644
index 0000000..6d8ad09
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/96358GW/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/96358GW
+svn://svn.openwrt.org/openwrt
+
+
+
+2011-05-11T13:33:50.083498Z
+26876
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/AW4139/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/AW4139/.svn/entries
new file mode 100644
index 0000000..1e1e4e4
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/AW4139/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/AW4139
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/CPVA642/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/CPVA642/.svn/entries
new file mode 100644
index 0000000..fab13e3
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/CPVA642/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/CPVA642
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/CT536_CT5621/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/CT536_CT5621/.svn/entries
new file mode 100644
index 0000000..3c0754f
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/CT536_CT5621/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/CT536_CT5621
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/D-4P-W/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/D-4P-W/.svn/entries
new file mode 100644
index 0000000..b47d091
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/D-4P-W/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/D-4P-W
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/.svn/entries
new file mode 100644
index 0000000..c2b5960
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/SPW500V/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/SPW500V/.svn/entries
new file mode 100644
index 0000000..fd3da01
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/SPW500V/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/SPW500V
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/V2110/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/V2110/.svn/entries
new file mode 100644
index 0000000..b29414b
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/V2110/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/V2110
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/generic/.svn/entries b/target/linux/brcm63xx/base-files/etc/defconfig/generic/.svn/entries
new file mode 100644
index 0000000..3779e08
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/generic/.svn/entries
@@ -0,0 +1,28 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/defconfig/generic
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:14.360989Z
+31873
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh
new file mode 100755
index 0000000..a03f89d
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/diag.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Copyright (C) 2007-2013 OpenWrt.org
+
+. /lib/functions/leds.sh
+. /lib/brcm63xx.sh
+
+set_state() {
+ case "$1" in
+ preinit)
+ insmod leds-gpio
+ status_led_set_timer 200 200
+ ;;
+ failsafe)
+ status_led_set_timer 50 50
+ ;;
+ done)
+ if [ "${status_led/power}" != "$status_led" ]; then
+ status_led_on
+ else
+ status_led_off
+ fi
+ ;;
+ esac
+}
diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/.svn/entries b/target/linux/brcm63xx/base-files/etc/hotplug.d/.svn/entries
new file mode 100644
index 0000000..9a495f4
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/.svn/entries
@@ -0,0 +1,31 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/hotplug.d
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-01-04T14:47:57.639486Z
+35011
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+firmware
+dir
+
diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/entries b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/entries
new file mode 100644
index 0000000..e5c1dc8
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/entries
@@ -0,0 +1,62 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-01-04T14:47:57.639486Z
+35011
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+10-rt2x00-eeprom
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+c85ab3271a5fc43442408cb523599cdf
+2013-01-04T14:47:57.639486Z
+35011
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+743
+
diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-rt2x00-eeprom.svn-base b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-rt2x00-eeprom.svn-base
new file mode 100644
index 0000000..eeb66e0
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-rt2x00-eeprom.svn-base
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Based on gabors ralink wisoc implementation.
+
+rt2x00_eeprom_die() {
+ echo "rt2x00 eeprom: " "$*"
+ exit 1
+}
+
+rt2x00_eeprom_extract() {
+ local part=$1
+ local offset=$2
+ local count=$3
+ local mtd
+
+ . /lib/functions.sh
+
+ mtd=$(find_mtd_part $part)
+ [ -n "$mtd" ] || \
+ rt2x00_eeprom_die "no mtd device found for partition $part"
+
+ dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
+ rt2x00_eeprom_die "failed to extract from $mtd"
+}
+
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
+
+. /lib/brcm63xx.sh
+
+board=$board_name
+
+case "$FIRMWARE" in
+"rt2x00.eeprom" )
+ case $board in
+ HW556_A)
+ rt2x00_eeprom_extract "cal_data" 130560 272
+ ;;
+ *)
+ rt2x00_eeprom_die "board $board is not supported yet"
+ ;;
+ esac
+ ;;
+esac
diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
new file mode 100644
index 0000000..eeb66e0
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Based on gabors ralink wisoc implementation.
+
+rt2x00_eeprom_die() {
+ echo "rt2x00 eeprom: " "$*"
+ exit 1
+}
+
+rt2x00_eeprom_extract() {
+ local part=$1
+ local offset=$2
+ local count=$3
+ local mtd
+
+ . /lib/functions.sh
+
+ mtd=$(find_mtd_part $part)
+ [ -n "$mtd" ] || \
+ rt2x00_eeprom_die "no mtd device found for partition $part"
+
+ dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
+ rt2x00_eeprom_die "failed to extract from $mtd"
+}
+
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
+
+. /lib/brcm63xx.sh
+
+board=$board_name
+
+case "$FIRMWARE" in
+"rt2x00.eeprom" )
+ case $board in
+ HW556_A)
+ rt2x00_eeprom_extract "cal_data" 130560 272
+ ;;
+ *)
+ rt2x00_eeprom_die "board $board is not supported yet"
+ ;;
+ esac
+ ;;
+esac
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/.svn/entries b/target/linux/brcm63xx/base-files/etc/init.d/.svn/entries
new file mode 100644
index 0000000..e0b3a50
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/init.d/.svn/entries
@@ -0,0 +1,62 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/init.d
+svn://svn.openwrt.org/openwrt
+
+
+
+2012-05-27T13:22:11.159299Z
+31872
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+defconfig
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+4dda60616e1671b17e24dff081431a07
+2012-05-27T13:22:11.159299Z
+31872
+jogo
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+312
+
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/.svn/prop-base/defconfig.svn-base b/target/linux/brcm63xx/base-files/etc/init.d/.svn/prop-base/defconfig.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/init.d/.svn/prop-base/defconfig.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/.svn/text-base/defconfig.svn-base b/target/linux/brcm63xx/base-files/etc/init.d/.svn/text-base/defconfig.svn-base
new file mode 100644
index 0000000..a49c327
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/init.d/.svn/text-base/defconfig.svn-base
@@ -0,0 +1,18 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+
+START=05
+
+start() {
+ . /lib/brcm63xx.sh
+
+ [ ! -d /etc/defconfig/$board_name ] && board_name="generic"
+
+ for f in $( ls /etc/defconfig/$board_name ); do
+ if [ ! -e /etc/config/$f ]; then
+ cp /etc/defconfig/$board_name/$f /etc/config/
+ fi
+ done
+}
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/defconfig b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
new file mode 100755
index 0000000..a49c327
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
@@ -0,0 +1,18 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+
+START=05
+
+start() {
+ . /lib/brcm63xx.sh
+
+ [ ! -d /etc/defconfig/$board_name ] && board_name="generic"
+
+ for f in $( ls /etc/defconfig/$board_name ); do
+ if [ ! -e /etc/config/$f ]; then
+ cp /etc/defconfig/$board_name/$f /etc/config/
+ fi
+ done
+}
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/entries b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/entries
new file mode 100644
index 0000000..da5f670
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/entries
@@ -0,0 +1,96 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/etc/uci-defaults
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-02-05T14:57:43.579800Z
+35501
+mirko
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+09_fix_crc
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+c045bbc604072760a78565217a1564c4
+2013-02-05T14:57:43.579800Z
+35501
+mirko
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+370
+
+02_network
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+afa9051dcc9ca955569e7d7353177b0d
+2013-02-05T14:57:40.477201Z
+35500
+mirko
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1812
+
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/02_network.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/09_fix_crc.svn-base b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/09_fix_crc.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/prop-base/09_fix_crc.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base
new file mode 100644
index 0000000..f59fed6
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/02_network.svn-base
@@ -0,0 +1,108 @@
+#!/bin/sh
+#
+# Copyright (C) 2012 OpenWrt.org
+#
+
+[ -e /etc/config/network ] && exit 0
+
+touch /etc/config/network
+
+. /lib/functions/uci-defaults.sh
+. /lib/brcm63xx.sh
+
+ucidef_set_interface_loopback
+
+case "$board_name" in
+
+RTA770BW |\
+RTA770W |\
+96348W3 |\
+96358-502V |\
+SPW500V)
+ ucidef_set_interface_lan "eth0"
+ ;;
+
+96338GW |\
+96338W |\
+96338W2_E7T |\
+96348A-122 |\
+96348W3 |\
+CPVA642 |\
+CT536_CT5621 |\
+CT6373-1 |\
+D-4P-W |\
+"F@ST2604" |\
+RTA1320_16M |\
+V2110)
+ ucidef_set_interface_lan "eth0"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
+ ;;
+
+96348GW |\
+96348GW-10 |\
+96348GW-11 |\
+96348GW-A |\
+96358VW |\
+96358VW2 |\
+AGPF-S0 |\
+"CPVA502+" |\
+DV201AMR |\
+DWV-S0 |\
+"F@ST2404" |\
+HW553 |\
+MAGIC |\
+RTA1025W_16 |\
+V2500V_BB)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ucidef_add_switch "eth1" "1" "1"
+ ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
+ ;;
+
+AW4139 |\
+HW556*)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
+ ;;
+
+NB4-* |\
+DVG3810BN)
+ ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+ ucidef_add_switch "eth1" "1" "1"
+ ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
+ ;;
+
+96328avng |\
+96328A-1241N |\
+96328A-1441N1 |\
+963281TAN |\
+963281T_TEF |\
+96368MVNgr)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
+ ;;
+
+96368MVWG)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
+ ;;
+
+NB6)
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
+ ucidef_add_switch_vlan "switch0" "2" "0 9t"
+ ;;
+
+*)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ;;
+
+esac
+
+uci commit network
+
+exit 0
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/09_fix_crc.svn-base b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/09_fix_crc.svn-base
new file mode 100644
index 0000000..2bb79cc
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/.svn/text-base/09_fix_crc.svn-base
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+#
+
+. /lib/brcm63xx.sh
+
+do_fixcrc() {
+ mtd fixtrx linux
+}
+
+brcm63xx_detect
+
+case "$board_name" in
+ 96328avng |\
+ 96328A-1241N |\
+ 96328A-1441N1 |\
+ 963281TAN |\
+ 963281T_TEF |\
+ 96358-502V |\
+ "CPVA502+" |\
+ AW4339U |\
+ CPVA642 |\
+ CT6373-1 |\
+ MAGIC |\
+ V2110 |\
+ RTA770BW |\
+ RTA770W |\
+ V2500V_BB)
+ do_fixcrc
+ ;;
+esac
+
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
new file mode 100755
index 0000000..f59fed6
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
@@ -0,0 +1,108 @@
+#!/bin/sh
+#
+# Copyright (C) 2012 OpenWrt.org
+#
+
+[ -e /etc/config/network ] && exit 0
+
+touch /etc/config/network
+
+. /lib/functions/uci-defaults.sh
+. /lib/brcm63xx.sh
+
+ucidef_set_interface_loopback
+
+case "$board_name" in
+
+RTA770BW |\
+RTA770W |\
+96348W3 |\
+96358-502V |\
+SPW500V)
+ ucidef_set_interface_lan "eth0"
+ ;;
+
+96338GW |\
+96338W |\
+96338W2_E7T |\
+96348A-122 |\
+96348W3 |\
+CPVA642 |\
+CT536_CT5621 |\
+CT6373-1 |\
+D-4P-W |\
+"F@ST2604" |\
+RTA1320_16M |\
+V2110)
+ ucidef_set_interface_lan "eth0"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
+ ;;
+
+96348GW |\
+96348GW-10 |\
+96348GW-11 |\
+96348GW-A |\
+96358VW |\
+96358VW2 |\
+AGPF-S0 |\
+"CPVA502+" |\
+DV201AMR |\
+DWV-S0 |\
+"F@ST2404" |\
+HW553 |\
+MAGIC |\
+RTA1025W_16 |\
+V2500V_BB)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ucidef_add_switch "eth1" "1" "1"
+ ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
+ ;;
+
+AW4139 |\
+HW556*)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
+ ;;
+
+NB4-* |\
+DVG3810BN)
+ ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+ ucidef_add_switch "eth1" "1" "1"
+ ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
+ ;;
+
+96328avng |\
+96328A-1241N |\
+96328A-1441N1 |\
+963281TAN |\
+963281T_TEF |\
+96368MVNgr)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
+ ;;
+
+96368MVWG)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "eth0" "1" "1"
+ ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
+ ;;
+
+NB6)
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
+ ucidef_add_switch_vlan "switch0" "2" "0 9t"
+ ;;
+
+*)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ;;
+
+esac
+
+uci commit network
+
+exit 0
diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
new file mode 100755
index 0000000..2bb79cc
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+#
+
+. /lib/brcm63xx.sh
+
+do_fixcrc() {
+ mtd fixtrx linux
+}
+
+brcm63xx_detect
+
+case "$board_name" in
+ 96328avng |\
+ 96328A-1241N |\
+ 96328A-1441N1 |\
+ 963281TAN |\
+ 963281T_TEF |\
+ 96358-502V |\
+ "CPVA502+" |\
+ AW4339U |\
+ CPVA642 |\
+ CT6373-1 |\
+ MAGIC |\
+ V2110 |\
+ RTA770BW |\
+ RTA770W |\
+ V2500V_BB)
+ do_fixcrc
+ ;;
+esac
+
diff --git a/target/linux/brcm63xx/base-files/lib/.svn/entries b/target/linux/brcm63xx/base-files/lib/.svn/entries
new file mode 100644
index 0000000..008855e
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/.svn/entries
@@ -0,0 +1,68 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/lib
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-03-04T13:42:35.262045Z
+35880
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+brcm63xx.sh
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+5b1dad8571abea26f9adf7b3ef02afb8
+2013-03-04T13:42:35.262045Z
+35880
+florian
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2350
+
+upgrade
+dir
+
+preinit
+dir
+
diff --git a/target/linux/brcm63xx/base-files/lib/.svn/prop-base/brcm63xx.sh.svn-base b/target/linux/brcm63xx/base-files/lib/.svn/prop-base/brcm63xx.sh.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/.svn/prop-base/brcm63xx.sh.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/brcm63xx/base-files/lib/.svn/text-base/brcm63xx.sh.svn-base b/target/linux/brcm63xx/base-files/lib/.svn/text-base/brcm63xx.sh.svn-base
new file mode 100644
index 0000000..ded946d
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/.svn/text-base/brcm63xx.sh.svn-base
@@ -0,0 +1,125 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+#
+
+board_name=""
+status_led=""
+status_led2=""
+sys_mtd_part=""
+brcm63xx_has_reset_button=""
+ifname=""
+
+brcm63xx_detect() {
+ board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
+
+ if [ "$board_name" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
+ board_name="DVAG3810BN"
+ fi
+
+ case "$board_name" in
+ 96328avng)
+ status_led="96328avng::power"
+ ifname=eth0
+ ;;
+ 96328A-1241N)
+ brcm63xx_has_reset_button="true"
+ status_led="96328A-1241N:green:power"
+ ifname=eth0
+ ;;
+ RTA770BW)
+ brcm63xx_has_reset_button="true"
+ status_led="RTA770BW:green:diag"
+ ifname=eth0
+ ;;
+ RTA770W)
+ brcm63xx_has_reset_button="true"
+ status_led="RTA770W:green:diag"
+ ifname=eth0
+ ;;
+ 96328A-1441N1)
+ brcm63xx_has_reset_button="true"
+ status_led="96328A-1441N1:green:power"
+ ifname=eth0
+ ;;
+ 963281TAN)
+ status_led="963281TAN::power"
+ ifname=eth0
+ ;;
+ 963281T_TEF)
+ brcm63xx_has_reset_button="true"
+ status_led="963281T_TEF:green:power"
+ ifname=eth0
+ ;;
+ 96348GW)
+ status_led="96348GW:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ GW6000)
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ GW6200)
+ status_led="GW6200:green:line1"
+ status_led2="GW6200:green:tel"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ HW556*)
+ status_led="HW556:red:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ 96348GW-11)
+ status_led="96348GW-11:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ CT536_CT5621)
+ status_led="CT536_CT5621:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ SPW500V)
+ status_led="SPW500V:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ AW4139 |\
+ AW4339U)
+ status_led="dsl-274xb:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ 96358-502V)
+ status_led="spw303v:green:power+adsl"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ V2110)
+ status_led="V2110:power:green"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ CPVA642)
+ status_led="CPVA642:green:power:"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ D-4P-W)
+ status_led="D-4P-W:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ NB6)
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ *)
+ ;;
+ esac
+}
+
+brcm63xx_detect
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
new file mode 100755
index 0000000..ded946d
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -0,0 +1,125 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+#
+
+board_name=""
+status_led=""
+status_led2=""
+sys_mtd_part=""
+brcm63xx_has_reset_button=""
+ifname=""
+
+brcm63xx_detect() {
+ board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
+
+ if [ "$board_name" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
+ board_name="DVAG3810BN"
+ fi
+
+ case "$board_name" in
+ 96328avng)
+ status_led="96328avng::power"
+ ifname=eth0
+ ;;
+ 96328A-1241N)
+ brcm63xx_has_reset_button="true"
+ status_led="96328A-1241N:green:power"
+ ifname=eth0
+ ;;
+ RTA770BW)
+ brcm63xx_has_reset_button="true"
+ status_led="RTA770BW:green:diag"
+ ifname=eth0
+ ;;
+ RTA770W)
+ brcm63xx_has_reset_button="true"
+ status_led="RTA770W:green:diag"
+ ifname=eth0
+ ;;
+ 96328A-1441N1)
+ brcm63xx_has_reset_button="true"
+ status_led="96328A-1441N1:green:power"
+ ifname=eth0
+ ;;
+ 963281TAN)
+ status_led="963281TAN::power"
+ ifname=eth0
+ ;;
+ 963281T_TEF)
+ brcm63xx_has_reset_button="true"
+ status_led="963281T_TEF:green:power"
+ ifname=eth0
+ ;;
+ 96348GW)
+ status_led="96348GW:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ GW6000)
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ GW6200)
+ status_led="GW6200:green:line1"
+ status_led2="GW6200:green:tel"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ HW556*)
+ status_led="HW556:red:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ 96348GW-11)
+ status_led="96348GW-11:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth1
+ ;;
+ CT536_CT5621)
+ status_led="CT536_CT5621:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ SPW500V)
+ status_led="SPW500V:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ AW4139 |\
+ AW4339U)
+ status_led="dsl-274xb:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ 96358-502V)
+ status_led="spw303v:green:power+adsl"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ V2110)
+ status_led="V2110:power:green"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ CPVA642)
+ status_led="CPVA642:green:power:"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ D-4P-W)
+ status_led="D-4P-W:green:power"
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ NB6)
+ brcm63xx_has_reset_button="true"
+ ifname=eth0
+ ;;
+ *)
+ ;;
+ esac
+}
+
+brcm63xx_detect
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/entries b/target/linux/brcm63xx/base-files/lib/preinit/.svn/entries
new file mode 100644
index 0000000..e648a82
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/entries
@@ -0,0 +1,232 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/lib/preinit
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-02-05T22:25:30.479476Z
+35504
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+05_failsafe_config_switch_brcm63xx
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+8707c046e5dced7e37dd8592d19e754e
+2013-01-23T10:12:40.487841Z
+35307
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+223
+
+05_init_interfaces_brcm63xx
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+7e1ad27d6efdc6240bd5bac0f631b89e
+2013-02-05T22:25:30.479476Z
+35504
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+110
+
+15_set_preinit_interface_brcm63xx
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+69b22b9a83494fbfce3b4769e83c6e35
+2013-01-23T10:12:40.487841Z
+35307
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+509
+
+03_do_brcm63xx.sh
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+24fb44c41b57e9b0ac9c2642e08328be
+2010-05-30T01:32:47.284749Z
+21626
+cshore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+89
+
+20_failsafe_net_echo_brcm63xx
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+1faf4dd94e0099e9c722834e17673bcd
+2010-05-30T01:33:20.625920Z
+21629
+cshore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+166
+
+05_reset_button_brcm63xx
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+65c346e9289b7a7bc905d7852ae695b0
+2013-02-05T22:25:30.479476Z
+35504
+florian
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+258
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/03_do_brcm63xx.sh.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/03_do_brcm63xx.sh.svn-base
new file mode 100644
index 0000000..dd60c49
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/03_do_brcm63xx.sh.svn-base
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_brcm63xx() {
+ . /lib/brcm63xx.sh
+}
+
+boot_hook_add preinit_main do_brcm63xx
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_failsafe_config_switch_brcm63xx.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_failsafe_config_switch_brcm63xx.svn-base
new file mode 100644
index 0000000..e1653e3
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_failsafe_config_switch_brcm63xx.svn-base
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+failsafe_ip() {
+ [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
+ ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
+ }
+}
+
+boot_hook_add failsafe failsafe_ip
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_init_interfaces_brcm63xx.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_init_interfaces_brcm63xx.svn-base
new file mode 100644
index 0000000..1de59b7
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_init_interfaces_brcm63xx.svn-base
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set_preinit_iface() {
+ ifconfig $ifname 0.0.0.0 up
+}
+
+boot_hook_add preinit_main set_preinit_iface
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_reset_button_brcm63xx.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_reset_button_brcm63xx.svn-base
new file mode 100644
index 0000000..0dfca73
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/05_reset_button_brcm63xx.svn-base
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+enable_reset_button() {
+ if [ "$brcm63xx_has_reset_button" = "true" ]; then
+ insmod input-core
+ insmod input-polldev
+ insmod gpio_buttons
+ insmod button-hotplug
+ insmod gpio_keys_polled
+ fi
+}
+
+boot_hook_add preinit_main enable_reset_button
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/15_set_preinit_interface_brcm63xx.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/15_set_preinit_interface_brcm63xx.svn-base
new file mode 100644
index 0000000..7655fb7
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/15_set_preinit_interface_brcm63xx.svn-base
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+port_net_echo() {
+ [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
+ if [ "$pi_preinit_net_messages" = "y" ] || [ "$pi_failsafe_net_message" = "true" ] && [ "$pi_preinit_no_failsafe_netmsg" != "y" ]; then
+ netmsg $pi_broadcast "$1"
+ fi
+ }
+}
+
+preinit_ip_deconfig() {
+ if [ -z "$pi_ifname" ]; then
+ ifconfig $ifname 0.0.0.0 down
+ else
+ grep -q "$pi_ifname" /proc/net/dev && {
+ ifconfig $pi_ifname 0.0.0.0 down
+ }
+ fi
+}
+
+preinit_net_echo() {
+ preinit_ip
+
+ port_net_echo $1
+}
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/20_failsafe_net_echo_brcm63xx.svn-base b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/20_failsafe_net_echo_brcm63xx.svn-base
new file mode 100644
index 0000000..f030cb2
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/.svn/text-base/20_failsafe_net_echo_brcm63xx.svn-base
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+indicate_failsafe() {
+ preinit_net_echo() {
+ port_net_echo $1
+ }
+ echo "- failsafe -"
+ preinit_net_echo "Entering Failsafe!\n"
+ indicate_failsafe_led
+}
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh
new file mode 100644
index 0000000..dd60c49
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+do_brcm63xx() {
+ . /lib/brcm63xx.sh
+}
+
+boot_hook_add preinit_main do_brcm63xx
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_failsafe_config_switch_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_failsafe_config_switch_brcm63xx
new file mode 100644
index 0000000..e1653e3
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/05_failsafe_config_switch_brcm63xx
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+failsafe_ip() {
+ [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
+ ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
+ }
+}
+
+boot_hook_add failsafe failsafe_ip
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx
new file mode 100644
index 0000000..1de59b7
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set_preinit_iface() {
+ ifconfig $ifname 0.0.0.0 up
+}
+
+boot_hook_add preinit_main set_preinit_iface
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
new file mode 100644
index 0000000..0dfca73
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+enable_reset_button() {
+ if [ "$brcm63xx_has_reset_button" = "true" ]; then
+ insmod input-core
+ insmod input-polldev
+ insmod gpio_buttons
+ insmod button-hotplug
+ insmod gpio_keys_polled
+ fi
+}
+
+boot_hook_add preinit_main enable_reset_button
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/15_set_preinit_interface_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/15_set_preinit_interface_brcm63xx
new file mode 100644
index 0000000..7655fb7
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/15_set_preinit_interface_brcm63xx
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+port_net_echo() {
+ [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
+ if [ "$pi_preinit_net_messages" = "y" ] || [ "$pi_failsafe_net_message" = "true" ] && [ "$pi_preinit_no_failsafe_netmsg" != "y" ]; then
+ netmsg $pi_broadcast "$1"
+ fi
+ }
+}
+
+preinit_ip_deconfig() {
+ if [ -z "$pi_ifname" ]; then
+ ifconfig $ifname 0.0.0.0 down
+ else
+ grep -q "$pi_ifname" /proc/net/dev && {
+ ifconfig $pi_ifname 0.0.0.0 down
+ }
+ fi
+}
+
+preinit_net_echo() {
+ preinit_ip
+
+ port_net_echo $1
+}
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/20_failsafe_net_echo_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/20_failsafe_net_echo_brcm63xx
new file mode 100644
index 0000000..f030cb2
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/20_failsafe_net_echo_brcm63xx
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+indicate_failsafe() {
+ preinit_net_echo() {
+ port_net_echo $1
+ }
+ echo "- failsafe -"
+ preinit_net_echo "Entering Failsafe!\n"
+ indicate_failsafe_led
+}
+
+
diff --git a/target/linux/brcm63xx/base-files/lib/upgrade/.svn/entries b/target/linux/brcm63xx/base-files/lib/upgrade/.svn/entries
new file mode 100644
index 0000000..10a8190
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/upgrade/.svn/entries
@@ -0,0 +1,62 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/brcm63xx/base-files/lib/upgrade
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-02-21T11:45:41.265966Z
+35724
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+platform.sh
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+aeaa9a0e30a161e1e9651ef3817ec0b0
+2013-02-21T11:45:41.265966Z
+35724
+jogo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+339
+
diff --git a/target/linux/brcm63xx/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/brcm63xx/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base
new file mode 100644
index 0000000..63ab774
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base
@@ -0,0 +1,16 @@
+PART_NAME=linux
+platform_check_image() {
+ [ "$ARGC" -gt 1 ] && return 1
+ case "$(get_magic_word "$1")" in
+ 3600|3700|3800)
+ # 6348GW-11 boards use openwrt-96348GW-11-squashfs-cfe.bin files
+ return 0
+ ;;
+ *)
+ echo "Invalid image type. Please use only .bin files"
+ return 1
+ ;;
+ esac
+}
+
+# use default for platform_do_upgrade()
diff --git a/target/linux/brcm63xx/base-files/lib/upgrade/platform.sh b/target/linux/brcm63xx/base-files/lib/upgrade/platform.sh
new file mode 100644
index 0000000..63ab774
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/upgrade/platform.sh
@@ -0,0 +1,16 @@
+PART_NAME=linux
+platform_check_image() {
+ [ "$ARGC" -gt 1 ] && return 1
+ case "$(get_magic_word "$1")" in
+ 3600|3700|3800)
+ # 6348GW-11 boards use openwrt-96348GW-11-squashfs-cfe.bin files
+ return 0
+ ;;
+ *)
+ echo "Invalid image type. Please use only .bin files"
+ return 1
+ ;;
+ esac
+}
+
+# use default for platform_do_upgrade()