OpenWrt Forum Archive

Topic: Re: LZMA ERROR 1 - must RESET

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

My second TL-WR703N is in perpetual reset (message above).

Is there any cure for this ?

Here is the serial port messages:

U-Boot 1.1.4 (Sep 25 2012 - 09:04:47)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 543

Decoding error = 1
LZMA ERROR 1 - must RESET

U-Boot 1.1.4 (Sep 25 2012 - 09:04:47)

AP121 (ar9330) U-boot

donhamilton wrote:

   Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 543

Decoding error = 1
LZMA ERROR 1 - must RESET

That sounds quite much like an issue I had with my wndr3700 build 2 years.
There the error was on line 547, but probably a slightly different u-boot version.
The reason was finally identified as a too wide dictionary in the lzma encoding in the firmware image creation phase.
The devs set a special limit for wndr3700, but that was not been set for other routers.

Read this thread: https://forum.openwrt.org/viewtopic.php?id=40565
(old bug about that: https://dev.openwrt.org/ticket/12454#comment:14 )
(and even older discussion https://lists.openwrt.org/pipermail/ope … 15846.html )

The cure for wndr3700 was to set -d20 paramater, limiting the dictionary size to 2^20 bytes (instead of the old -d23).

(Last edited by hnyman on 7 Nov 2014, 19:31)

I got the original Chinese firmware re-loaded.

Learned how to get W7 to tftp ! :-)

Now back to  openwrt.

My goal was to get Linkduino loaded, and now I have it.

Thanks for looking.

Greetings,

Sorry to reopen a very old thread, but I seem to have the same problem on a UAP. I'm wondering if you could tell me where in the source tree I could change the parameters for the LZMA call that compresses the kernel.

    Thanks,
    Val

The place depends on your router and the packaging process for the image.

For ar71xx router wndr3700 the command is in ar71xx generic image Makefile.

https://git.openwrt.org/?p=openwrt/open … =HEAD#l567


There is special parameter -d20 to set the dictionary size of 20 bits for lzma compression on line 567
For explanations check the links above.

(Last edited by hnyman on 16 Mar 2018, 19:28)

Cool,

In my .config file I see where you would select the wndr3700 device eg:

CONFIG_TARGET_ar71xx_generic_DEVICE_wndr3700

Though since I have an UAP I have this selected instead:

CONFIG_TARGET_ar71xx_generic_DEVICE_ubnt-unifi=y

My problem is that in the above Makefile, I don't see any defines for unifi devices, so I'm still not sure where to put the lmza -d20 change.

   Thanks,
    Val

(Last edited by valentis on 17 Mar 2018, 17:30)

valentis wrote:

Though since I have an UAP I have this selected instead:

CONFIG_TARGET_ar71xx_generic_DEVICE_ubnt-unifi=y

My problem is that in the above Makefile, I don't see any defines for unifi devices, so I'm still not sure where to put the lmza -d20 change.

If you spend a few minutes browsing the source code tree, you would find the Makefile for ubnt devices....
https://git.openwrt.org/?p=openwrt/open … =HEAD#l104

Some of the devices there seem to have the lzma compression step defined.
Not sure about your exact device.

The discussion might have continued from here.