From: Michal Simek Date: Wed, 25 Jul 2018 08:40:59 +0200 Subject: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions In-Reply-To: <80b1afeb-2f56-fdea-2365-9ef4976eb0fe@de.pepperl-fuchs.com> References: <91ca85a884dda58b0469a2dc641d40172ca2f72a.1532437657.git.michal.simek@xilinx.com> <80b1afeb-2f56-fdea-2365-9ef4976eb0fe@de.pepperl-fuchs.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 25.7.2018 08:26, Simon Goldschmidt wrote: > > > On 24.07.2018 15:07, Michal Simek wrote: >> There is no reason to limit gzip usage only for OS_BOOT and kernel image >> type. > >> Signed-off-by: Michal Simek >> --- >> >>   common/spl/spl_fit.c | 5 +---- >>   1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c >> index 9eabb1c1058b..dbf5ac33a845 100644 >> --- a/common/spl/spl_fit.c >> +++ b/common/spl/spl_fit.c >> @@ -257,10 +257,7 @@ static int spl_load_fit_image(struct >> spl_load_info *info, ulong sector, >>       board_fit_image_post_process(&src, &length); >>   #endif >>   -    if (IS_ENABLED(CONFIG_SPL_OS_BOOT)    && >> -        IS_ENABLED(CONFIG_SPL_GZIP)        && >> -        image_comp == IH_COMP_GZIP        && >> -        type == IH_TYPE_KERNEL) { >> +    if (IS_ENABLED(CONFIG_SPL_GZIP) && image_comp == IH_COMP_GZIP) { >>           size = length; >>           if (gunzip((void *)load_addr, CONFIG_SYS_BOOTM_LEN, >>                  src, &size)) { >> > > I suppose this is to support a gziped fpga image in a fit. Does this > work for U-Boot proper already? Luis has tested it some days ago based on my suggestion. I have tried that yesterday on zynq zc706 and it was also working for internal data. Please take a look at second thread where also times are listed. Thanks, Michal