]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: add fw_env.config for Turris Mox
authorŠtěpán Dalecký <daleckystepan@gmail.com>
Tue, 19 May 2026 06:17:43 +0000 (08:17 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 25 May 2026 23:36:23 +0000 (01:36 +0200)
Turris Mox stores the U-Boot environment in SPI NOR flash. Add the
fw_env.config entry pointing to MTD partition 2 at offset 0x0 with
64 KiB env size and sector size, so userspace tools fw_printenv and
fw_setenv work correctly on this board.

Signed-off-by: Štěpán Dalecký <daleckystepan@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23421
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/uboot-tools/uboot-envtools/files/mvebu

index c78c1b97e1f897436fb76686f477f118300e3b65..7346611acbc06bceeb09bcfbe2296a002545ab7f 100644 (file)
@@ -21,6 +21,9 @@ checkpoint,v-80|\
 checkpoint,v-81)
        ubootenv_add_uci_config "/dev/mmcblk1boot0" "0x1f0000" "0x10000"
        ;;
+cznic,turris-mox)
+       ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x10000" "0x10000"
+       ;;
 cznic,turris-omnia)
        idx="$(find_mtd_index u-boot-env)"
        if [ -n "$idx" ]; then