Add copy_bootloader_to_sdram function.