The site recommended is www.customizepsp.com, which lists downgrade options for various PSP firmware versions.
A caution that the original omits: downgrading and custom firmware carry a real risk of bricking the handheld, and the process differs between PSP models and motherboard revisions. Read the guide for your exact hardware twice before you start, and know that the 5.01 era is old enough that most current information lives in archived forum threads.