Home Forums Hardware discussions etc/fw_env.config for u-boot tools

This topic contains 3 replies, has 2 voices, and was last updated by  adamierymenko 9 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1947

    adamierymenko
    Participant

    Does anyone have /etc/fs_env.config settings for using things like fw_printenv and fw_setenv from the u-boot tools on the espressobin?

    I have /dev/mtd0 and /dev/mtd1 with what appears to be access to SPI flash and I can dd to/from them, but the default settings in fw_env.config don’t work (wouldn’t expect them to):

    fw_printenv
    Warning: Bad CRC, using default environment
    … some default environment variables, not the ones set in u-boot …

    #2003

    wawatts
    Participant

    I ran cat /proc/mtd in order to understand the offset and size.

    I still see the
    fw_printenv
    Warning: Bad CRC, using default environment
    … some default environment variables, not the ones set in u-boot …

    #2076

    adamierymenko
    Participant

    Someone privately e-mailed me the answer:

    /dev/mtd0 0x3f0000 0x10000 0x10000 1

    That’s the only thing you need in /etc/fw_env.config and it works.

    #2082

    adamierymenko
    Participant

    Can also confirm that fw_setenv works as well, so changes to boot params inside Linux are possible.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop