When that happened to my WRT54GS, I managed to downgrade to an older Netgear firmware that did not do this check. Then, from the older firmware, I could flash DD-WRT, no problem.
I now build routers / firewalls with a free OS to ensure I do not get burned again.
(Contact info in my profile if you don’t want to post it publicly)