ipq806x: rename Xiaomi R3D to Xiaomi Mi Router HD

This makes it constant with other mi router series.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-10-13 15:28:52 +08:00
parent c3f55637a9
commit 55fddb6143
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
8 changed files with 12 additions and 12 deletions

View File

@ -45,7 +45,7 @@ qcom,ipq8064-ap148 |\
qcom,ipq8064-db149) qcom,ipq8064-db149)
ubootenv_add_uci_config $(ubootenv_mtdinfo) ubootenv_add_uci_config $(ubootenv_mtdinfo)
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000" ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
ubootenv_add_uci_sys_config "/dev/mtd12" "0x0" "0x10000" "0x10000" ubootenv_add_uci_sys_config "/dev/mtd12" "0x0" "0x10000" "0x10000"
;; ;;

View File

@ -72,7 +72,7 @@ tplink,ad7200)
ubnt,unifi-ac-hd) ubnt,unifi-ac-hd)
ucidef_set_interface_lan "eth0 eth1" ucidef_set_interface_lan "eth0 eth1"
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"1:lan:3" "2:lan:2" "3:lan:1" "6@eth1" "5:wan" "0@eth0" "1:lan:3" "2:lan:2" "3:lan:1" "6@eth1" "5:wan" "0@eth0"
;; ;;

View File

@ -44,7 +44,7 @@ case "$FIRMWARE" in
caldata_extract "ART" 0x1000 0x2f20 caldata_extract "ART" 0x1000 0x2f20
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 0x0) -1) ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 0x0) -1)
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
caldata_extract "ART" 0x1000 0x2f20 caldata_extract "ART" 0x1000 0x2f20
;; ;;
zyxel,nbg6817) zyxel,nbg6817)
@ -87,7 +87,7 @@ case "$FIRMWARE" in
caldata_extract "ART" 0x5000 0x2f20 caldata_extract "ART" 0x5000 0x2f20
ath10k_patch_mac $(mtd_get_mac_binary default-mac 0x0) ath10k_patch_mac $(mtd_get_mac_binary default-mac 0x0)
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
caldata_extract "ART" 0x5000 0x2f20 caldata_extract "ART" 0x5000 0x2f20
;; ;;
zyxel,nbg6817) zyxel,nbg6817)

View File

@ -16,7 +16,7 @@ boot() {
linksys,ea8500) linksys,ea8500)
mtd resetbc s_env || true mtd resetbc s_env || true
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
local boot_wait=$( fw_printenv boot_wait | cut -d = -f 2 ) local boot_wait=$( fw_printenv boot_wait | cut -d = -f 2 )
[ "$boot_wait" != "on" ] && fw_setenv boot_wait on [ "$boot_wait" != "on" ] && fw_setenv boot_wait on
local bootdelay=$( fw_printenv bootdelay | cut -d = -f 2 ) local bootdelay=$( fw_printenv bootdelay | cut -d = -f 2 )

View File

@ -54,7 +54,7 @@ platform_do_upgrade() {
MTD_CONFIG_ARGS="-s 0x200000" MTD_CONFIG_ARGS="-s 0x200000"
default_do_upgrade "$1" default_do_upgrade "$1"
;; ;;
xiaomi,r3d) xiaomi,mi-router-hd)
platform_do_upgrade_xiaomi "$1" 0x2800000 platform_do_upgrade_xiaomi "$1" 0x2800000
;; ;;
zyxel,nbg6817) zyxel,nbg6817)

View File

@ -5,8 +5,8 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
model = "Xiaomi Mi Router HD (R3D)"; model = "Xiaomi Mi Router HD";
compatible = "xiaomi,r3d", "qcom,ipq8064"; compatible = "xiaomi,mi-router-hd", "qcom,ipq8064";
memory@0 { memory@0 {
device_type = "memory"; device_type = "memory";

View File

@ -393,10 +393,10 @@ define Device/ubnt_unifi-ac-hd
endef endef
TARGET_DEVICES += ubnt_unifi-ac-hd TARGET_DEVICES += ubnt_unifi-ac-hd
define Device/xiaomi_r3d define Device/xiaomi_mi-router-hd
$(call Device/LegacyImage) $(call Device/LegacyImage)
DEVICE_VENDOR := Xiaomi DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := R3D DEVICE_MODEL := Mi Router HD
SOC := qcom-ipq8064 SOC := qcom-ipq8064
BLOCKSIZE := 128k BLOCKSIZE := 128k
PAGESIZE := 2048 PAGESIZE := 2048
@ -408,7 +408,7 @@ define Device/xiaomi_r3d
DEVICE_PACKAGES := kmod-i2c-gpio kmod-hwmon-lm75 hwmon-drivetemp \ DEVICE_PACKAGES := kmod-i2c-gpio kmod-hwmon-lm75 hwmon-drivetemp \
kmod-usb-storage-uas ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct kmod-usb-storage-uas ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
endef endef
TARGET_DEVICES += xiaomi_r3d TARGET_DEVICES += xiaomi_mi-router-hd
define Device/zyxel_nbg6817 define Device/zyxel_nbg6817
DEVICE_VENDOR := ZyXEL DEVICE_VENDOR := ZyXEL

View File

@ -23,7 +23,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
+ qcom-ipq8064-ea7500-v1.dtb \ + qcom-ipq8064-ea7500-v1.dtb \
+ qcom-ipq8064-ea8500.dtb \ + qcom-ipq8064-ea8500.dtb \
+ qcom-ipq8064-g10.dtb \ + qcom-ipq8064-g10.dtb \
+ qcom-ipq8064-r3d.dtb \ + qcom-ipq8064-mi-router-hd.dtb \
+ qcom-ipq8064-r7500.dtb \ + qcom-ipq8064-r7500.dtb \
+ qcom-ipq8064-r7500v2.dtb \ + qcom-ipq8064-r7500v2.dtb \
+ qcom-ipq8064-unifi-ac-hd.dtb \ + qcom-ipq8064-unifi-ac-hd.dtb \