From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Smishlayev Date: Tue, 10 Dec 2013 15:36:06 +0200 Subject: [U-Boot] Creating U-Boot env image In-Reply-To: References: <52A5D4F1.7020101@xtech2.lv> , <52A709D6.6020708@xtech2.lv> Message-ID: <52A718C6.408@xtech2.lv> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Mats, On 2013.12.10. 15:33, Mats K?rrman wrote: > On: Tuesday, December 10, 2013 1:32 PM, Alexey Smishlayev wrote: >> I'm not sure, if that's not something simple, that's why I wrote to this >> list. I just don't know every little detail about using U-Boot. > I was thinking something like: [flash-sector-size] <= [U-Boot-configured-env-size] > and you must give the right number to the env image generation program. > >> That's what I've thought also - if I just dd the environment contents to >> a file, can I then use it as a valid image for production? That could be >> the most simple way to achieve what I want. > Yes, should be possible. If you're using redundant environments, you > probably want to use the env copy that has "0x01" in the 5:th byte. > See common/env_flash.c and include/environment.h. Thank you, I will check that. How can I see if I'm compiling U-Boot with redundant environment, or not? Best regards, Alexey