[source] ramips: prepare ZBT-WG3526 for hardware variants
LEDE Commits
lede-commits at lists.infradead.org
Tue Apr 25 10:30:38 PDT 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/619d68bfc90e548e3398b26a2a0ca3fccd7d3f38
commit 619d68bfc90e548e3398b26a2a0ca3fccd7d3f38
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Fri Apr 7 23:52:27 2017 +0200
ramips: prepare ZBT-WG3526 for hardware variants
The ZBT-WG3526 is available with 16 or 32 MByte of flash. Rename the
current supported 16MByte version to indicate which flash size variant
is supported.
Signed-off-by: Mathias Kresin <dev at kresin.me>
---
target/linux/ramips/base-files/etc/board.d/02_network | 2 +-
target/linux/ramips/base-files/etc/diag.sh | 6 ++++--
target/linux/ramips/base-files/lib/ramips.sh | 4 ++--
target/linux/ramips/base-files/lib/upgrade/platform.sh | 2 +-
target/linux/ramips/dts/{ZBT-WG3526.dts => ZBT-WG3526-16M.dts} | 2 +-
target/linux/ramips/image/mt7621.mk | 9 +++++----
6 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 1abe139..391a8b6 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -115,7 +115,7 @@ ramips_setup_interfaces()
zbt-we1326|\
zbt-we826|\
zbt-wg2626|\
- zbt-wg3526|\
+ zbt-wg3526-16M|\
zbt-wr8305rt)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6 at eth0"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index e5b4b59..999ad9f 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -79,8 +79,7 @@ get_status_led() {
rut5xx|\
v11st-fe|\
wmr-300|\
- zbt-wg2626|\
- zbt-wg3526)
+ zbt-wg2626)
status_led="$board:green:status"
;;
ai-br100|\
@@ -275,6 +274,9 @@ get_status_led() {
zbt-cpe102)
status_led="$board:green:4g-0"
;;
+ zbt-wg3526-16M)
+ status_led="zbt-wg3526:green:status"
+ ;;
esac
}
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 61f8a70..d0abd2d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -661,8 +661,8 @@ ramips_board_detect() {
*"ZBT-WG2626")
name="zbt-wg2626"
;;
- *"ZBT-WG3526")
- name="zbt-wg3526"
+ *"ZBT-WG3526 (16M)")
+ name="zbt-wg3526-16M"
;;
*"ZBT-WR8305RT")
name="zbt-wr8305rt"
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index ae5a07b..f329b43 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -196,7 +196,7 @@ platform_check_image() {
zbt-we2026|\
zbt-we826|\
zbt-wg2626|\
- zbt-wg3526|\
+ zbt-wg3526-16M|\
zbt-wr8305rt|\
zte-q7|\
youku-yk1)
diff --git a/target/linux/ramips/dts/ZBT-WG3526.dts b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
similarity index 83%
rename from target/linux/ramips/dts/ZBT-WG3526.dts
rename to target/linux/ramips/dts/ZBT-WG3526-16M.dts
index c361bdd..fb64450 100644
--- a/target/linux/ramips/dts/ZBT-WG3526.dts
+++ b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
@@ -3,7 +3,7 @@
#include "ZBT-WG3526.dtsi"
/ {
- model = "ZBT-WG3526";
+ model = "ZBT-WG3526 (16M)";
};
&firmware {
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 0e418fe..ae5bf5e 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -261,13 +261,14 @@ define Device/zbt-wg2626
endef
TARGET_DEVICES += zbt-wg2626
-define Device/zbt-wg3526
- DTS := ZBT-WG3526
+define Device/zbt-wg3526-16M
+ DTS := ZBT-WG3526-16M
IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := ZBT WG3526
+ SUPPORTED_DEVICES += zbt-wg3526
+ DEVICE_TITLE := ZBT WG3526 (16MB flash)
DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620
endef
-TARGET_DEVICES += zbt-wg3526
+TARGET_DEVICES += zbt-wg3526-16M
# FIXME: is this still needed?
define Image/Prepare
More information about the lede-commits
mailing list