There are many tutorials fot yor problem, try this one ...
http://highonandroid.com/android-roms/how-to-copy-files-over-to-your-android-in-a-bootloop-with-no-os-using-adb/2
This time I used a different download mirror, but it has happened again . I think I'll skip this version , thanks for your reply and for the great work here!
Hello , I have a redmi 2 , which is currently running the Rom HM2014813_6.3.17 . The installation of 6.3.31 soft-bricked it. I managed to get back to HM2014813_6.3.17, but how can I update from Android 4.4 to 5.1?