Please refer to Prepare boot image and Prepare Boot Medium for instructions.