From: Wolfgang Denk Date: Fri, 11 Nov 2011 12:49:34 +0100 Subject: [U-Boot] [PATCH] env_ram.c: import env from other boot loader In-Reply-To: <1320994497-27894-1-git-send-email-macpaul@andestech.com> References: <1320994497-27894-1-git-send-email-macpaul@andestech.com> Message-ID: <20111111114934.17F0C1404440@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Macpaul Lin, In message <1320994497-27894-1-git-send-email-macpaul@andestech.com> you wrote: > If the system has dual boot loader, say loader1 and u-boot is loader2. > If loader1 will be booted before u-boot and then pass env to u-boot in > the format of u-boot's env, this module provides importing env from ram. > > This feature needs to add related support in cmd_nvedit.c. I don't think you need extra code for this. The situation is not different from any other where for example the environment is attached to the U-Boot image, or embedded into it. You just need to configure the address / offset correctly in your board config header. 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 "If it ain't broke, don't fix it." - Bert Lantz