Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] uboot: support -r option for mkenvimage
Date: Sat, 12 Oct 2013 12:23:13 +0200	[thread overview]
Message-ID: <20131012122313.44d65734@skate> (raw)
In-Reply-To: <1381572339-3232-1-git-send-email-spdawson@gmail.com>

Simon,

On Sat, 12 Oct 2013 11:05:39 +0100, spdawson at gmail.com wrote:
> From: Simon Dawson <spdawson@gmail.com>
> 
> Some boards are configured in u-boot to store multiple redundant copies of
> the environment image in flash. For these boards, it is required to pass the -r
> flag, when generating a boot environment image using mkenvimage.
> 
> Signed-off-by: Simon Dawson <spdawson@gmail.com>
> ---
>  v2: Change configuration menu text and help text, in response to feedback
>      from Arnout Vandecappelle and Thomas Petazzoni
> 
>  boot/uboot/Config.in | 8 ++++++++
>  boot/uboot/uboot.mk  | 1 +
>  2 files changed, 9 insertions(+)
> 
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 998cda2..b750c77 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -242,6 +242,14 @@ config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
>  	  Size of envronment, can be prefixed with 0x for hexadecimal
>  	  values.
>  
> +config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
> +	bool "Environment has two copies"
> +	help
> +	  There are two copies of the environment in flash.
> +
> +	  Check your u-boot configuration for the CONFIG_ENV_ADDR_REDUND and
> +	  CONFIG_ENV_SIZE_REDUND settings.

I'm sorry but I'm still unhappy with the help text, especially since
your commit log is in fact better :-)

	  Some platforms define in their U-Boot configuration that the
	  U-Boot environment should be duplicated in two locations (for
	  extra safety). Check your U-Boot configuration for the
	  CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
	  see if it is the case for your platform.

	  If it is the case, then you should enable this option to
	  ensure that the U-Boot environment image generated by
	  Buildroot is compatible with this "redundant environment"
	  mechanism of U-Boot.

Or something along those lines (don't hesitate to fix the broken
english if needed).

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2013-10-12 10:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-12 10:05 [Buildroot] [PATCH v2] uboot: support -r option for mkenvimage spdawson at gmail.com
2013-10-12 10:23 ` Thomas Petazzoni [this message]
2013-10-13  7:42   ` Simon Dawson

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=20131012122313.44d65734@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox