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>
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