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] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields
Date: Tue, 21 May 2019 11:22:47 +0200	[thread overview]
Message-ID: <20190521112247.2be00787@jawa> (raw)
In-Reply-To: <20190521091352.GA5680@vmlxhi-102.adit-jv.com>

On Tue, 21 May 2019 11:13:52 +0200
Eugeniu Rosca <erosca@de.adit-jv.com> wrote:

> Hi Lukasz,
> 
> On Tue, May 21, 2019 at 10:02:34AM +0100, Alex Kiernan wrote:
> > On Tue, May 21, 2019 at 9:37 AM Lukasz Majewski <lukma@denx.de>
> > wrote:  
> > >
> > > Hi Alex,
> > >  
> > > > On Mon, May 20, 2019 at 8:23 AM Eugeniu Rosca
> > > > <erosca@de.adit-jv.com> wrote:  
> > > > >  
> > > > > >
> > > > > > Should it default to enabled if avb is used?  
> > > > >
> > > > > I think at this specific moment in time, 'bcb' is orthogonal
> > > > > (meaning it is neither a direct, nor a reverse dependency) to
> > > > > any other Android feature in U-Boot. This could be
> > > > > re-assessed, if platform maintainers start to rely on 'bcb'
> > > > > in their U-Boot environments on regular basis.  
> > > >
> > > > 'bcb' looks like something I'd be interested in, not running
> > > > Android at all... currently I (ab)use the bootcounter to
> > > > communicate between the kernel and U-Boot when I want to force
> > > > a board through recovery,  
> > >
> > > I don't know your exact use case, but wouldn't it be better to
> > > use envs (with redundancy) and fw_setenv / fw_printenv from Linux
> > > user space?
> > >
> > > Now those envs even support setting default values for u-boot (as
> > > there is now separate library used for it). Moreover there is
> > > OE/Yocto's recipe 'u-boot-fw-utils' which can be easily used and
> > > installed.  
> 
> That's a truly constructive suggestion. Nevertheless, I believe this
> would not work in case of CONFIG_ENV_IS_NOWHERE=y, which is how U-Boot
> is built and used by the developers in our organization.

I don't mind to see Android's "bcd" supported in U-Boot (I'm even
happy for it). 

And yes - the CONFIG_ENV_IS_NOWHERE means that one loads the default
envs (created at build time) to RAM for booting.

Just one note (maybe you will find it useful) - it is possible to
specify the default envs from external file:
https://lists.denx.de/pipermail/u-boot/2018-March/323347.html

As we don't have memory to store envs we cannot adjust or pass data via
it.

> 
> > 
> > It's a long story... I'm constrained by historic choices, which
> > makes using the environment problematic. But you're right.
> > 
> > -- 
> > Alex Kiernan  
> 




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-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190521/78029a36/attachment.sig>

  reply	other threads:[~2019-05-21  9:22 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 14:45 [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB Eugeniu Rosca
2019-05-17 14:45 ` [U-Boot] [PATCH v2 1/2] include: android_bootloader_message.h: Minimize the diff to AOSP Eugeniu Rosca
2019-05-20 15:19   ` Sam Protsenko
2019-05-17 14:45 ` [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields Eugeniu Rosca
2019-05-18 16:33   ` Simon Glass
2019-05-20  7:22     ` Eugeniu Rosca
2019-05-20  7:32       ` Alex Kiernan
2019-05-20  8:28         ` Eugeniu Rosca
2019-05-21  8:36         ` Lukasz Majewski
2019-05-21  9:02           ` Alex Kiernan
2019-05-21  9:13             ` Eugeniu Rosca
2019-05-21  9:22               ` Lukasz Majewski [this message]
2019-05-21  9:24               ` Alex Kiernan
2019-05-21  9:43                 ` Eugeniu Rosca
2019-05-20 15:16       ` Sam Protsenko
2019-05-20 15:26         ` Sam Protsenko
2019-05-21 11:20         ` Eugeniu Rosca
2019-05-21 16:46           ` Sam Protsenko
2019-05-22 10:35             ` Eugeniu Rosca
2019-05-21 16:43       ` Simon Glass
2019-05-21 17:31         ` Eugeniu Rosca
2019-05-21 20:55           ` Simon Glass
2019-05-22  0:53   ` Simon Glass
2019-05-22  7:11     ` Eugeniu Rosca
2019-05-22 18:39       ` Simon Glass
2019-05-24 19:23         ` Eugeniu Rosca
2019-05-17 15:24 ` [U-Boot] [PATCH v2 0/2] Add 'bcb' command to read/modify/write Android BCB Eugeniu Rosca
2019-05-17 15:26   ` Stephen Finucane
2019-05-17 15:28     ` Eugeniu Rosca
2019-05-24 19:36       ` Eugeniu Rosca
2019-05-24 23:37         ` Jeremy Kerr
2019-05-25  9:22           ` Eugeniu Rosca
2019-05-24 19:26 ` Eugeniu Rosca

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=20190521112247.2be00787@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.