diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-25 16:23:07 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-25 16:23:07 +0000 |
commit | ec93d4a636a29be217c8ba4f93d3b6be50d63d34 (patch) | |
tree | 1f8d0bad6a3fee419a68aba3c179a0f3d7d8a32d /target/linux/ramips | |
parent | eb96c30a00d8890f2b469dcf487bef925f2cd69f (diff) | |
download | openwrt-ec93d4a636a29be217c8ba4f93d3b6be50d63d34.tar.gz openwrt-ec93d4a636a29be217c8ba4f93d3b6be50d63d34.zip |
AA: ramips: add DIR-615 D userspace support
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>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
5 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 1988e14d6..b963b8a6d 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -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) diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index bb7f66284..ed0d8713c 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -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 diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index 2fddc011e..81d9c44ea 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -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" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 3fbba15f6..f9b874f8b 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -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" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 94db99b70..0b53d7e7c 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -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 | \ |