prepare bootloader code for xos