[PATCH 0/1] tools: env: Handle shorter read calls

Thibault Ferrante thibaultferrante at gmail.com
Tue Aug 24 17:29:49 CEST 2021


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



More information about the U-Boot mailing list