Fw_printenv and fw_setenv in TX2 R32.4.4


I add the config file ‘/etc/fw_env.config’, and try to use the config like this:

/dev/mmcblk0boot1 0x3FE000 0x2000
/dev/mmcblk0boot1 0x3D8000 0x2000
/dev/mmcblk0boot1 -0x28000 0x2000

But returns incorrect values or “Warning: Bad CRC, using default environment”.

It can work in R32.2.2, and I know CONFIG_ENV_OFFSET is changed between R32.2.2 and R32.4.4.
Is there anything else I need to set?
Are the values inside fw_env.config correct?
Thanks in advance.

hello yihsi0909,

what’s your use-case, may I also know what’s the procedure you reproduce this issue?
please also refer to Topic 36247 to make fw_printenv and fw_setenv works for u-boot.

I need to control gpio to switch SATA and PCIE on desktop, but TX2 doesn’t support hot swap SATA. I want to use fw_setenv to let u-boot to get the value and set gpio value in u-boot.

I add the config file ‘/etc/fw_env.config’ like this in R32.2.2:
/dev/mmcblk0boot1 0x3FE000 0x2000
fw_printenv and fw_setenv can work. But in R32.4.4, it doesn’t work.