mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] AM335x: MLO image issue
@ 2015-03-23 15:17 Teresa Gámez
  2015-03-23 15:17 ` [PATCH] lib/lzo: port lzo fix from upstream kernel Teresa Gámez
  2015-03-24  6:30 ` [PATCH] AM335x: MLO image issue Sascha Hauer
  0 siblings, 2 replies; 5+ messages in thread
From: Teresa Gámez @ 2015-03-23 15:17 UTC (permalink / raw)
  To: barebox

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?

Regards,
Teresa

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(-)

-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-24  8:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-23 15:17 [PATCH] AM335x: MLO image issue Teresa Gámez
2015-03-23 15:17 ` [PATCH] lib/lzo: port lzo fix from upstream kernel Teresa Gámez
2015-03-24  8:26   ` Holger Schurig
2015-03-24  6:30 ` [PATCH] AM335x: MLO image issue Sascha Hauer
2015-03-24  8:30   ` Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox