Apk: can't install anything to RAM

BTW, I didn't do this stuff.

For anyone reading this later:
router with 128 MiB RAM should be fine for Tor, even for relay.
MaxMemInQueues might need tweaking, though:

I've been running a tor relay on my OpenWRT router for a few years reliably ... even if the router only has 128 MB.

OP's main issue wasn't RAM, but flash.