All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert P. J. Day <rpjday@crashcourse.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot] recommended place to add some custom settings to u-boot environment?
Date: Wed, 14 Sep 2016 04:57:00 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1609140451540.23455@localhost.localdomain> (raw)


  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
========================================================================

             reply	other threads:[~2016-09-14  8:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14  8:57 Robert P. J. Day [this message]
2016-09-14  9:17 ` [U-Boot] recommended place to add some custom settings to u-boot environment? Wolfgang Denk
2016-09-14  9:27   ` Robert P. J. Day
2016-09-14 12:58     ` Wolfgang Denk
2016-09-14 13:04       ` Robert P. J. Day
2016-09-14 13:33         ` Wolfgang Denk
2016-09-14 13:37           ` Robert P. J. Day
2016-09-14 14:31             ` Wolfgang Denk
2016-09-14 15:07               ` Robert P. J. Day

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.20.1609140451540.23455@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.