All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Unbricking process with separate environment binary?
Date: Tue, 11 Apr 2017 09:40:53 +0200	[thread overview]
Message-ID: <20170411094053.488cd070@jawa> (raw)
In-Reply-To: <CAM17CwdiF1V5mvbDjCFxLziwG20i0uK+weEMW8fOm6baBVMUkw@mail.gmail.com>

Hi John,

> nstead of having 2 builds of u-boot, one which defaults to fastboot
> and one for normal booting, is it possible to have one u-boot binary
> and a separate environment piece (especially for bootcmd, but maybe
> also for some scripts)? 

If I might ask - where your envs are stored? Do they have a separate
area in NAND or eMMC memory?

If yes, then I suppose that you also have the possibility to write data
to this memory in the production?

If yes (again) then maybe it would be better to only adjust (and
replace) the default environment on board?

For example:

1. You extract envs by using the scripts/get_default_envs.sh - modify
it and then use mkenvimage to produce new env image.

2. You store u-boot (with NAND/eMMC not programmed) to your device.
This u-boot has default environment with instructions for flashing.

3. You flash your final envs prepared in point 1.

p.s. This scheme also works with "redundant" envs.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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

  reply	other threads:[~2017-04-11  7:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 19:03 [U-Boot] Unbricking process with separate environment binary? John Faith
2017-04-11  7:40 ` Lukasz Majewski [this message]
     [not found]   ` <CAM17CwcveDR3fERHSHHkym4OJRbeFT92nf3E1ocevozMec721A@mail.gmail.com>
2017-04-12  8:59     ` Lukasz Majewski

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=20170411094053.488cd070@jawa \
    --to=lukma@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.