[PATCH v3] spl: return header size to spl_load in os boot
Tom Rini
trini at konsulko.com
Mon Mar 31 15:46:22 CEST 2025
On Tue, 11 Mar 2025 15:05:45 +0530, Anshul Dalal wrote:
> During linux build process the header size is computed including the BSS
> whereas it's removed when creating the uncompressed image. Therefore the
> size of the uncompressed image on filesystem will be smaller than the
> size specified in the header.
>
> This causes issues when loading the kernel image from the SPL (as in
> falcon boot) with spl_load since it compares the read file size from the
> FS to the header size form the image. Which leads to the following check
> in `include/spl_load.h` failing to -EIO when loading kernel image:
>
> [...]
Applied to u-boot/next, thanks!
[1/1] spl: return header size to spl_load in os boot
commit: fd2bccec19d399b4a445009b3d514d2419cfbc95
--
Tom
More information about the U-Boot
mailing list