From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Copy environment variables to another board
Date: Tue, 30 Dec 2008 22:42:36 +0100 [thread overview]
Message-ID: <20081230214236.73FE0833DBB7@gemini.denx.de> (raw)
In-Reply-To: <495A0CE8.31716.C0772D@g.modugno.elettronika.it>
Dear "Giuseppe Modugno",
In message <495A0CE8.31716.C0772D@g.modugno.elettronika.it> you wrote:
>
> > then
> > you can just read the sector(s) containing the environment from their
> > corresponding /dev/mtd* devices in Linux and copy it to the other
> > system.
>
> 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.
It is difficult to make recommendations when you're providing
inconsistent input. In your previous message you wrote:
>> I have a board running U-Boot/Linux. U-Boot program, two U-Boot
>> environments, Linux kernel and root filesystem for Linux are stored
>> in a NOR Flash.
Now you claim "I don't have Linux".
Can you please decide whether or not you have Linux running on that
board?
> Another possibility is to printenv on the source board, copy the text
> result from the terminal into a text file, append "setenv " at the
> top of each lines, substitute = character with space, insert the
> quotes where needed and paste the result in the terminal of the
> destination board.
You could (and probaly should) put the constant part of your
definitions into the default environment, and use a script image for
the rest.
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
egrep patterns are full regular expressions; it uses a fast determi-
nistic algorithm that sometimes needs exponential space.
- unix manuals
next prev parent reply other threads:[~2008-12-30 21:42 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
2008-12-30 15:50 ` Giuseppe Modugno
2008-12-30 21:42 ` Wolfgang Denk [this message]
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=20081230214236.73FE0833DBB7@gemini.denx.de \
--to=wd@denx.de \
--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.