Try to follow instructions in this post:
http://wl500g.info/showpost.php?p=10155&postcount=11
You can find the mentioned files at Oleg's website:
http://wl500g.dyndns.org/wl500g-clear-nvram.trx
http://wl500g.dyndns.org/wl500g-recover.trx