ar71xx: add user-space support for the BXU2000n-2 A1 board
authorGabor Juhos <juhosg@openwrt.org>
Wed, 30 Oct 2013 06:50:58 +0000 (06:50 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 30 Oct 2013 06:50:58 +0000 (06:50 +0000)
Patchwork: http://patchwork.openwrt.org/patch/4183/
Signed-off-by: Terry Yang <yangbo@bhunetworks.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38592

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index a4a8408960e9b07c0f603cfd4eb4e5b65fbcdc08..1cabd1058e82ef9dca4b7892d74a850a1efefdfb 100755 (executable)
@@ -37,6 +37,9 @@ get_status_led() {
        bullet-m | rocket-m | nano-m | nanostation-m)
                status_led="ubnt:green:link4"
                ;;
+       bxu2000n-2-a1)
+               status_led="bhu:green:status"
+               ;;
        cap4200ag)
                status_led="senao:green:pwr"
                ;;
index bd1c4b78b557980981daa48b797d8a793509c06d..5566bfa82d3437c368f12dfcb986ff711c15ba69 100755 (executable)
@@ -32,6 +32,10 @@ ap113)
        ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1"
        ;;
 
+bxu2000n-2-a1)
+       ucidef_set_led_wlan "wlan" "WLAN" "bhu:green:wlan" "phy0tpt"
+       ;;
+
 cap4200ag)
        ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1"
        ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt"
index 633fae12fac53d55d53bd27e2d1c724d5773529a..cd03168857ccbf53feb64974424c5600ca971cbe 100755 (executable)
@@ -576,6 +576,9 @@ ar71xx_board_detect() {
        *"Sitecom WLR-8100")
                name="wlr8100"
                ;;
+       *"BHU BXU2000n-2 rev. A1")
+               name="bxu2000n-2-a1"
+               ;;
        esac
 
        case "$machine" in
index 28e4a91ff1c43302b2a5dc6191d575f64e107e84..ae04a8c3197ecedcc4edd53f43914173c2ba2bc6 100755 (executable)
@@ -98,6 +98,7 @@ platform_check_image() {
        ap96 | \
        db120 | \
        hornet-ub | \
+       bxu2000n-2-a1 | \
        zcn-1523h-2 | \
        zcn-1523h-5)
                [ "$magic_long" != "68737173" -a "$magic_long" != "19852003" ] && {