From: Simon Goldschmidt Date: Thu, 18 Apr 2019 22:06:48 +0200 Subject: [U-Boot] [PATCH 1/2] fit: Support FDT compression In-Reply-To: References: <20190418012234.235263-1-jwerner@chromium.org> <20190418012234.235263-2-jwerner@chromium.org> Message-ID: <13305b5d-5583-18f9-6a05-46abd64a26a9@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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