Need fw_env.config for fw_printenv in Turris MOX

On Turris MOX, for unknown reasons (anyone know why?) the file /etc/fw_env.config is not created by default.

This means that running fw_printenv generates this error:

Cannot parse config file '/etc/fw_env.config': No such file or directory

Where can I find the official authoritative statement from turris devs about what the contents of this file should be on Turris MOX? I only found random people on the forum guessing some values that work.

EDIT:

I ran the command fw_env-config-init.sh which is in located at /usr/bin/fw_env-config-init.sh in Turris MOX and it generated /etc/fw_env.config with the following content:

/dev/mtd2 0x0 0x00010000

The command fw_printenv now no longer generates the error and appears to work.

I would still like confirmation from someone that my /etc/fw_env.config has the appropriate content for Turris MOX, because the content differs from any other mention of this on the forum.

Its ok. :sweat_smile: This is confirmation. If something then its on me

appears to use:

echo "/dev/$(fgrep u-boot-env /proc/mtd | cut -f 1 -d :) 0x0 0x00010000" >/etc/fw_env.config

which on my system generates a /etc/fw_env.config with this content:

/dev/mtd2 0x0 0x00010000

Still not as authoritative as I’d like, but it’s closer.