Flashing firmware is risky. You must prepare your device to avoid "bricking" it.

This article is for educational purposes. Flashing unofficial firmware: