Getting more space on UniFi AC Lite/LRs on OpenWrt
If you've used OpenWrt on UniFi AC Lite/LRs, you may know that the overlayfs only provides 3.6 MB of space. If you think about it, that's kinda weird, because all the hardware docs say that the access point has 16 MB of flash, so where did all the other 12.4 MBs go? Surely they're not all being taken up by the OS.
Well, have you ever wondered why you needed to flash the firmware twice when you first install OpenWrt on a UniFi Lite/LR? Once to kernel0 and another to kernel1? That's because we (OpenWrt community/developers) do not know how Ubiquiti's UniFi U-Boot decides which partition to boot from, as it can boot from either kernel0 or kernel1. Hence we flash to both partitions.