Skip to contentSkip to conversation

fw_env.config

U-Boot Dimitrios Siganos 2 participants 2 messages Feb 12, 2013 – Feb 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi guys,

I's like to ask a couple of quick questions to clear a disagreement we have at the office.

Is the file fw_env.config needed during compilation time to build u-boot?

Or is it in fact only needed at runtime by the tools fw_printenv/saveenv?

Thank you and sorry if this questions has been answered before.

Regards,
Dimitris

#1 lore raw

Dear Dimitrios Siganos,

Quoted 6 lines · Dimitrios Siganos

Hi guys,

I's like to ask a couple of quick questions to clear a disagreement we have at the office.

Is the file fw_env.config needed during compilation time to build u-boot?

No.

Quoted 1 line

Or is it in fact only needed at runtime by the tools fw_printenv/saveenv?

MTD setup in /etc/fw_env.config can be used by fw_printenv/saveenv, but it depends on compile configuration of these tool(s). fw_printenv can be compiled with integrated mtd setup and will then not parse the configuration file.
But yes, the default is to have an /etc/fw_env.config which describes the mtd setup for u-boot environment. At least this is the case for distributed versions like in Debian.

Best regards

Andreas Bie?mann