Startup auto OR Auto startup when powerup

Hello

Am searching a way to make my banana auto startup when plugged-in (in charge)
I suppose I need to modify the Emmc…
I want to make my banana alltime running up
(when the power supply is down… reboot when it’s back)
Maybe using a OTG battery is an option…

Any clue ?
Thanks