Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Feb 6, 2024
1 parent dd50518 commit e49c595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
16 changes: 2 additions & 14 deletions devices/mediatek_filogic/patches/2-ax6000.patch
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@
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
Expand Down Expand Up @@ -79,10 +66,11 @@ index 0000000000000..759baae3aeb18

--- 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() {
@@ -95,6 +95,8 @@ platform_do_upgrade() {
tplink,tl-xdr6088|\
xiaomi,mi-router-wr30u-112m-nmbm|\
xiaomi,mi-router-wr30u-ubootmod|\
+ xiaomi,mi-router-ax3000t|\
+ xiaomi,redmi-router-ax6000|\
xiaomi,redmi-router-ax6000-ubootmod)
CI_KERNPART="fit"
Expand Down
17 changes: 3 additions & 14 deletions devices/mediatek_filogic/patches/4-ax3000t.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ Subject: [PATCH] mediatek: add Xiaomi AX3000T support
create mode 100644 target/linux/mediatek/dts/mt7981b-xiaomi-ax3000t.dts
create mode 100644 target/linux/mediatek/dts/mt7981b-xiaomi_mi-router.dtsi

diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index a8def1d00b764..3ad8f80c750e0 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -62,6 +62,7 @@
tplink,tl-xdr4288|\
tplink,tl-xdr6086|\
tplink,tl-xdr6088|\
+xiaomi,mi-router-ax3000t|\
xiaomi,mi-router-wr30u-ubootmod|\
xiaomi,redmi-router-ax6000-ubootmod)
. /lib/upgrade/nand.sh

diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-ax3000t.dts b/target/linux/mediatek/dts/mt7981b-xiaomi-ax3000t.dts
new file mode 100644
index 0000000000000..96f7680ef23a8
Expand Down Expand Up @@ -352,7 +339,7 @@ diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/imag
index 282054886b56e..413860a1a672c 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -417,6 +417,20 @@
@@ -417,6 +417,22 @@
endef
TARGET_DEVICES += tplink_tl-xdr6088

Expand All @@ -366,6 +353,8 @@ index 282054886b56e..413860a1a672c 100644
+ PAGESIZE := 2048
+ KERNEL_IN_UBI := 1
+ DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
+ IMAGES += factory.bin
+ IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+endef
+TARGET_DEVICES += xiaomi_mi-router-ax3000t
Expand Down

0 comments on commit e49c595

Please sign in to comment.