[PATCH v3 4/5] spl: Support loading a FIT from ext FS

Heinrich Schuchardt xypron.glpk at gmx.de
Wed May 17 16:58:17 CEST 2023



Am 17. Mai 2023 16:41:47 MESZ schrieb Tom Rini <trini at konsulko.com>:
>On Thu, May 04, 2023 at 03:23:26PM +0530, Mayuresh Chitale wrote:
>
>> Detect a FIT when loading from an ext File system and handle it using
>> the FIT SPL support.
>> 
>> Signed-off-by: Mayuresh Chitale <mchitale at ventanamicro.com>
>> ---
>>  common/spl/spl_ext.c | 33 +++++++++++++++++++++++++++++++++
>>  1 file changed, 33 insertions(+)
>> 
>> diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
>> index f117c630bf..7b771c41e9 100644
>> --- a/common/spl/spl_ext.c
>> +++ b/common/spl/spl_ext.c
>> @@ -8,6 +8,26 @@
>>  #include <ext4fs.h>
>>  #include <errno.h>
>>  #include <image.h>
>> +#include <linux/libfdt.h>
>> +
>> +static ulong spl_fit_read(struct spl_load_info *load, ulong file_offset,
>> +			  ulong size, void *buf)
>> +{
>> +	loff_t filelen = (loff_t)load->priv, actlen;

The comma seems to be incorrect.

>> +	char *filename = (char *)load->filename;
>
>Please build on 32bit platforms such as j721e_evm_r5 as well:
>+common/spl/spl_ext.c:16:26: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>+   16 |         loff_t filelen = (loff_t)load->priv, actlen;
>


More information about the U-Boot mailing list