ramips: fix Xiaomi MiWiFi Mini board, image and profile names
The following patch: * changes board name from "xiaomi-miwifi-mini" to "miwifi-mini" * changes filenames of dts and profile * fixes LED names in dts file and base-files scripts * removes manufacturer name from image filename for Xiaomi MiWiFi Mini device. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46617
This commit is contained in:
parent
5a6690a7a6
commit
a0b8c60134
8 changed files with 16 additions and 16 deletions
|
@ -256,8 +256,8 @@ case $board in
|
||||||
wt3020)
|
wt3020)
|
||||||
ucidef_set_led_default "power" "power" "nexx:blue:power" "0"
|
ucidef_set_led_default "power" "power" "nexx:blue:power" "0"
|
||||||
;;
|
;;
|
||||||
xiaomi-miwifi-mini)
|
miwifi-mini)
|
||||||
ucidef_set_led_default "power" "power" "xiaomi:red:status" "1"
|
ucidef_set_led_default "power" "power" "miwifi-mini:red:status" "1"
|
||||||
;;
|
;;
|
||||||
y1 |\
|
y1 |\
|
||||||
y1s)
|
y1s)
|
||||||
|
|
|
@ -144,7 +144,7 @@ ramips_setup_interfaces()
|
||||||
wsr-600 | \
|
wsr-600 | \
|
||||||
wsr-1166 | \
|
wsr-1166 | \
|
||||||
wt1520 | \
|
wt1520 | \
|
||||||
xiaomi-miwifi-mini |\
|
miwifi-mini |\
|
||||||
y1)
|
y1)
|
||||||
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
||||||
ucidef_add_switch "switch0" "1" "1"
|
ucidef_add_switch "switch0" "1" "1"
|
||||||
|
|
|
@ -233,8 +233,8 @@ get_status_led() {
|
||||||
xdxrn502j)
|
xdxrn502j)
|
||||||
status_led="xdxrn502j:green:power"
|
status_led="xdxrn502j:green:power"
|
||||||
;;
|
;;
|
||||||
xiaomi-mini)
|
miwifi-mini)
|
||||||
status_led="xiaomi:red:status"
|
status_led="miwifi-mini:red:status"
|
||||||
;;
|
;;
|
||||||
f7c027)
|
f7c027)
|
||||||
status_led="belkin:orange:status"
|
status_led="belkin:orange:status"
|
||||||
|
|
|
@ -395,7 +395,7 @@ ramips_board_detect() {
|
||||||
name="ncs601w"
|
name="ncs601w"
|
||||||
;;
|
;;
|
||||||
*"Xiaomi MiWiFi Mini")
|
*"Xiaomi MiWiFi Mini")
|
||||||
name="xiaomi-miwifi-mini"
|
name="miwifi-mini"
|
||||||
;;
|
;;
|
||||||
*"Sercomm NA930")
|
*"Sercomm NA930")
|
||||||
name="na930"
|
name="na930"
|
||||||
|
|
|
@ -123,7 +123,7 @@ platform_check_image() {
|
||||||
wt3020 |\
|
wt3020 |\
|
||||||
x5 |\
|
x5 |\
|
||||||
x8 |\
|
x8 |\
|
||||||
xiaomi-miwifi-mini |\
|
miwifi-mini |\
|
||||||
y1 |\
|
y1 |\
|
||||||
y1s |\
|
y1s |\
|
||||||
zte-q7 |\
|
zte-q7 |\
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/include/ "mt7620a.dtsi"
|
/include/ "mt7620a.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "XIAOMI MIWIFI MINI", "ralink,mt7620a-soc";
|
compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
|
||||||
model = "Xiaomi MiWiFi Mini";
|
model = "Xiaomi MiWiFi Mini";
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
@ -120,17 +120,17 @@
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
blue {
|
blue {
|
||||||
label = "xiaomi:blue:status";
|
label = "miwifi-mini:blue:status";
|
||||||
gpios = <&gpio1 0 1>;
|
gpios = <&gpio1 0 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
yellow {
|
yellow {
|
||||||
label = "xiaomi:yellow:status";
|
label = "miwifi-mini:yellow:status";
|
||||||
gpios = <&gpio1 2 1>;
|
gpios = <&gpio1 2 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
red {
|
red {
|
||||||
label = "xiaomi:red:status";
|
label = "miwifi-mini:red:status";
|
||||||
gpios = <&gpio1 5 1>;
|
gpios = <&gpio1 5 1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -878,7 +878,7 @@ Image/Build/Profile/WMR300=$(call BuildFirmware/Default8M/$(1),$(1),wmr-300,WMR3
|
||||||
Image/Build/Profile/RT-N14U=$(call BuildFirmware/Default8M/$(1),$(1),rt-n14u,RT-N14U)
|
Image/Build/Profile/RT-N14U=$(call BuildFirmware/Default8M/$(1),$(1),rt-n14u,RT-N14U)
|
||||||
Image/Build/Profile/WRTNODE=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode,WRTNODE)
|
Image/Build/Profile/WRTNODE=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode,WRTNODE)
|
||||||
Image/Build/Profile/WT3020=$(call BuildFirmware/PorayDualSize/$(1),$(1),wt3020,WT3020)
|
Image/Build/Profile/WT3020=$(call BuildFirmware/PorayDualSize/$(1),$(1),wt3020,WT3020)
|
||||||
Image/Build/Profile/XIAOMI-MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1),xiaomi-miwifi-mini,XIAOMI-MIWIFI-MINI)
|
Image/Build/Profile/MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1),miwifi-mini,MIWIFI-MINI)
|
||||||
Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7)
|
Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7)
|
||||||
Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05)
|
Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05)
|
||||||
Image/Build/Profile/ZBT-WR8305RT=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wr8305rt,ZBT-WR8305RT)
|
Image/Build/Profile/ZBT-WR8305RT=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wr8305rt,ZBT-WR8305RT)
|
||||||
|
@ -912,7 +912,7 @@ define Image/Build/Profile/Default
|
||||||
$(call Image/Build/Profile/RT-N14U,$(1))
|
$(call Image/Build/Profile/RT-N14U,$(1))
|
||||||
$(call Image/Build/Profile/WRTNODE,$(1))
|
$(call Image/Build/Profile/WRTNODE,$(1))
|
||||||
$(call Image/Build/Profile/WT3020,$(1))
|
$(call Image/Build/Profile/WT3020,$(1))
|
||||||
$(call Image/Build/Profile/XIAOMI-MIWIFI-MINI,$(1))
|
$(call Image/Build/Profile/MIWIFI-MINI,$(1))
|
||||||
$(call Image/Build/Profile/ZTE-Q7,$(1))
|
$(call Image/Build/Profile/ZTE-Q7,$(1))
|
||||||
$(call Image/Build/Profile/ZBT-WA05,$(1))
|
$(call Image/Build/Profile/ZBT-WA05,$(1))
|
||||||
$(call Image/Build/Profile/ZBT-WR8305RT,$(1))
|
$(call Image/Build/Profile/ZBT-WR8305RT,$(1))
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
define Profile/XIAOMI-MIWIFI-MINI
|
define Profile/MIWIFI-MINI
|
||||||
NAME:=Xiaomi MiWiFi Mini
|
NAME:=Xiaomi MiWiFi Mini
|
||||||
PACKAGES:=\
|
PACKAGES:=\
|
||||||
kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
|
kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
|
||||||
kmod-mt76
|
kmod-mt76
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Profile/XIAOMI-MIWIFI-MINI/Description
|
define Profile/MIWIFI-MINI/Description
|
||||||
Support for Xiaomi MiWiFi Mini routers
|
Support for Xiaomi MiWiFi Mini routers
|
||||||
endef
|
endef
|
||||||
$(eval $(call Profile,XIAOMI-MIWIFI-MINI))
|
$(eval $(call Profile,MIWIFI-MINI))
|
Loading…
Reference in a new issue