From: Alessandro Rubini <rubini-list@gnudd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Copy environment variables to another board
Date: Tue, 30 Dec 2008 12:40:18 +0100 [thread overview]
Message-ID: <20081230114018.GA17258@mail.gnudd.com> (raw)
In-Reply-To: <495A0CE8.31716.C0772D@g.modugno.elettronika.it>
> So you're proposing to use Linux to copy U-Boot environment. But on a
> new board (picked from the shelf) I don't have Linux and I should set
> some U-Boot variables to run it.
So you might prefer setting them as predefined in you configuration
file, so when the u-boot binary finds no environment on flash (crc
error) and it will use those values, until you saveenv new values.
> I was thinking of a "U-Boot only" procedure, like md.b (to run on the
> source board) and cp.b (to run on the destination board).
You can unprotect, erase, and cp.b to the flash sector(s), once you
have the binary image of the environment. You can extract such
image from /dev/mtd in the running board and then use tftp (as you
suggested) on the new board.
hope this helps
/alessandro
next prev parent reply other threads:[~2008-12-30 11:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-30 10:30 [U-Boot] Copy environment variables to another board Giuseppe Modugno
2008-12-30 10:52 ` Wolfgang Denk
2008-12-30 10:58 ` Giuseppe Modugno
2008-12-30 11:40 ` Alessandro Rubini [this message]
2008-12-30 15:50 ` Giuseppe Modugno
2008-12-30 21:42 ` Wolfgang Denk
2009-01-05 8:33 ` Giuseppe Modugno
2009-01-05 14:13 ` Wolfgang Denk
2009-01-05 14:39 ` Jayakrishnan M
2008-12-30 11:00 ` Giuseppe Modugno
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=20081230114018.GA17258@mail.gnudd.com \
--to=rubini-list@gnudd.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.