[U-Boot] recommended place to add some custom settings to u-boot environment?

Robert P. J. Day rpjday at crashcourse.ca
Wed Sep 14 10:57:00 CEST 2016


  on my target board, there is some non-linux environment info in
"var=val" form that i want to drag into the current environment
whenever u-boot starts up. my plan is just to import that content into
a (new) hash table, then tweak it a bit before further adding it to
"env_htab". the logistics seem pretty straightforward, i'm just
curious as to where the *right*(?) place is to do this.

  currently, we're not taking advantage of CONFIG_MISC_INIT_R, so it
seems that would be a reasonable place to do that, in the board source
file.

  does that make sense? at that point, all of the normal environment
will have been initialized, and i'll have access to "env_htab".
thoughts? is there a better place to "adjust" the u-boot environment
once u-boot has done its normal work? thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list