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>
(cherry picked from commit dd5d4e24af)
This commit is contained in:
committed by
Tianling Shen
parent
b6fe7260ce
commit
f20939a90e
@@ -64,17 +64,14 @@ cmcc,rax3000m)
|
||||
cmcc,rax3000m-emmc-ubootmod)
|
||||
ubootenv_add_uci_config "/dev/mmcblk0p1" "0x0" "0x80000" "0x80000"
|
||||
;;
|
||||
glinet,gl-mt2500)
|
||||
local envdev=$(find_mmc_part "u-boot-env")
|
||||
ubootenv_add_uci_config "$envdev" "0x400000" "0x80000"
|
||||
;;
|
||||
glinet,gl-mt3000)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
|
||||
;;
|
||||
glinet,gl-mt2500|\
|
||||
glinet,gl-mt6000)
|
||||
local envdev=$(find_mmc_part "u-boot-env")
|
||||
ubootenv_add_uci_config "$envdev" "0x0" "0x80000"
|
||||
;;
|
||||
glinet,gl-mt3000)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x20000"
|
||||
;;
|
||||
h3c,magic-nx30-pro|\
|
||||
h3c,magic-nx30-pro-nmbm|\
|
||||
jcg,q30|\
|
||||
|
||||
Reference in New Issue
Block a user