After monkeying around w/ NFS, SMB and Avahi/Bonjour, I wanted to see how well my TomatoUSB-ized Asus RT-N16 would run Apple's AFP. Reasonably well, it seems.
I basically followed bits and pieces of this :
though, since I already had avahi running (btw, dbus worked fine for me, in contrast to what the author experienced), I just had to install:
I'm using an ext3 filesystem (mounted async), and I get around 5.5MB/sec write, about 7.6MB/sec read, steady and stable. These are both better than what I see w/ NFS or SMB. write 7.3 MB/sec, read 9MB/sec. with netatalk 2.1.5
Too bad that we don't have a jfs.ko kernel module, and jfs utils to go with it. Ext4 would be nice, but there is no way that is going to happen without a major rework to make the kernel current(-ish). Ext4, jfs and xfs are all (usually) significantly faster on embedded devices.
His idea is nothing new, as I myself had written the article below (in turn, based on someone else's x86-based NAS article I'd seen, but I had adapted it to a Debianized LinkStation Pro).
I would not rely on a router as the host for TimeMachine/TimeCapsule service, though it would theoretically work OK with a HDD, for instance. It is just a bit too slow for that, whether you use SMB, NFS or AFP.
Various Broadcom Routers Running TomatoUSB (or DD-WRT) with Airprint & Cloud Print
See my Repo's at http://github.com/davygravy
Extra/Newer Optware ipks not in the dd-wrt/nslu2 feed
davy's 1-wire weather, courtesy of TomatoUSB, Optware & Maxi