You can download the MXQ S805 firmware 5.1 from the following link:

Finding a reliable download today is challenging because many original hosting sites (like Mega.nz or MediaFire links from 2016) have gone offline. Users typically seek the firmware to restore a bricked device or "Custom ROMs"

[Insert download link]