[OpenWrt-Devel] Images are too big in LEDE but not in OpenWRT

Sven Eckelmann sven.eckelmann at openmesh.com
Fri Feb 9 03:05:02 EST 2018


On Freitag, 9. Februar 2018 01:36:49 CET Jakub Jančo wrote:
> Hello,
> 
> is there any reason why LEDE needs more empty space in firmware for
> TP-link tl-wr1043nd v3 ?

OpenWrt master should show you the exact same error message. OpenWrt 15.05 is 
quite outdated.

> In OpenWRT 15.01 we are building 7.3MB large images and have just
> enought space for configs.
> In LEDE 17.01 is max size ~6.5MB and we are not able to build our
> images, because we cannot strip more packages, now we are on 6.8MB.

Why do you think that you are now using only 6.8MB? The fw_max_len for 8Mlzma 
devices is 8126464 bytes in mktplinkfw.c. So your final image would be 8376020 
bytes large and thus it is rejected by mktplinkfw. The dd before that is from 
something else (the append-rootfs when I am not mistaken).

You might now need to start to remove more things (stuff which cannot be 
configured but has to be patched) - for example remove unused mach files from 
the kernel build, remove unused drivers from the kernel, remove unused symbols 
from large libraries (+ elf sections per function/data + elf section garbage 
collection during the link), get rid of things which you don't actually use 
(opkg?), ...

ar71xx-tiny from from gluon [1] could maybe also give you some inspiration.

Kind regards,
	Sven

[1] https://github.com/freifunk-gluon/gluon
    (for example grep for no_opkg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20180209/cd410311/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list