mediatek: drop NMBM layout for Xiaomi WR30U
authorChuanhong Guo <gch981213@gmail.com>
Tue, 23 Jan 2024 11:20:47 +0000 (19:20 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Tue, 23 Jan 2024 11:24:32 +0000 (19:24 +0800)
This reverts commit dcdcfc15115a1038e90f21f5aa41726d9c7e2fe5.

This is a firmware for third-party u-boot mod, which should not
be carried here by us.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
package/boot/uboot-envtools/files/mediatek_filogic
target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts [deleted file]
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/image/filogic.mk

index cae761b4f9f1ffcfaafd3bd324bf7955497590cd..4c483ca6143adbe9373c7a1b9098a29dd1bb9166 100644 (file)
@@ -101,7 +101,6 @@ ubnt,unifi-6-plus)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x10000"
        ;;
 xiaomi,mi-router-ax3000t|\
-xiaomi,mi-router-wr30u-112m-nmbm|\
 xiaomi,mi-router-wr30u-stock|\
 xiaomi,redmi-router-ax6000-stock)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x20000"
diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts
deleted file mode 100644 (file)
index 7244cdf..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-
-/dts-v1/;
-#include "mt7981b-xiaomi-mi-router-wr30u.dtsi"
-
-/ {
-       model = "Xiaomi Mi Router WR30U (112M UBI with NMBM-Enabled layout)";
-       compatible = "xiaomi,mi-router-wr30u-112m-nmbm", "mediatek,mt7981";
-};
-
-&spi_nand {
-       mediatek,nmbm;
-       mediatek,bmt-max-ratio = <1>;
-       mediatek,bmt-max-reserved-blocks = <64>;
-};
-
-&partitions {
-       partition@600000 {
-               label = "ubi";
-               reg = <0x600000 0x7000000>;
-       };
-};
index 51654ae87f36615379bb259ab69425fd02609b20..b9fac1bebfebf4933675930bd75d281c28d51b67 100644 (file)
@@ -33,7 +33,6 @@ routerich,ax3000)
        ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
        ucidef_set_led_netdev "wan-off" "wan-off" "red:wan" "wan" "link"
        ;;
-xiaomi,mi-router-wr30u-112m-nmbm|\
 xiaomi,mi-router-wr30u-stock|\
 xiaomi,mi-router-wr30u-ubootmod)
        ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
index 47e7be971e7bbc94b886addd6ed9f4be6324cb7b..a198fb98c99d90696165830de85c0998d95a5bff 100644 (file)
@@ -76,7 +76,6 @@ mediatek_setup_interfaces()
                ;;
        xiaomi,mi-router-ax3000t|\
        xiaomi,mi-router-ax3000t-ubootmod|\
-       xiaomi,mi-router-wr30u-112m-nmbm|\
        xiaomi,mi-router-wr30u-stock|\
        xiaomi,mi-router-wr30u-ubootmod|\
        xiaomi,redmi-router-ax6000-stock|\
@@ -164,7 +163,6 @@ mediatek_setup_macs()
                ;;
        xiaomi,mi-router-ax3000t|\
        xiaomi,mi-router-ax3000t-ubootmod|\
-       xiaomi,mi-router-wr30u-112m-nmbm|\
        xiaomi,mi-router-wr30u-stock|\
        xiaomi,mi-router-wr30u-ubootmod|\
        xiaomi,redmi-router-ax6000-stock|\
index 8a8879ca32b0d5d9a579e7a5fa70ec96fcf7e80c..c64a46fe247d1b761a2047ca1c5792b459b22a84 100644 (file)
@@ -799,23 +799,6 @@ endif
 endef
 TARGET_DEVICES += xiaomi_mi-router-ax3000t-ubootmod
 
-define Device/xiaomi_mi-router-wr30u-112m-nmbm
-  DEVICE_VENDOR := Xiaomi
-  DEVICE_MODEL := Mi Router WR30U (112M UBI with NMBM-Enabled layout)
-  DEVICE_DTS := mt7981b-xiaomi-mi-router-wr30u-112m-nmbm
-  DEVICE_DTS_DIR := ../dts
-  UBINIZE_OPTS := -E 5
-  BLOCKSIZE := 128k
-  PAGESIZE := 2048
-  DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
-ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
-  ARTIFACTS := initramfs-factory.ubi
-  ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-kernel.bin | ubinize-kernel
-endif
-  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
-endef
-TARGET_DEVICES += xiaomi_mi-router-wr30u-112m-nmbm
-
 define Device/xiaomi_mi-router-wr30u-stock
   DEVICE_VENDOR := Xiaomi
   DEVICE_MODEL := Mi Router WR30U (stock layout)