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

2018-02-09 Thread Sven Eckelmann
On Freitag, 9. Februar 2018 09:05:02 CET Sven Eckelmann wrote:
[...]
> > 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.
[...]

Btw. the image sizes in mktplinkfw also include the reserved space of 
262144 bytes. See the option -X in Build/mktplinkfw [1]. My use of the term 
"final image" might therefore be a little bit misleading - it is just the size 
which mktplinkfw calculates including the reserved space. But this hasn't 
changed since Chaos Calmer [2].

And I just saw that Matthias Schiffer also integrated his ar71xx target in 
OpenWrt. So you might want to check his patch [3] to get a little bit inspired.

Kind regards,
Sven

[1] 
https://github.com/openwrt/openwrt/blob/9a08c104e2f2418f580f4ef218d890ea768f7a23/target/linux/ar71xx/image/common-tp-link.mk#L32
[2] 
https://github.com/openwrt/chaos_calmer/blob/2adad7714eebf89db7471bfd8d014b36c1e56b22/target/linux/ar71xx/image/Makefile#L59
[3] 
https://github.com/openwrt/openwrt/commit/0cd5e85e7ad621223b0787e66d8ad20fb2694135

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


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

2018-02-09 Thread Sven Eckelmann
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)

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


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

2018-02-08 Thread David Lang
two years of development means that lots of packages are larger. you will have 
to see fi there are config options for the packages that you are using that 
reduce their size


I don't know what configuring limits would mean? not produce an image if it's 
too large? start leaving things out when it hits a limit?


David Lang
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


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

2018-02-08 Thread Jakub Jančo
Hello,

is there any reason why LEDE needs more empty space in firmware for
TP-link tl-wr1043nd v3 ?

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.

Is it possible to configure limits?

Thanks for help.

Number of duplicate files found 281
Number of inodes 2517
Number of files 2109
Number of fragments 55
Number of symbolic links  266
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 141
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
13189+1 records in
13189+1 records out
6753020 bytes (6.8 MB) copied, 0.0269157 s, 251 MB/s
[mktplinkfw] kernel length aligned to 1360344
[mktplinkfw] *** error: images are too big by 249556 bytes
cp: cannot stat
'/var/lib/jenkins/workspace/openwrt-buildbot-17-01-imagebuilder/lede-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v3-squashfs-sysupgrade.bin':
No such file or directory
13189+1 records in
13189+1 records out
6753020 bytes (6.8 MB) copied, 0.0267773 s, 252 MB/s
[mktplinkfw] kernel length aligned to 1360344
[mktplinkfw] *** error: images are too big by 249556 bytes
cp: cannot stat
'/var/lib/jenkins/workspace/openwrt-buildbot-17-01-imagebuilder/lede-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v3-squashfs-factory.bin':
No such file or directory
padding image to 0068
padding image to 00671000
padding image to 00672000
padding image to 00674000
padding image to 0068
52+1 records in
53+0 records out
6946816 bytes (6.9 MB) copied, 0.00822619 s, 844 MB/s



--
S pozdravom Jakub Janco
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel