[PATCH] AM335x: MLO image issue

Teresa Gámez t.gamez at phytec.de
Mon Mar 23 08:17:32 PDT 2015


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?


Stefan Müller-Klieser (1):
  lib/lzo: port lzo fix from upstream kernel

 lib/lzo/lzo1x_decompress_safe.c | 105 ++++++++++++++++++++++------------------
 1 file changed, 58 insertions(+), 47 deletions(-)


More information about the barebox mailing list