OpenWrt Forum Archive

Topic: gzipped lzma-loader corrupted on TL-WR1043ND

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

On recent builds from trunk I am observing boot failure on TL-WR1043ND where U-Boot reports GUNZIP error.
I was able to get some additional details and created ticket for it:
https://dev.openwrt.org/ticket/11074
But now I am stuck and this seems to be serious bug, since it basically bricks the router to the point, it has to be recovered from console.

Does anybody observe problems with this particular hardware and most recent lzma-loader? (It did work just two weeks ago.)

I’m still waiting for my USB-TTL thingie. But I built trunk about a week ago and it directly transmogrified into something adobe-like.
I suspect this is what happened, but I’ll see ehen I hook up serial.

Quite annoying, but that’s what you get from running trunk. Not a complaint.

Try make dirclean or simply nuke the buildroot and start over.
Back up .config if you have to.

(Last edited by alphasparc on 11 Mar 2012, 00:25)

alphasparc: If it was suggestion to me, I have already tried clean, dirclean, distclean. In all cases I ended up with GUNZIP error from U-Boot about image not being correct.

Then I used exactly same environment with just different Makefile (r29441), which does not (yet) use lzma-loader, and where complete kernel is gzipped and it works well too. So I concluded toolchain is probably fine (at least gzip), but the process of building the the image, and in particular connecting the parts together, somehow corrupts it.

The strange thing is, it worked with lzma-loader too, just about two weeks ago, but not anymore.
(I tried to explain this in the ticket mentioned above.).

One thing I forgot to add. I am using ImageBuilder to build the image.

The thing is solved (see https://dev.openwrt.org/ticket/11074) thanks to juhosg. Well, sort of. Make script was not putting lzma-loader in the image. Now it is time to fix this one smile.

(Last edited by risa2000 on 12 Mar 2012, 06:11)

Err, during unbricking my box over serial it turned out that OpenWrt was being booted, but it could not find init and panicked. No idea how that happened. Reflashed and it works now.

how do I load a new image into the router when it keep looping

Autobooting in 1 seconds## Booting image at bf020000 ...
   Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP ERROR - must RESET board to recover

Resetting...

my router was bricked, so I gained serial access; enter the 'tpl' command;
* erased the firmware (erase 0xbf020000 +7c0000)
* downloaded new firmware from computer to the router (tftpboot 0x81000000 code.bin)
* while copying the firmware to flash (cp.b 0x81000000 0xbf020000 0x7c0000) the routre became unresponsive so I had to turn it off.
ever since, it is looping

help is appreciated.

John

Problem solved. bad wire between the serial-pins and the USB/TTL.
After fixing this, I was able to download a new firmware.

John

The discussion might have continued from here.