[LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

Mathias Kresin dev at kresin.me
Wed Nov 9 14:29:45 PST 2016


09.11.2016 23:09, Eddi De Pieri:
> Hi  Mathias,
>
> Just tried to boot a ramimage from tftp on vgv7519:
>
> On my board:
> Bytes transferred = 7084442 (6c199a hex)
> ## Booting kernel from Legacy Image at 81000000 ...
>    Image Name:   MIPS OpenWrt Linux-3.10.49
>    Created:      2014-11-11  17:40:00 UTC
>    Image Type:   MIPS Linux Kernel Image (lzma compressed)
>    Data Size:    7084378 Bytes = 6.8 MiB
>    Load Address: 80002000
>    Entry Point:  80002000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... LZMA: uncompress or overwrite error
> 7 - must RESET b
> ROM VER: 1.0.5
> CFG 01
>
> Any idea on how to fix this issue?
> Does you see it on other board?

Yes I see this on other lantiq boards as well if the kernel gets to big.

The memory of lantiq devices starts at 0x80000000. The default 
loadaddress in the env of your bootloader is 0x81000000 (16MByte 
boundary). Which means the compressed kernel is loaded to 0x81000000 by 
u-boots tftp.

During decompression the kernel is written to 0x80000000 by u-boot. If 
the decompressed kernel is bigger than 0x1000000 bytes, it overwrites 
the compress kernel still in memory and not yet completely decompressed. 
The result is the error messages you are seeing.

The solution is either to shrink your kernel+initramfs by enabling LZMA 
compression for the initramfs or to load the kernel image to the 32MByte 
boundary for example:

   tftpboot 0x82000000 image.bin; bootm 0x82000000

Mathias



More information about the Lede-dev mailing list