From: Dusan Radic <dusrad@gmail.com>
To: barebox@lists.infradead.org
Subject: barebox environment early loading
Date: Thu, 9 Sep 2021 13:58:28 +0200 [thread overview]
Message-ID: <CAFe1xey4MRgd8YhKePm-L9SEf2sqefcWieft9GHspvE20TZbZg@mail.gmail.com> (raw)
Hello there,
is there a possibility to read an environment variable as soon as in
ipufb.c?
To be more accurate, before the frame buffer is initalised I need set
the bus_format manually and the correct value is stored in a non
volatile environment variable.
I have tried the following
const char* value;
value = getenv("nv.dataval");
However the result is always NULL.
If I try the same somewhere in board.c then I get the correct value,
but that ist too late to configure the frame buffer.
Has anyone managed to read the environment early, and if yes how? Do I
have to somehow manually load the environment path? I have tried this
default_environment_path_set(default_environment_path); but it doesn't
seem to work.
I am using barebox 2017.12.0
Help would be appreciated.
Best regards,
Dule
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2021-09-09 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 11:58 Dusan Radic [this message]
2021-09-09 17:16 ` Oleksij Rempel
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=CAFe1xey4MRgd8YhKePm-L9SEf2sqefcWieft9GHspvE20TZbZg@mail.gmail.com \
--to=dusrad@gmail.com \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox