From: Thibault Ferrante <thibaultferrante@gmail.com>
To: u-boot@lists.denx.de
Cc: wd@denx.de, joe.hershberger@ni.com, hws@denx.de,
alex.kiernan@gmail.com, lg@denx.de,
"Thibault Ferrante" <thibault.ferrante@gmail.com>,
"Martin Hundebøll" <martin@geanix.com>
Subject: [PATCH 0/1] tools: env: Handle shorter read calls
Date: Tue, 24 Aug 2021 17:29:49 +0200 [thread overview]
Message-ID: <20210824152950.919452-1-thibault.ferrante@gmail.com> (raw)
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
next reply other threads:[~2021-08-25 1:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 15:29 Thibault Ferrante [this message]
2021-08-24 15:29 ` [PATCH 1/1] tools: env: Handle shorter read calls Thibault Ferrante
2021-09-02 22:42 ` 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=20210824152950.919452-1-thibault.ferrante@gmail.com \
--to=thibaultferrante@gmail.com \
--cc=alex.kiernan@gmail.com \
--cc=hws@denx.de \
--cc=joe.hershberger@ni.com \
--cc=lg@denx.de \
--cc=martin@geanix.com \
--cc=thibault.ferrante@gmail.com \
--cc=u-boot@lists.denx.de \
--cc=wd@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