mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
uboot-envtools: mvebu: fix config for mainline u-boot
Mainline u-boot dynamically passes the mtd partitions via devicetree: $ cat /proc/mtd dev: size erasesize name mtd0: 003f0000 00001000 "firmware" mtd1: 00010000 00001000 "u-boot-env" Add support for this setup. Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
c43b45863e
commit
60c9a27cbc
@ -27,7 +27,14 @@ glinet,gl-mv1000)
|
|||||||
globalscale,espressobin|\
|
globalscale,espressobin|\
|
||||||
globalscale,espressobin-emmc|\
|
globalscale,espressobin-emmc|\
|
||||||
globalscale,espressobin-v7|\
|
globalscale,espressobin-v7|\
|
||||||
globalscale,espressobin-v7-emmc|\
|
globalscale,espressobin-v7-emmc)
|
||||||
|
idx="$(find_mtd_index u-boot-env)"
|
||||||
|
if [ -n "$idx" ]; then
|
||||||
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
|
||||||
|
else
|
||||||
|
ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
marvell,armada8040-mcbin-doubleshot|\
|
marvell,armada8040-mcbin-doubleshot|\
|
||||||
marvell,armada8040-mcbin-singleshot)
|
marvell,armada8040-mcbin-singleshot)
|
||||||
ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
|
ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
|
||||||
|
Loading…
Reference in New Issue
Block a user