简体   繁体   English

yocto中wic和hddimg格式之间的区别

[英]Difference between wic and hddimg format in yocto

I have generated a core-image-minimal image for my Intel board in Yocto. 我已经为Yocto中的英特尔主板生成了核心图像最小化图像。

Looking into tmp/deploy/images folder they are many images. 查看tmp / deploy / images文件夹,它们是很多图像。

I flashed *.wic image using dd command on USB and it created two partitions ( Boot and Platform ) and allowed only to perform a live booting without allowing it to install on the harddisk of the board. 我在USB上使用dd命令刷了* .wic图像,它创建了两个分区(引导和平台),只允许执行实时引导而不允许它安装在主板的硬盘上。

I then flashed *.hddimg on the USB using dd command. 然后我使用dd命令在USB上刷了* .hddimg。 It only created a "boot" partition which has rootfs.img, syslinux and EFI folder. 它只创建了一个“boot”分区,它有rootfs.img,syslinux和EFI文件夹。

Booting using USB provided me an "Install" option, which installed on the board and when I rebooted after installing, it displays "No bootable media found" 使用USB启动为我提供了一个“安装”选项,安装在主板上,安装后重新启动时,显示“找不到可启动媒体”

Using bootable image there are two partitions in the hard disk. 使用可引导映像,硬盘中有两个分区。 Why it is not booting.. 为什么它不启动..

Steps followed: 遵循的步骤:

  1. Created an minimal yocto image using "bitbake core-image-minimal" command 使用“bitbake core-image-minimal”命令创建了一个最小的yocto图像
  2. Flashed the USB using the dd command. 使用dd命令闪烁USB。 sudo dd if=tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.hddimg of=/dev/sdb sudo dd if = tmp / deploy / images / intel-corei7-64 / core-image-minimal-intel-corei7-64.hddimg of = / dev / sdb
  3. Clicked on install and typed “sda” 点击安装并输入“sda”
  4. The installation was successful and when I tried to restart by removing the USB Drive, it says “No boot options found. 安装成功,当我尝试通过移除USB驱动器重新启动时,它说“找不到启动选项。 Please install bootable media and restart." 请安装可启动媒体并重新启动。“

What is the mistake I am doing here. 我在这里做的错误是什么?

Which image to choose and when.. 选择哪个图像以及何时..

There was not much info about online, so I asked this question in the intel community and here is the response of that: 关于网上的信息不多,所以我在英特尔社区提出了这个问题,以下是对此的回应:

Generally a .wic image is intended to be installed directly to its final destination, whereas an hddimg is for evaluation and installation elsewhere. 通常,.wic图像旨在直接安装到其最终目的地,而hddimg用于在其他地方进行评估和安装。

By default meta-intel .wic images only have an EFI bootloader, and will not boot via legacy BIOS. 默认情况下,meta-intel .wic图像只有EFI引导加载程序,并且不会通过传统BIOS引导。

An hddimg will have both an EFI bootloader and the syslinux binaries that let it boot from legacy BIOS. hddimg将同时具有EFI引导加载程序和syslinux二进制文件,使其可以从旧版BIOS启动。

On startup with your installer USB image do you get a light gray screen with four options? 在使用安装程序USB映像启动时,您会看到一个带有四个选项的浅灰色屏幕吗? If so it is booting via legacy BIOS. 如果是这样,它通过传统BIOS启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM