From 937eee61cbc5c0d847ba1c0eee1d495e0b1c73a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Daleck=C3=BD?= Date: Tue, 19 May 2026 08:17:43 +0200 Subject: [PATCH] mvebu: add fw_env.config for Turris Mox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ý Link: https://github.com/openwrt/openwrt/pull/23421 Signed-off-by: Hauke Mehrtens --- package/boot/uboot-tools/uboot-envtools/files/mvebu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/boot/uboot-tools/uboot-envtools/files/mvebu b/package/boot/uboot-tools/uboot-envtools/files/mvebu index c78c1b97e1..7346611acb 100644 --- a/package/boot/uboot-tools/uboot-envtools/files/mvebu +++ b/package/boot/uboot-tools/uboot-envtools/files/mvebu @@ -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