AA: ramips: add DIR-615 D userspace support
authorGabor Juhos <juhosg@openwrt.org>
Sun, 25 Nov 2012 16:23:07 +0000 (16:23 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 25 Nov 2012 16:23:07 +0000 (16:23 +0000)
Backport of r34331.

Commit 7c8edac25f23c4fc14239fdc293caa1317649944 introduced new machine and
Makefile changes to build images for this target. However, without the userspace
bits a ramips machine can't use wifi as the necessary "eeprom" data is to be
extracted by a hotplug script; also, sysupgrade support and default led
configuration are missing.

An IRC user reported these changes allowed him to use wifi on his hardware.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34375

target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/ramips/base-files/etc/uci-defaults/leds
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh

index 1988e14d61999ef669d8dc43d1719d037484590c..b963b8a6d279bb2b13f143ec95eff7480e71f095 100755 (executable)
@@ -36,7 +36,7 @@ get_status_led() {
        argus-atp52b)
                status_led="argus-atp52b:green:run"
                ;;
-       dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-620-a1)
+       dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1)
                status_led="d-link:green:status"
                ;;
        dir-645)
index bb7f66284e3c491117e7ab27c3b1579be5827952..ed0d8713c4b6f776181f2587fd69675d56b1db9c 100644 (file)
@@ -42,6 +42,7 @@ case "$FIRMWARE" in
                rt2x00_eeprom_extract "devdata" 0 272
                ;;
 
+       dir-615-d | \
        rt-n10-plus | \
        rt-g32-b1)
                rt2x00_eeprom_extract "devconf" 0 272
index 2fddc011ed1be90e38720d6de6c02801142790bd..81d9c44ea83faf2192eea09be999ca26529e55b3 100755 (executable)
@@ -36,6 +36,7 @@ case $board in
                ucidef_set_led_default "wan" "WAN LED (amber)" "d-link:amber:wan" "1"
                set_wifi_led "rt2800pci-phy0::radio"
                ;;
+       dir-615-d|\
        dir-615-h1)
                ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0"
                set_wifi_led "rt2800pci-phy0::radio"
index 3fbba15f6b5d4b95d20cb6f34c74d729b8d7633f..f9b874f8b9dfadc22814c0ebfd10899ffc30e6cc 100755 (executable)
@@ -92,6 +92,9 @@ ramips_board_name() {
        *"DIR-615 H1")
                name="dir-615-h1"
                ;;
+       *"DIR-615 D")
+               name="dir-615-d"
+               ;;
        *"DIR-645")
                name="dir-645"
                ;;
index 94db99b700093c9e9507b5fcc883d036ffed7fd5..0b53d7e7c6f1c019a4e56184cf3f36b30575fd82 100755 (executable)
@@ -24,6 +24,7 @@ platform_check_image() {
        dir-600-b1 | \
        dir-600-b2 | \
        dir-615-h1 | \
+       dir-615-d | \
        dir-620-a1 | \
        dap-1350 | \
        esr-9753 | \