
On Wed, May 17, 2023 at 8:11 PM Tom Rini trini@konsulko.com wrote:
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@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;
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;
Ok.
-- Tom