diff options
author | Christian Melki <christian.melki@t2data.com> | 2023-05-19 14:10:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-23 09:29:21 +0200 |
commit | f0d275c2054ee795454598af59344be0aa1eef09 (patch) | |
tree | 2cd0624779c0725b99754802561b898f58172e11 /scripts | |
parent | 5c4ddaa9844e2bde775831fe0eee77616cd21b9b (diff) | |
download | barebox-f0d275c2054ee795454598af59344be0aa1eef09.tar.gz barebox-f0d275c2054ee795454598af59344be0aa1eef09.tar.xz |
barebox: Fix excessive loading of FIT images
Barebox doesn't use the FIT image size from the header
when loading FIT images. It bluntly assumes that the FIT image
is equal to the file size. Which would be true if the
FIT image is a file. But if it's situated on a raw device,
then barebox proceeds to load the entire contents of that
raw device, only to conclude that it only needed parts of it.
Fix it.
Cc: Daniel BrĂ¡t <danek.brat@gmail.com>
Signed-off-by: Christian Melki <christian.melki@t2data.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230519121028.2475832-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions