public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/1] tools: env: Handle shorter read calls
@ 2021-08-24 15:29 Thibault Ferrante
  2021-08-24 15:29 ` [PATCH 1/1] " Thibault Ferrante
  0 siblings, 1 reply; 3+ messages in thread
From: Thibault Ferrante @ 2021-08-24 15:29 UTC (permalink / raw)
  To: u-boot
  Cc: wd, joe.hershberger, hws, alex.kiernan, lg, Thibault Ferrante,
	Martin Hundebøll


On specific devices, read can return less bytes than expected.
I noticed this problem on a EEPROM chip with 16Kbyte of memory. Defining
an environment with more than 4Kbyte leads to less bytes read than expected
and failures from fw_printenv/fw_setenv.
This patch target to handle this issue by doing multiple reads instead
of exiting directly.


Thibault Ferrante (1):
  tools: env: Handle shorter read calls

 tools/env/fw_env.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-02 22:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-24 15:29 [PATCH 0/1] tools: env: Handle shorter read calls Thibault Ferrante
2021-08-24 15:29 ` [PATCH 1/1] " Thibault Ferrante
2021-09-02 22:42   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox