All of lore.kernel.org
 help / color / mirror / Atom feed
From: andyjjones <andrewj.jones@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-boot environment variables keep disappearing
Date: Tue, 7 Feb 2012 02:04:02 -0800 (PST)	[thread overview]
Message-ID: <33277540.post@talk.nabble.com> (raw)


Hi folks,

I'm a newbie.

I'm trying to write a basic script in u-boot which erases and writes
x-loader to NAND between 0x0 and 0x80000.

When I save some basic environment variables to u-boot such as:
set foo bar
saveenv

foo is always there when i come back.   However, when I write a slightly
longer program and save it using saveenv (and check it's there using
"print"), it is gone by the time I reboot.

The slightly longer program is this:
formatXLoader=if test "$firstFormat" -eq "0"; then echo Formatting NAND for
X-Loader...; mmc init; fatload mmc 0:1 80000000 MLO; nandecc hw 2; nand
erase 0 80000; echo Formatting complete.  Writing X-Loader to NAND; nand
write 80000000 0 80000; echo X-Loader written successfully; set firstFormat
1; else echo X-loader already written to NAND; fi

Why is my formatXLoader program disappearing?  I am pulling out my hair.

Thankyou! :)


-- 
View this message in context: http://old.nabble.com/U-boot-environment-variables-keep-disappearing-tp33277540p33277540.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

                 reply	other threads:[~2012-02-07 10:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=33277540.post@talk.nabble.com \
    --to=andrewj.jones@hotmail.com \
    --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.