From: Gabor Juhos Date: Wed, 30 Oct 2013 06:50:58 +0000 (+0000) Subject: ar71xx: add user-space support for the BXU2000n-2 A1 board X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=003a801dd97923af8b80479e0f78f699a8d562bc;p=openwrt%2Fstaging%2Fdangole.git ar71xx: add user-space support for the BXU2000n-2 A1 board Patchwork: http://patchwork.openwrt.org/patch/4183/ Signed-off-by: Terry Yang Signed-off-by: Gabor Juhos SVN-Revision: 38592 --- diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index a4a8408960..1cabd1058e 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -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" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index bd1c4b78b5..5566bfa82d 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -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" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 633fae12fa..cd03168857 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -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 diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 28e4a91ff1..ae04a8c319 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -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" ] && {