learngin uboot design parameter recovery mechanism

pseudocode:

if( getenv(“uboot_env_init”)  !=  NULL){

              if(uboot_env_init  !=  HAVE_INIT){

                      Set uboot_env_init=1;

                      Write to uboot_env partition;

}else{

                     Means uboot env lost;

                     Run restort_factory_env;

}

原文地址:https://www.cnblogs.com/lianghong881018/p/10245618.html