aboutsummaryrefslogtreecommitdiff
path: root/package/boot/uboot-envtools/files
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-12-03 06:49:40 +0100
committerDavid Bauer <mail@david-bauer.net>2023-12-03 06:56:02 +0100
commitdd5d4e24afec93dccdf8936991c68390e584001e (patch)
treed6bcc8d119962aad6380dc8c7469ef8dfcbe3827 /package/boot/uboot-envtools/files
parent602ff8fbb1974ceccf6e74b990a90a1863f4d08f (diff)
uboot-envtools: fix GL-MT2500 offset
The previous offsets did also work, as they've wrapped back to 0x0. However, in reality the environment starts at offset 0x0 of the u-boot-env MMC partition. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/boot/uboot-envtools/files')
-rw-r--r--package/boot/uboot-envtools/files/mediatek_filogic9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index 4d37828f1d..050e1173c3 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -74,17 +74,14 @@ xiaomi,redmi-router-ax6000-ubootmod)
ubootenv_add_uci_config "$envdev" "0x0" "0x1f000" "0x20000" "1"
ubootenv_add_uci_config "$envdev2" "0x0" "0x1f000" "0x20000" "1"
;;
-glinet,gl-mt2500)
+glinet,gl-mt2500|\
+glinet,gl-mt6000)
local envdev=$(find_mmc_part "u-boot-env")
- ubootenv_add_uci_config "$envdev" "0x400000" "0x80000"
+ ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
;;
glinet,gl-mt3000)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
;;
-glinet,gl-mt6000)
- local envdev=$(find_mmc_part "u-boot-env")
- ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
- ;;
mercusys,mr90x-v1)
local envdev=/dev/mtd$(find_mtd_index "u-boot-env")
ubootenv_add_uci_config "$envdev" "0x0" "0x20000" "0x20000" "1"