[OE-core] [v2] [PATCH 0/7] wic:allow wic compile as an individual package
Lu.Jiang
lu.jiang at windriver.com
Fri Sep 7 03:02:23 UTC 2018
Hi all,
Thanks Tom help me review this patch.
The patch intend to bring wic into target, allow it generate new image
at runtime.
For example, most x86 board can boot from USB or SATA, then wic enable
uuid for partition to distinguish different device. If we use same image
for all device, uuid will be same. It is better to generate a new image
based on running system at runtime. Then wic is best choice.
In this patch set, patch 1-4 intend to bring wic into a individual
package and allow it running out of OE environment.
However, to allow wic running on target, we need hack current
implementation to fit target environment. This is patch 6 try to fix,
while Tom think the workround implementation isn't good. The patch can
not provide a good reason. I agree.
I'd like introduce a new image plugin in next review request. The new
plugin used to overcome the different between OE environment & target
environment, and allow wic to generate image direct on a block device to
save disk space usage on runtime. Please give your option about this, Tom.
BTW, for patch 7(use uuid for all partition in mkefi.wks), which is
irrelevant with this issue. I will send a separated RR.
Thanks
Jiang Lu
在 2018年08月31日 10:15, Jiang Lu 写道:
> [V2]
> Rebase patch to latest oe-core commmit.
>
> [V1 log]
> This patch set intend to allow wic compile as an individual package, then it can run both on host & target side.
>
> On host, it invoke by image_type_wic.bbclass to as a native tool to generate wic image.
>
> Patch 1-4 make wic compile as a native tool.
>
> On trarget, it parse wks file, and use current rootfs & /boot folder to generated a new wic image on target.
>
> Patch 5-6 fix a few minor issue on target.
>
> The patch is validate with mkefidisk.wks from oe-core layer on intel x86 platform.
>
> Assume /dev/sda2 is root device, then with following command, use could generate a new wic image
>
> $mount /dev/sda2 /tmp/sda
> $wic create /root/mkefidisk.wks -k /boot -r /tmp/sda -o /tmp/
>
> The generated image is under /tmp with name mkefidisk-xxx-sda.direct. Then user may dump this file into another booting deivce.
>
>
> Thanks
> Jiang Lu
>
More information about the Openembedded-core
mailing list