environment variables - How is saveenv implemented inside u-boot? -


i trying figure out part of code inside u-boot responsible writing device ram, when saveenv after setenv. find printenv , setenv, not saveenv. can please shed light on it?

that depends on nonvolatile storage platform configured for. in case common/nv_edit.c built. (for example) if env lives in spi flash, saveenv() in common/env_sf.c built , linked. "grep saveenv common/*.c" , you'll see other storage options (eeprom, flash, mmc, nand etc).

config_ options platform in appropriate .h under include/configs/. compare env-related options storage options, should lead right part of code platform.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -