summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChee Yang Lee <chee.yang.lee@intel.com>2019-09-17 11:57:31 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-09-18 12:59:27 +0800
commitdaac601e4db99d7d8d7322b78a910f8a36990be7 (patch)
treec901d07f2ba4f8ee56f61d7f6240251636ba8578
parent074670cd2d7aa2f2814786f42d61f39cfbb16181 (diff)
downloadmeta-intel-daac601e4db99d7d8d7322b78a910f8a36990be7.tar.gz
README: include steps to build installer image
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--README27
1 files changed, 27 insertions, 0 deletions
diff --git a/README b/README
index fef16673..bac2e0f5 100644
--- a/README
+++ b/README
@@ -34,6 +34,7 @@ Table of Contents
34 II. Building and booting meta-intel BSP layers 34 II. Building and booting meta-intel BSP layers
35 a. Building the intel-common BSP layers 35 a. Building the intel-common BSP layers
36 b. Booting the intel-common BSP images 36 b. Booting the intel-common BSP images
37 c. Building the installer image
37 III. Technical Miscellany 38 III. Technical Miscellany
38 Benefits of using meta-intel 39 Benefits of using meta-intel
39 The intel-common kernel package architecture 40 The intel-common kernel package architecture
@@ -197,6 +198,32 @@ characters), try doing this first:
197 198
198 $ dd if=/dev/zero of=/dev/sdf bs=1M count=512 199 $ dd if=/dev/zero of=/dev/sdf bs=1M count=512
199 200
201c. Building the installer image
202-----------------------------------------------
203
204If you plan to install your image to your target machine, you can build a wic
205based installer image instead of default wic image. To build it, you need to
206add below configuration to local.conf :
207
208 WKS_FILE = "image-installer.wks.in"
209 IMAGE_FSTYPES_append = " ext4"
210 IMAGE_TYPEDEP_wic = "ext4"
211 INITRD_IMAGE_LIVE="core-image-minimal-initramfs"
212 do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete"
213 do_rootfs[depends] += "virtual/kernel:do_deploy"
214 IMAGE_BOOT_FILES_append = "\
215 ${KERNEL_IMAGETYPE} \
216 microcode.cpio \
217 ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.ext4;rootfs.img \
218 ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
219 ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \
220 ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \
221 ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \
222 ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} "
223
224Burn the wic image onto USB flash device, insert the device to target machine
225and power on. This should start the installation process.
226
200III. Technical Miscellany 227III. Technical Miscellany
201========================= 228=========================
202 229