From: Giuseppe Modugno Date: Tue, 30 Dec 2008 16:50:14 +0100 Subject: [U-Boot] Copy environment variables to another board In-Reply-To: <20081230114018.GA17258@mail.gnudd.com> References: <495A0CE8.31716.C0772D@g.modugno.elettronika.it>, <20081230114018.GA17258@mail.gnudd.com> Message-ID: <495A5146.23753.1CB8341@g.modugno.elettronika.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 30 Dec 2008 at 12:40, Alessandro Rubini wrote: > > 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 don't like to change U-Boot default configuration. The U-Boot environment changes project by project. I want to avoid recompiling U- Boot for each project. I'd like to have a single U-Boot application and different environment saved as files. > > 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. Yes, I think that is my way. Thank you all. Best regards, Giuseppe Modugno