[PATCH] AM335x: MLO image issue

Sascha Hauer s.hauer at pengutronix.de
Mon Mar 23 23:30:15 PDT 2015


On Mon, Mar 23, 2015 at 04:17:32PM +0100, Teresa Gámez wrote:
> Hello,
> 
> we have encountered an issue in the AM335x MLO, which seems to depend on the 
> image size itself. The bootloader hangs up in the decompress_unlzo() function.
> The decompress_unlzo() function fails with "dest len longer than block size"
> and ends up in it's error function in an infinite loop.
> 
> As the error seems to depend in the image size, adding or removing random code
> makes the image working again.
> 
> We have seen this issue so far only with a MLO size of 98823 bytes and
> barebox.z size: 61003 bytes. But could reproduce it using different toolchains.
> 
> So we suspect this is an issue in the lzo code. 
> Syncing the lzo code with the kernel code, seems to help.
> For this we have attached a patch.
> But we are unsure if this is the solution to the bug we have.
> 
> Any ideas on this?

I have no idea how lzo works. I could apply the patch though, as it only
contains an update to the latest kernel code. Of course it would feel
better if we knew what we are doing.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list