* [U-Boot] Not able to print env variable added in standalone application
@ 2009-05-04 10:24 Kartheek N S
2009-05-04 18:38 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Kartheek N S @ 2009-05-04 10:24 UTC (permalink / raw)
To: u-boot
Dear all,
I am in need of getting a status message from a standalone application.
Hence I am using getenv and setenv functions. The standalone application can
read the env variable using getenv and set the registers accordingly. Based
on what is set, I am trying to set some env variable using setenv function.
The variable gets set I think. But I am not able to print that variable
either in application or in uboot prompt ?
I am using run_command to jump to the standalone application which is
our requirement. But if I use "go" command from uboot prompt to run
standalone application, I am able to print that env variable.
Could somebody help how to print env variable from standalone
application ?
Is there any other place in u-boot where I need to add this variable ?.
I have added it in CONFIG_EXTRA_ENV_SETTINGS.
--
View this message in context: http://www.nabble.com/Not-able-to-print-env-variable-added-in-standalone-application-tp23365798p23365798.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] Not able to print env variable added in standalone application
2009-05-04 10:24 [U-Boot] Not able to print env variable added in standalone application Kartheek N S
@ 2009-05-04 18:38 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-05-04 18:38 UTC (permalink / raw)
To: u-boot
Dear Kartheek N S,
In message <23365798.post@talk.nabble.com> you wrote:
>
> I am in need of getting a status message from a standalone application.
> Hence I am using getenv and setenv functions. The standalone application can
> read the env variable using getenv and set the registers accordingly. Based
> on what is set, I am trying to set some env variable using setenv function.
> The variable gets set I think. But I am not able to print that variable
> either in application or in uboot prompt ?
If you cannot print that variable, what makes you then think that
setting it has worked?
Adding some debug code to common/cmd_nvedit.c should be a trivial
thing to do...
> I am using run_command to jump to the standalone application which is
And you think we can read from our crystall balls hoiw exactly you
might be using "run_command"? Sorry, we're not that good.
> our requirement. But if I use "go" command from uboot prompt to run
> standalone application, I am able to print that env variable.
Well, "go" is the official, documented interface to start a standalone
application. If this works, then all is fine, no problem to be solve.
Just use "go" then.
> Could somebody help how to print env variable from standalone
> application ?
You just wrote that it works if you use the correct command?
> Is there any other place in u-boot where I need to add this variable ?.
> I have added it in CONFIG_EXTRA_ENV_SETTINGS.
CONFIG_EXTRA_ENV_SETTINGS is completely unrelated to this.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One does not thank logic.
-- Sarek, "Journey to Babel", stardate 3842.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-04 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-04 10:24 [U-Boot] Not able to print env variable added in standalone application Kartheek N S
2009-05-04 18:38 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox