As I understand it, a closed-source custom firmware.
An open-source custom firmware?
Press and hold Home,Select,Start,Triangle, And square. While holding all of the buttons flip the power switch. After that keep holding all buttons without realising it goes to home.
This is the original method I used back in middle school. I've still got the battery lying around, but no longer remember how to do this.