I'll just drop this here. Something I got working just because I like the challenge, and not for practicality. Should probably work with Merlin builds as well, but haven't tried.
https://www.linksysinfo.org/index.php?threads/zfs-on-linux-on-tomato.74603/