• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Mirror only - Please move to https://github.com/immortalwrt/immortalwrt


Commit MetaInfo

Revision55fddb614311ca783c893ff37cb919d10faa975a (tree)
Time2022-10-13 16:29:57
AuthorTianling Shen <cnsztl@immo...>
CommiterTianling Shen

Log Message

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>

Change Summary

Incremental Difference

--- a/package/boot/uboot-envtools/files/ipq806x
+++ b/package/boot/uboot-envtools/files/ipq806x
@@ -45,7 +45,7 @@ qcom,ipq8064-ap148 |\
4545 qcom,ipq8064-db149)
4646 ubootenv_add_uci_config $(ubootenv_mtdinfo)
4747 ;;
48-xiaomi,r3d)
48+xiaomi,mi-router-hd)
4949 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
5050 ubootenv_add_uci_sys_config "/dev/mtd12" "0x0" "0x10000" "0x10000"
5151 ;;
--- a/target/linux/ipq806x/base-files/etc/board.d/02_network
+++ b/target/linux/ipq806x/base-files/etc/board.d/02_network
@@ -72,7 +72,7 @@ tplink,ad7200)
7272 ubnt,unifi-ac-hd)
7373 ucidef_set_interface_lan "eth0 eth1"
7474 ;;
75-xiaomi,r3d)
75+xiaomi,mi-router-hd)
7676 ucidef_add_switch "switch0" \
7777 "1:lan:3" "2:lan:2" "3:lan:1" "6@eth1" "5:wan" "0@eth0"
7878 ;;
--- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -44,7 +44,7 @@ case "$FIRMWARE" in
4444 caldata_extract "ART" 0x1000 0x2f20
4545 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 0x0) -1)
4646 ;;
47- xiaomi,r3d)
47+ xiaomi,mi-router-hd)
4848 caldata_extract "ART" 0x1000 0x2f20
4949 ;;
5050 zyxel,nbg6817)
@@ -87,7 +87,7 @@ case "$FIRMWARE" in
8787 caldata_extract "ART" 0x5000 0x2f20
8888 ath10k_patch_mac $(mtd_get_mac_binary default-mac 0x0)
8989 ;;
90- xiaomi,r3d)
90+ xiaomi,mi-router-hd)
9191 caldata_extract "ART" 0x5000 0x2f20
9292 ;;
9393 zyxel,nbg6817)
--- a/target/linux/ipq806x/base-files/etc/init.d/bootcount
+++ b/target/linux/ipq806x/base-files/etc/init.d/bootcount
@@ -16,7 +16,7 @@ boot() {
1616 linksys,ea8500)
1717 mtd resetbc s_env || true
1818 ;;
19- xiaomi,r3d)
19+ xiaomi,mi-router-hd)
2020 local boot_wait=$( fw_printenv boot_wait | cut -d = -f 2 )
2121 [ "$boot_wait" != "on" ] && fw_setenv boot_wait on
2222 local bootdelay=$( fw_printenv bootdelay | cut -d = -f 2 )
--- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
@@ -54,7 +54,7 @@ platform_do_upgrade() {
5454 MTD_CONFIG_ARGS="-s 0x200000"
5555 default_do_upgrade "$1"
5656 ;;
57- xiaomi,r3d)
57+ xiaomi,mi-router-hd)
5858 platform_do_upgrade_xiaomi "$1" 0x2800000
5959 ;;
6060 zyxel,nbg6817)
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-r3d.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-mi-router-hd.dts
@@ -5,8 +5,8 @@
55 #include <dt-bindings/input/input.h>
66
77 / {
8- model = "Xiaomi Mi Router HD (R3D)";
9- compatible = "xiaomi,r3d", "qcom,ipq8064";
8+ model = "Xiaomi Mi Router HD";
9+ compatible = "xiaomi,mi-router-hd", "qcom,ipq8064";
1010
1111 memory@0 {
1212 device_type = "memory";
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -393,10 +393,10 @@ define Device/ubnt_unifi-ac-hd
393393 endef
394394 TARGET_DEVICES += ubnt_unifi-ac-hd
395395
396-define Device/xiaomi_r3d
396+define Device/xiaomi_mi-router-hd
397397 $(call Device/LegacyImage)
398398 DEVICE_VENDOR := Xiaomi
399- DEVICE_MODEL := R3D
399+ DEVICE_MODEL := Mi Router HD
400400 SOC := qcom-ipq8064
401401 BLOCKSIZE := 128k
402402 PAGESIZE := 2048
@@ -408,7 +408,7 @@ define Device/xiaomi_r3d
408408 DEVICE_PACKAGES := kmod-i2c-gpio kmod-hwmon-lm75 hwmon-drivetemp \
409409 kmod-usb-storage-uas ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
410410 endef
411-TARGET_DEVICES += xiaomi_r3d
411+TARGET_DEVICES += xiaomi_mi-router-hd
412412
413413 define Device/zyxel_nbg6817
414414 DEVICE_VENDOR := ZyXEL
--- a/target/linux/ipq806x/patches-5.4/0069-arm-boot-add-dts-files.patch
+++ b/target/linux/ipq806x/patches-5.4/0069-arm-boot-add-dts-files.patch
@@ -23,7 +23,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
2323 + qcom-ipq8064-ea7500-v1.dtb \
2424 + qcom-ipq8064-ea8500.dtb \
2525 + qcom-ipq8064-g10.dtb \
26-+ qcom-ipq8064-r3d.dtb \
26++ qcom-ipq8064-mi-router-hd.dtb \
2727 + qcom-ipq8064-r7500.dtb \
2828 + qcom-ipq8064-r7500v2.dtb \
2929 + qcom-ipq8064-unifi-ac-hd.dtb \