[OE-core] [PATCH] core-image-tiny-initramfs: initramfs recipes should not generate an actual image file

wenzong fan wenzong.fan at windriver.com
Tue Nov 28 06:19:22 UTC 2017



On 11/28/2017 02:00 PM, Alejandro Hernandez wrote:
> Hey Wenzong,
> 
> If you are using an Intel NUC, there is a recipe in meta-intel which is 
> called core-image-tiny (not initramfs), that one is exactly what you are 
> asking for, it builds the core-image-tiny-initramfs and then 
> automatically creates a WIC image, which would be something similar to 
> manually building core-image-tiny-initramfs and then doing:
> 
> $ wic create core-image-tiny -e core-image-tiny-initramfs
> 
> 
> Hope that helps!

Great, that's what I want.

Thank you so much!

Wenzong

> 
> 
> Alejandro
> 
> 
> 
> On 11/27/2017 09:29 PM, wenzong fan wrote:
>> Hi Alex,
>>
>> Do you have a case that generating an image with wic + tiny initramfs? 
>> If so could you please show me that?
>>
>> I tried to create an image with below commands directly, I'm not sure 
>> if this is a proper test case:
>> $ wic create mkefidisk -e core-image-tiny-initramfs
>>
>> While I booting it with USB + Intel NUC, it hangs at finding rootfs.
>>
>> Thanks
>> Wenzong
>>
>> On 09/16/2017 02:22 AM, Alejandro Hernandez wrote:
>>> core-image-tiny-initramfs was used to generate a wic image, which was 
>>> conceptually wrong
>>> since initrafms recipes should only generate the boot artifacts that 
>>> can later be used
>>> by another recipe to generate an image using the tool of their choice.
>>>
>>> Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
>>> ---
>>>   meta/recipes-core/images/core-image-tiny-initramfs.bb | 7 +++----
>>>   1 file changed, 3 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb 
>>> b/meta/recipes-core/images/core-image-tiny-initramfs.bb
>>> index 184727ddf7a..a8893d1e53e 100644
>>> --- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
>>> +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
>>> @@ -1,10 +1,9 @@
>>>   # Simple initramfs image artifact generation for tiny images.
>>>   DESCRIPTION = "Tiny image capable of booting a device. The kernel 
>>> includes \
>>>   the Minimal RAM-based Initial Root Filesystem (initramfs), which 
>>> finds the \
>>> -first 'init' program more efficiently. core-image-tiny-initramfs 
>>> doesn't \
>>> +first 'init' program more efficiently. core-image-tiny-initramfs 
>>> doesn't \
>>>   actually generate an image but rather generates boot and rootfs 
>>> artifacts \
>>> -into a common location that can subsequently be picked up by 
>>> external image \
>>> -generation tools such as wic."
>>> +that can subsequently be picked up by external image generation 
>>> tools such as wic."
>>>     PACKAGE_INSTALL = "initramfs-live-boot packagegroup-core-boot 
>>> dropbear ${VIRTUAL-RUNTIME_base-utils} udev base-passwd 
>>> ${ROOTFS_BOOTSTRAP_INSTALL}"
>>>   @@ -17,7 +16,7 @@ IMAGE_LINGUAS = ""
>>>   LICENSE = "MIT"
>>>     # don't actually generate an image, just the artifacts needed for 
>>> one
>>> -IMAGE_FSTYPES = "${INITRAMFS_FSTYPES} wic"
>>> +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>>>     inherit core-image
>>>
> 
> 



More information about the Openembedded-core mailing list