Script to flash OrangePi-2G-IOT with custom linux image.
Script based fully on work of Orhan Kavrakoğlu (https://www.aib42.net/article/hacking-orangepi-2g).
My only contribution is merging it in a script and adding WiFi script.
Tested on Armbian image
Steps:
- Set debug selector switch on 1-4: Up, 5-8: Down
- Push powerbutton down
- Connect to computer via USB
- Start the scipt with root privileges
- Wait till script is done
- Disconnect and connect again OPi to provide power from USB
- Wait 2-3 minutes to startup
- It should be connected to WiFi now
- Connect via SSH using root:orangepi