123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- --- a/target/linux/mediatek/image/filogic.mk
- +++ b/target/linux/mediatek/image/filogic.mk
- @@ -442,6 +442,24 @@ endif
- endef
- TARGET_DEVICES += xiaomi_mi-router-wr30u-ubootmod
-
- +define Device/xiaomi_redmi-router-ax6000
- + DEVICE_VENDOR := Xiaomi
- + DEVICE_MODEL := Redmi Router AX6000
- + DEVICE_DTS := mt7986a-xiaomi-redmi-router-ax6000
- + DEVICE_DTS_DIR := ../dts
- + DEVICE_PACKAGES := kmod-leds-ws2812b kmod-mt7986-firmware mt7986-wo-firmware
- + SUPPORTED_DEVICES := xiaomi,redmi-router-ax6000
- + UBINIZE_OPTS := -E 5
- + BLOCKSIZE := 128k
- + PAGESIZE := 2048
- + IMAGE_SIZE := 112640k
- + KERNEL_IN_UBI := 1
- + IMAGES += factory.bin
- + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
- + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- +endef
- +TARGET_DEVICES += xiaomi_redmi-router-ax6000
- +
- define Device/xiaomi_redmi-router-ax6000-stock
- DEVICE_VENDOR := Xiaomi
- DEVICE_MODEL := Redmi Router AX6000 (stock layout)
- --- a/package/boot/uboot-envtools/files/mediatek_filogic
- +++ b/package/boot/uboot-envtools/files/mediatek_filogic
- @@ -67,6 +66,9 @@ xiaomi,redmi-router-ax6000-ubootmod)
- ubootenv_add_uci_config "$envdev" "0x0" "0x1f000" "0x20000" "1"
- ubootenv_add_uci_config "$envdev2" "0x0" "0x1f000" "0x20000" "1"
- ;;
- +xiaomi,redmi-router-ax6000)
- + ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x10000" "0x20000" "1"
- + ;;
- zyxel,ex5601-t0)
- local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
- ubootenv_add_uci_config "$envdev" "0x0" "0x20000" "0x40000" "2"
- new file mode 100644
- index 0000000000000..759baae3aeb18
- --- /dev/null
- +++ b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dts
- @@ -0,0 +1,32 @@
- +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
- +
- +/dts-v1/;
- +#include "mt7986a-xiaomi-redmi-router-ax6000.dtsi"
- +
- +/ {
- + model = "Xiaomi Redmi Router AX6000";
- + compatible = "xiaomi,redmi-router-ax6000-ubootmod", "mediatek,mt7986a";
- +};
- +
- +&spi_nand_flash {
- + mediatek,nmbm;
- + mediatek,bmt-max-ratio = <1>;
- + mediatek,bmt-max-reserved-blocks = <64>;
- +};
- +
- +&partitions {
- + partition@580000 {
- + label = "crash";
- + reg = <0x580000 0x40000>;
- + };
- +
- + partition@5c0000 {
- + label = "crash_log";
- + reg = <0x5c0000 0x40000>;
- + };
- +
- + partition@600000 {
- + label = "ubi";
- + reg = <0x600000 0x6e00000>;
- + };
- +};
- --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
- +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
- @@ -95,6 +95,7 @@ platform_do_upgrade() {
- tplink,tl-xdr6088|\
- xiaomi,mi-router-wr30u-112m-nmbm|\
- xiaomi,mi-router-wr30u-ubootmod|\
- + xiaomi,redmi-router-ax6000|\
- xiaomi,redmi-router-ax6000-ubootmod)
- CI_KERNPART="fit"
- nand_do_upgrade "$1"
- --- a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
- +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
- @@ -26,6 +26,7 @@ xiaomi,mi-router-wr30u-ubootmod)
- ucidef_set_led_netdev "wan" "wan" "blue:network" "wan"
- ;;
- xiaomi,redmi-router-ax6000-stock|\
- +xiaomi,redmi-router-ax6000|\
- xiaomi,redmi-router-ax6000-ubootmod)
- ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
- ;;
- --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
- +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
- @@ -56,6 +56,7 @@ mediatek_setup_interfaces()
- xiaomi,mi-router-wr30u-stock|\
- xiaomi,mi-router-wr30u-ubootmod|\
- xiaomi,redmi-router-ax6000-stock|\
- + xiaomi,redmi-router-ax6000|\
- xiaomi,redmi-router-ax6000-ubootmod)
- ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" wan
- ;;
|