On 18.11.2012 5:55, Adam Gensler wrote:
Verifying Checksum ... OK
### SQUASHFS loading 'image/uImage' to 0x80800000
ERROR: LzmaDecode.c, 547
lzma_fs returned unexpected result 0x1
SQUASHFS error: squashfs_readdir: read_block
### SQUASHFS LOAD ERROR<0> for image!
I fetched wndr3800 sources from Netgear and extracted the u-boot part here:
http://koti.welho.com/hnyman1/Openwrt/trunk_error_does_not_boot/Netgear3800_uboot.zip
At the first glance it looks like the lib_bootstarp/lzmadecode.c basicly
returns 0 for success and 1 for most errors. There are several places where
errors are returned, but in most cases just LZMA_RESULT_DATA_ERROR is
returned, and that is 1. So no clue from the error number.
Based on the line number 547, the error is probably coming quite from the end
of the source file, possibly from this function:
len += kMatchMinLen;
#ifdef _LZMA_OUT_READ
if (rep0 > distanceLimit)
#else
if (rep0 > nowPos)
#endif
{
#ifdef DEBUG_ENABLE_BOOTSTRAP_PRINTF
printf("ERROR: %s, %d\n", __FILE__, __LINE__);
#endif
return LZMA_RESULT_DATA_ERROR;
}
That would suggest that the error is related to the structure of the
generated lzma encoded file.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel