From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Revert "env_eeprom: Assign default environment during board_init_f"
Date: Tue, 15 Sep 2015 12:54:37 -0400 [thread overview]
Message-ID: <20150915165437.GH26226@bill-the-cat> (raw)
In-Reply-To: <55F7E667.1040802@keymile.com>
On Tue, Sep 15, 2015 at 11:35:35AM +0200, Ludger Dreier wrote:
> This reverts commit ed6a5d4f880ac248530dbf64683b2257dbe54b64.
>
> The original patch uses ENV_IS_EMBEDDED to decide if the default
> environment should be used or the one actually read from EEPROM. The
> code in environment.h allows setting of ENV_IS_EMBEDDED only for
> a subset of flash types. EEPROM is not included in that list.
> So basically reading environment from I2C EEPROM is broken now.
> I propose to revert the patch.
>
> Signed-off-by: Ludger Dreier <ludger.dreier@keymile.com>
OK, so I went and looked at the original patch and thread again[1] and
Michal or Siva, what case was this change fixing exactly because now
that I re-read it all again, and look harder at the code, this doesn't
make sense. You can't have embedded u-boot + EEPROM. Was there perhaps
some sort of init ordering issue in a board which did have EEPROM used
as the backing store for env? I could see a case where perhaps (and
Ludger, can you test this as well please?) the problem is that for
env_eeprom env_init() needs to just default to the built-in (like it's
basically doing today) and env_relocate_spec() needs to do the read,
check which is valid, etc, etc, dance which it is _not_ doing today.
--
Tom
[1]:
http://u-boot.denx.narkive.com/sMDi8ur0/patch-env-eeprom-assign-default-environment-during-board-init-f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150915/ddc496d9/attachment.sig>
next prev parent reply other threads:[~2015-09-15 16:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 9:35 [U-Boot] [PATCH] Revert "env_eeprom: Assign default environment during board_init_f" Ludger Dreier
2015-09-15 16:54 ` Tom Rini [this message]
2015-09-16 11:46 ` Ludger Dreier
2015-09-16 11:53 ` Tom Rini
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=20150915165437.GH26226@bill-the-cat \
--to=trini@konsulko.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox