On 18.04.19 21:59, Julius Werner wrote:
Hi Simon,

Is your approach similar to what I did here (decompressing
transparently as part of fit_image_load())? I think I could easily
expand this to other image types, I just don't always know how to test
those. Really, the only thing that can't be decompressed there is the
kernel image (because that is done later), so rather than checking for
IH_TYPE_FLATDT I could check for !(IH_TYPE_KERNEL ||
IH_TYPE_KERNEL_NOLOAD)?

My approach was to uncompress all compressed images on-the-fly in fit_image_load(). I also hadn't fixed the kernel issue, so maybe deferring uncompression of kernel would be a good enough fix.

We had discussed that back then (around october'18) and I think we got to the point that it would be OK to use the "compressed" flag as a hint for U-Boot to uncompress things (meaning that a compressed initrd that should be passed to kernel compressed should not have the "compressed" flag in the FIT).

Alternatively, maybe we could take this as a first step and it can
later be expanded to support other types when someone has time to work
on that?

Or I could dig up my patches from October and we'll see how far you get with those?

Regards,
Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to