* initramfs image
@ 2012-05-09 1:54 Manuel Bessler
2012-05-09 18:18 ` Darren Hart
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Bessler @ 2012-05-09 1:54 UTC (permalink / raw)
To: yocto
Hi,
I'm trying to figure out how to build an image of type initramfs, ie.
kernel with built-in rootfs.
I've got a rootfs.cpio.gz in build/tmp/deploy/images. But how do I
tell the kernel to actually use it
and "swallow in" the rootfs.
I've found a few variable that have to do with initramfs', but there
are no simple examples,
and for some variables I've not found any examples nor documentation at all.
in .../images/myimage-initramfs.bb I have:
require myimage.bb
INITRAMFS_FSTYPES = "cpio.gz"
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
In the same file I tried to set INITRAMFS_IMAGE to:
INITRAMFS_IMAGE = "myimage "
Do I need to set CONFIG_INITRAMFS_SOURCE in my kernel config manually,
and if yes, to what?
My kernel recipe is (for now) a simple kernel build, ie "inherit
kernel"-based only.
Am I using INITRAMFS_IMAGE the right way? What about INITRAMFS_TASK ?
I could not find any information on this variable....
I'm using yocto 1.2.
Does anyone have a simple example on how to build a kernel with
initramfs built in?
I'd appreciate any help.
Thanks,
Manuel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: initramfs image
2012-05-09 1:54 initramfs image Manuel Bessler
@ 2012-05-09 18:18 ` Darren Hart
2012-05-09 18:44 ` Andrea Adami
0 siblings, 1 reply; 5+ messages in thread
From: Darren Hart @ 2012-05-09 18:18 UTC (permalink / raw)
To: Manuel Bessler; +Cc: yocto
On 05/08/2012 06:54 PM, Manuel Bessler wrote:
> Hi,
>
> I'm trying to figure out how to build an image of type initramfs, ie.
> kernel with built-in rootfs.
> I've got a rootfs.cpio.gz in build/tmp/deploy/images. But how do I
> tell the kernel to actually use it
> and "swallow in" the rootfs.
This isn't currently supported. The problem is the kernel would have to
wait for the image to be completed, and the image currently waits for
the kernel to be completed. In practice, this is often done in two
stages, the kernel is built, the rootfs is built, then the kernel is
rebuilt. This workflow has not been configured for OE/Yocto yet. If this
is an important feature for you, please consider opening a feature request.
Regards,
Darren Hart
>
> I've found a few variable that have to do with initramfs', but there
> are no simple examples,
> and for some variables I've not found any examples nor documentation at all.
>
> in .../images/myimage-initramfs.bb I have:
> require myimage.bb
> INITRAMFS_FSTYPES = "cpio.gz"
> IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>
> In the same file I tried to set INITRAMFS_IMAGE to:
> INITRAMFS_IMAGE = "myimage "
>
>
> Do I need to set CONFIG_INITRAMFS_SOURCE in my kernel config manually,
> and if yes, to what?
> My kernel recipe is (for now) a simple kernel build, ie "inherit
> kernel"-based only.
>
> Am I using INITRAMFS_IMAGE the right way? What about INITRAMFS_TASK ?
> I could not find any information on this variable....
>
> I'm using yocto 1.2.
>
>
> Does anyone have a simple example on how to build a kernel with
> initramfs built in?
>
> I'd appreciate any help.
> Thanks,
> Manuel
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: initramfs image
2012-05-09 18:18 ` Darren Hart
@ 2012-05-09 18:44 ` Andrea Adami
2012-05-09 18:45 ` Andrea Adami
0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2012-05-09 18:44 UTC (permalink / raw)
To: yocto
On Wed, May 9, 2012 at 8:18 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>
>
> On 05/08/2012 06:54 PM, Manuel Bessler wrote:
>> Hi,
>>
>> I'm trying to figure out how to build an image of type initramfs, ie.
>> kernel with built-in rootfs.
>> I've got a rootfs.cpio.gz in build/tmp/deploy/images. But how do I
>> tell the kernel to actually use it
>> and "swallow in" the rootfs.
>
> This isn't currently supported. The problem is the kernel would have to
> wait for the image to be completed, and the image currently waits for
> the kernel to be completed. In practice, this is often done in two
> stages, the kernel is built, the rootfs is built, then the kernel is
> rebuilt. This workflow has not been configured for OE/Yocto yet. If this
> is an important feature for you, please consider opening a feature request.
>
> Regards,
>
> Darren Hart
>
>>
>> I've found a few variable that have to do with initramfs', but there
>> are no simple examples,
>> and for some variables I've not found any examples nor documentation at all.
>>
>> in .../images/myimage-initramfs.bb I have:
>> require myimage.bb
>> INITRAMFS_FSTYPES = "cpio.gz"
>> IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>>
>> In the same file I tried to set INITRAMFS_IMAGE to:
>> INITRAMFS_IMAGE = "myimage "
>>
>>
>> Do I need to set CONFIG_INITRAMFS_SOURCE in my kernel config manually,
>> and if yes, to what?
>> My kernel recipe is (for now) a simple kernel build, ie "inherit
>> kernel"-based only.
>>
>> Am I using INITRAMFS_IMAGE the right way? What about INITRAMFS_TASK ?
>> I could not find any information on this variable....
>>
>> I'm using yocto 1.2.
>>
>>
>> Does anyone have a simple example on how to build a kernel with
>> initramfs built in?
>>
>> I'd appreciate any help.
>> Thanks,
>> Manuel
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
> --
> Darren Hart
> Intel Open Source Technology Center
> Yocto Project - Linux Kernel
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
I think I've answered a similar question last week.
Pls. see this thread:
https://lists.yoctoproject.org/pipermail/yocto/2012-May/008625.htmlsimilar
question was answ
Regards
Andrea
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: initramfs image
2012-05-09 18:44 ` Andrea Adami
@ 2012-05-09 18:45 ` Andrea Adami
2012-05-10 2:29 ` Manuel Bessler
0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2012-05-09 18:45 UTC (permalink / raw)
To: yocto
On Wed, May 9, 2012 at 8:44 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> On Wed, May 9, 2012 at 8:18 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>>
>>
>> On 05/08/2012 06:54 PM, Manuel Bessler wrote:
>>> Hi,
>>>
>>> I'm trying to figure out how to build an image of type initramfs, ie.
>>> kernel with built-in rootfs.
>>> I've got a rootfs.cpio.gz in build/tmp/deploy/images. But how do I
>>> tell the kernel to actually use it
>>> and "swallow in" the rootfs.
>>
>> This isn't currently supported. The problem is the kernel would have to
>> wait for the image to be completed, and the image currently waits for
>> the kernel to be completed. In practice, this is often done in two
>> stages, the kernel is built, the rootfs is built, then the kernel is
>> rebuilt. This workflow has not been configured for OE/Yocto yet. If this
>> is an important feature for you, please consider opening a feature request.
>>
>> Regards,
>>
>> Darren Hart
>>
>>>
>>> I've found a few variable that have to do with initramfs', but there
>>> are no simple examples,
>>> and for some variables I've not found any examples nor documentation at all.
>>>
>>> in .../images/myimage-initramfs.bb I have:
>>> require myimage.bb
>>> INITRAMFS_FSTYPES = "cpio.gz"
>>> IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>>>
>>> In the same file I tried to set INITRAMFS_IMAGE to:
>>> INITRAMFS_IMAGE = "myimage "
>>>
>>>
>>> Do I need to set CONFIG_INITRAMFS_SOURCE in my kernel config manually,
>>> and if yes, to what?
>>> My kernel recipe is (for now) a simple kernel build, ie "inherit
>>> kernel"-based only.
>>>
>>> Am I using INITRAMFS_IMAGE the right way? What about INITRAMFS_TASK ?
>>> I could not find any information on this variable....
>>>
>>> I'm using yocto 1.2.
>>>
>>>
>>> Does anyone have a simple example on how to build a kernel with
>>> initramfs built in?
>>>
>>> I'd appreciate any help.
>>> Thanks,
>>> Manuel
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>
>> --
>> Darren Hart
>> Intel Open Source Technology Center
>> Yocto Project - Linux Kernel
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
> I think I've answered a similar question last week.
>
> Pls. see this thread:
> https://lists.yoctoproject.org/pipermail/yocto/2012-May/008625.htmlsimilar
> question was answ
>
> Regards
>
> Andrea
Bad copy&paste :/ sry
https://lists.yoctoproject.org/pipermail/yocto/2012-May/008625.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: initramfs image
2012-05-09 18:45 ` Andrea Adami
@ 2012-05-10 2:29 ` Manuel Bessler
0 siblings, 0 replies; 5+ messages in thread
From: Manuel Bessler @ 2012-05-10 2:29 UTC (permalink / raw)
To: yocto
Hi Andrea,
thanks for the link, I will try that out.
Manuel
On Wed, May 9, 2012 at 2:45 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> On Wed, May 9, 2012 at 8:44 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
>> On Wed, May 9, 2012 at 8:18 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>>>
>>>
>>> On 05/08/2012 06:54 PM, Manuel Bessler wrote:
>>>> Hi,
>>>>
>>>> I'm trying to figure out how to build an image of type initramfs, ie.
>>>> kernel with built-in rootfs.
>>>> I've got a rootfs.cpio.gz in build/tmp/deploy/images. But how do I
>>>> tell the kernel to actually use it
>>>> and "swallow in" the rootfs.
>>>
>>> This isn't currently supported. The problem is the kernel would have to
>>> wait for the image to be completed, and the image currently waits for
>>> the kernel to be completed. In practice, this is often done in two
>>> stages, the kernel is built, the rootfs is built, then the kernel is
>>> rebuilt. This workflow has not been configured for OE/Yocto yet. If this
>>> is an important feature for you, please consider opening a feature request.
>>>
>>> Regards,
>>>
>>> Darren Hart
>>>
>>>>
>>>> I've found a few variable that have to do with initramfs', but there
>>>> are no simple examples,
>>>> and for some variables I've not found any examples nor documentation at all.
>>>>
>>>> in .../images/myimage-initramfs.bb I have:
>>>> require myimage.bb
>>>> INITRAMFS_FSTYPES = "cpio.gz"
>>>> IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>>>>
>>>> In the same file I tried to set INITRAMFS_IMAGE to:
>>>> INITRAMFS_IMAGE = "myimage "
>>>>
>>>>
>>>> Do I need to set CONFIG_INITRAMFS_SOURCE in my kernel config manually,
>>>> and if yes, to what?
>>>> My kernel recipe is (for now) a simple kernel build, ie "inherit
>>>> kernel"-based only.
>>>>
>>>> Am I using INITRAMFS_IMAGE the right way? What about INITRAMFS_TASK ?
>>>> I could not find any information on this variable....
>>>>
>>>> I'm using yocto 1.2.
>>>>
>>>>
>>>> Does anyone have a simple example on how to build a kernel with
>>>> initramfs built in?
>>>>
>>>> I'd appreciate any help.
>>>> Thanks,
>>>> Manuel
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>> --
>>> Darren Hart
>>> Intel Open Source Technology Center
>>> Yocto Project - Linux Kernel
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>> I think I've answered a similar question last week.
>>
>> Pls. see this thread:
>> https://lists.yoctoproject.org/pipermail/yocto/2012-May/008625.htmlsimilar
>> question was answ
>>
>> Regards
>>
>> Andrea
>
> Bad copy&paste :/ sry
>
> https://lists.yoctoproject.org/pipermail/yocto/2012-May/008625.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-10 2:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 1:54 initramfs image Manuel Bessler
2012-05-09 18:18 ` Darren Hart
2012-05-09 18:44 ` Andrea Adami
2012-05-09 18:45 ` Andrea Adami
2012-05-10 2:29 ` Manuel Bessler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.