Hi Saemus,<br><br>I've still been tooling around with squeezing meshing firmware image onto a similar TP-Link TL-MR3020, which also has 4MB flash.  I'm just about to the point where I can get the kernel, basic filesystem, and even a coovachilli captive portal into 4MB, but I've had to do / am doing the following:<br>

<br>- Add the "-funit-at-a-time" compile optimiization flag, and use GCC v4.7.  This basically tells GCC to work harder at reducing compiled code size, and maybe yields 5-10% smaller images.<br><br>- Swap out libopenssl for libcyassl for use with curl.  (If you're using curl.)  I can share the patches for this if you'd like.<br>

<br>- While retaining IPv6 support in the kernel, switch all IPv6-related packages over to modules not included with the compile image.<br><br>- Select "Compressed source" or "Pre-compiled source" for the luci lua source files.  Theorectically, this reduces the space used by all the Luci web UI source files, although I've been able to observe and significant image size decrease with this.<br>
<br>- Port the IBSS-RSN stuff from hostapd + wpa_supplicant over to one of the smaller packages like wpad-mini.  (Not done yet.)<br><br>Note that installing *.ipk files from a mounted USB drive at boot should be quite doable, but you will want to make sure you have opk write the installed files to /tmp or something like that.  Likewise, important binaries and shared libraries installed to the ramdisk will probably need to have symlinks pointing to their proper location under / .  (I think the symlinks can just be stored on the internal root filesystem OK.  They'll just dangle until opkg installs the necessary files on each boot.)<br>
<br>I'm including the .config file I've used for my TP-Link TL-MR3020 for reference, although do please bear in mind this wasn't used for compiling Commotion.  Likewise, my config files so far exclude all USB stuff.<br>
<br><div class="gmail_quote">On Sun, Jun 2, 2013 at 9:14 AM, Seamus Tuohy <span dir="ltr"><<a href="mailto:s2e@opentechinstitute.org" target="_blank">s2e@opentechinstitute.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello All,<br>
<br>
I worked on getting a Commotion image to work on the battery powered TP<br>
Links that we just got in and quickly discovered that they only have 4MB<br>
of memory available. Even when I removed nearly every package imaginable<br>
I still could not get the image to build.<br>
<br>
It looks as if there is no easy way to find out the size of a squashfs<br>
package so I will try to remove everything except basic functionality<br>
and usb support and then get everything back on by running it off of a<br>
mounted usb this week.<br>
<br>
Just an FYI.<br>
<br>
s2e<br>
_______________________________________________<br>
Commotion-dev mailing list<br>
<a href="mailto:Commotion-dev@lists.chambana.net" target="_blank">Commotion-dev@lists.chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">https://lists.chambana.net/mailman/listinfo/commotion-dev</a><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><a href="tel:314-246-9434" value="+13142469434" target="_blank">314-246-9434</a><br>

</div>