Making a custom ROM work is a complex process. It involves bypassing Microsoft's secure bootloader to load an Android kernel.
For Android or Linux, you must flash a compatible TWRP image to the recovery partition using fastboot commands. nokia lumia 520 custom rom work
Disclaimer: Flashing voids warranties (if any) and can brick your device. Making a custom ROM work is a complex process