<div dir="ltr"><div><div>Hi cmsv,<br><br>I can confirm that disabling &quot;<span class="">Remove</span> ipkg/<span class="">opkg</span> status data files in final images&quot; does indeed interfere with sysupgrade&#39;s ability to collect and preserve relevant config data.  I&#39;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&#39;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&#39;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 -&gt; Optimize for Size in kernel_menuconfig (may be enabled by default).</li>

<li>Disable IPv6 if you don&#39;t need it.</li><li>Disable USB and autofs4 support if you don&#39;t need them.<br></li><li>Try wpad-mini instead of wpad.<br></li><li>In Global Build Settings, disable &quot;Compile packages with debugging info&quot; and &quot;Compile the kernel with Debug FileSystem enabled.&quot;<br>

</li><li>In Advanced Configuration -&gt; Target Options -&gt; Target Optimizations, add the flag &quot;-funit-at-a-time&quot; 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">&lt;<a href="mailto:cmsv@wirelesspt.net" target="_blank">cmsv@wirelesspt.net</a>&gt;</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>
&gt; Another trick is to disable &quot;opkg&quot; since (probably) you are not gonna<br>
&gt; 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>
&gt; --<br>
&gt; ./p4u<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Oct 8, 2013 at 11:39 AM, Bastian Bittorf &lt;<a href="mailto:bittorf@bluebottle.com">bittorf@bluebottle.com</a>&gt; wrote:<br>
&gt;&gt; * cmsv &lt;<a href="mailto:cmsv@wirelesspt.net">cmsv@wirelesspt.net</a>&gt; [08.10.2013 10:45]:<br>
&gt;&gt;&gt; Total: 169.8 KB<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Does anyone uses, recommend or know about a smaller equivalent script or<br>
&gt;&gt;&gt; package ?<br>
&gt;&gt;<br>
&gt;&gt; there are a lot of things where can screw to get your image smaller.<br>
&gt;&gt;<br>
&gt;&gt; first do this:<br>
&gt;&gt; disbale debugging stuff in &#39;make menuconfig&#39;<br>
&gt;&gt; -&gt; Global build settings<br>
&gt;&gt; -&gt; [ ] Compile the kernel with symbol table information<br>
done<br>
&gt;&gt;<br>
&gt;&gt; (you can even disable wireless-debug for your driver)<br>
Has been considered.<br>
<br>
&gt;&gt;<br>
&gt;&gt; additionally, ou can disable printk and swap, which saves ~100k:<br>
&gt;&gt;<br>
&gt;&gt; make kernel_menuconfig<br>
&gt;&gt; -&gt; General setup<br>
&gt;&gt; [ ] Support for paging of anonymous memory (swap)<br>
done<br>
&gt;&gt; -&gt; Configure standard kernel features (expert users)<br>
&gt;&gt; [ ] Enable support for printk<br>
done<br>
what exactly is printk most useful for ?<br>
&gt;&gt;<br>
&gt;&gt; let us know, if it helps. for 4mb routers, the image<br>
&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt; bye, bastian<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Battlemesh mailing list<br>
&gt;&gt; <a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a><br>
&gt;&gt; <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
&gt; _______________________________________________<br>
&gt; Battlemesh mailing list<br>
&gt; <a href="mailto:Battlemesh@ml.ninux.org">Battlemesh@ml.ninux.org</a><br>
&gt; <a href="http://ml.ninux.org/mailman/listinfo/battlemesh" target="_blank">http://ml.ninux.org/mailman/listinfo/battlemesh</a><br>
&gt;<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>