If you have a stock .img file (Amlogic burn package), you can modify it using:
2 — Required hardware and software Hardware: amlogic s905x firmware 71 2 repack