From 04d3b517dc3301e0148a2ce811ffc136568b04bd Mon Sep 17 00:00:00 2001 From: Klaus Kudielka Date: Fri, 27 Dec 2019 19:15:31 +0100 Subject: uboot-envtools: mvebu: update uci defaults for Turris Omnia On the Turris Omnia 2019, u-boot environment is located at 0xF0000, instead of 0xC0000. The switch happened with u-boot-omnia package version 2019-04-2 (May 10, 2019). Check the installed u-boot release, and set the default accordingly. Signed-off-by: Klaus Kudielka [bump PKG_RELEASE, use lower case for hex offset] Signed-off-by: Adrian Schmutzler --- package/boot/uboot-envtools/files/mvebu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/boot/uboot-envtools/files') diff --git a/package/boot/uboot-envtools/files/mvebu b/package/boot/uboot-envtools/files/mvebu index 8ed1f87ead..1d3b79b962 100644 --- a/package/boot/uboot-envtools/files/mvebu +++ b/package/boot/uboot-envtools/files/mvebu @@ -15,7 +15,11 @@ board=$(board_name) case "$board" in cznic,turris-omnia) - ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000" + if grep -q 'U-Boot 2015.10-rc2' /dev/mtd0; then + ubootenv_add_uci_config "/dev/mtd0" "0xc0000" "0x10000" "0x40000" + else + ubootenv_add_uci_config "/dev/mtd0" "0xf0000" "0x10000" "0x10000" + fi ;; glinet,gl-mv1000) ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x8000" "1" -- cgit v1.2.3