At the Autonomous garden, we plant perennial Egyptian walking onions (also known as tree onions) and garlic around our fruit and nut trees for that reason. I don't know if it repels them, but I know I haven't had any damage and my garden has regular furry visitors.
With corn, I've always done...