<div dir="ltr"><div><div>Hi cmsv,<br><br>I can confirm that disabling "<span class="">Remove</span> ipkg/<span class="">opkg</span> status data files in final images" does indeed interfere with sysupgrade's ability to collect and preserve relevant config data. I've not found this option to save much space in the final squashfs image, at least not enough to justify the hassle.<br>
<br></div><div>Besides that, I've been using wpad-mini for psk2 IBSS-RSN just fine on atheros devices and ar71xx devices (specifically UBNT Nanostations and TP-Link MR-3020's). This is working for me on AA r36669 and now also AA r38347, albeit with the beacon_int patch on the latter, mentioned recent threads.<br>
<br>Also, I do configure /etc/config/wireless using vi, rather than via luci.<br></div> <br></div>Space-saving tips:<br><ul><li>Enable General Settings -> Optimize for Size in kernel_menuconfig (may be enabled by default).</li>
<li>Disable IPv6 if you don't need it.</li><li>Disable USB and autofs4 support if you don't need them.<br></li><li>Try wpad-mini instead of wpad.<br></li><li>In Global Build Settings, disable "Compile packages with debugging info" and "Compile the kernel with Debug FileSystem enabled."<br>
</li><li>In Advanced Configuration -> Target Options -> Target Optimizations, add the flag "-funit-at-a-time" to tell GCC to work harder at size optimization.</li><li>If you need SSL support, i.e. for curl, patch libcurl to use the latest version of cyassl or polarssl instead of openssl.<br>
</li></ul><div> <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 12, 2013 at 11:36 AM, cmsv <span dir="ltr"><<a href="mailto:cmsv@wirelesspt.net" target="_blank">cmsv@wirelesspt.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 10/08/2013 05:47 AM, Pau wrote:<br>
> Another trick is to disable "opkg" since (probably) you are not gonna<br>
> use it if the flash memory is so small.<br>
<br>
I have thought about removing opkg but there are some optional packages<br>
that are provided and quite useful for certain situations. what other<br>
method could it be used to install a package ?<br>
wget get can fetch but what is the mechanism that is used by opkg ?<br>
<br>
for example removing<br>
[ ] Remove ipkg/opkg status data files in final images<br>
also helps but seems to break the possibility of installing an upgrade<br>
package or a package. Am i correct ?<br>
<br>
I also wondered if it is a good or bad idea to remove:<br>
[*] Compile the kernel with Debug FileSystem enabled<br>
> --<br>
> ./p4u<br>
><br>
><br>
> On Tue, Oct 8, 2013 at 11:39 AM, Bastian Bittorf <<a href="mailto:bittorf@bluebottle.com">bittorf@bluebottle.com</a>> wrote:<br>
>> * cmsv <<a href="mailto:cmsv@wirelesspt.net">cmsv@wirelesspt.net</a>> [08.10.2013 10:45]:<br>
>>> Total: 169.8 KB<br>
>>><br>
>>> Does anyone uses, recommend or know about a smaller equivalent script or<br>
>>> package ?<br>
>><br>
>> there are a lot of things where can screw to get your image smaller.<br>
>><br>
>> first do this:<br>
>> disbale debugging stuff in 'make menuconfig'<br>
>> -> Global build settings<br>
>> -> [ ] Compile the kernel with symbol table information<br>
done<br>
>><br>
>> (you can even disable wireless-debug for your driver)<br>
Has been considered.<br>
<br>
>><br>
>> additionally, ou can disable printk and swap, which saves ~100k:<br>
>><br>
>> make kernel_menuconfig<br>
>> -> General setup<br>
>> [ ] Support for paging of anonymous memory (swap)<br>
done<br>
>> -> Configure standard kernel features (expert users)<br>
>> [ ] Enable support for printk<br>
done<br>
what exactly is printk most useful for ?<br>
>><br>
>> let us know, if it helps. for 4mb routers, the image<br>
>> should not exceed 3.6mb<br>
right now and for my testing model:<br>
3.8M openwrt-ar71xx-generic-dir-615-c1-squashfs-factory.bin<br>
3.2M openwrt-ar71xx-generic-dir-615-c1-squashfs-sysupgrade.bin<br>
(includes some extra needed packages and scrips)<br>
<br>
What other things could be removed without hurting the needed<br>
functionality for a batman-adv atheros only based firmware with an<br>
average of 400mhz cpu, 32mb ram and 4 mb flash.<br>
<br>
Although the sysupgrade for my tetsing model is 3.2mb; for other<br>
brands/models it goes slightly bigger last time i checked.<br>
<br>
One other package that is using twice the size that it needs to use is<br>
wpad which i have to use if i want ad-hoc to function with psk<br>
encryption. I am not able to use the wpad-mini package which is half the<br>
size of wpad pad due to this:<br>
<br>
<a href="http://rooter.kyberian.net/tag/adhoc" target="_blank">http://rooter.kyberian.net/tag/adhoc</a><br>
<br>
and batman-adv is not able to communicate with other nodes if the<br>
firmware uses wpad-mini.<br>
<br>
I believe that there might be a patch out there but unsure about it or<br>
if it has been added to AA.<br>
<br>
<br>
>><br>
>> bye, bastian<br>
>> _______________________________________________<br>
>> Battlemesh mailing list<br>
>> <a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a><br>
>> <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
> _______________________________________________<br>
> Battlemesh mailing list<br>
> <a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a><br>
> <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
><br>
<br>
<br>_______________________________________________<br>
openwrt-users mailing list<br>
<a href="mailto:openwrt-users@lists.openwrt.org">openwrt-users@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>314-246-9434<br>
</div>
</div>