[oe] initramfs only supported in x86?

Adam Lee adam.yh.lee at gmail.com
Thu May 15 23:17:40 UTC 2014


ah I spoke too soon. I had extra DISTRO_FEATURES. I removed them and
the root is ~2.5MB.
Now it's worth a try.

Adam

On Thu, May 15, 2014 at 3:58 PM, Adam Lee <adam.yh.lee at gmail.com> wrote:
> Hi Nicolas, thanks for your response. I built core-image-minimal in
> cpio, but the size is whopping 69MB. It will take a couple seconds
> just to load the image into the memory, which defeats the purpose of
> using the ramdisk to boot. After watching 300 ms from reset-to-shell
> boot video [1] using 1.5MB large kernel + rootfs combined, the size of
> the core-image-minimal feels gargantuan and my boot time of ~7 seconds
> feels like an eternity. That said, my goal is to reduce the boot time
> through optimization of the current image. Writing custom boot loader
> or severely crippling the rootfs is out of scope. So I thought the
> tested and proven core-image-minimal-initramfs would be a great start.
>
> Adam
>
> [1] http://www.makelinux.com/emb/fastboot/omap
>
> On Thu, May 15, 2014 at 1:33 PM, Nicolas Dechesne
> <nicolas.dechesne at linaro.org> wrote:
>> On Thu, May 15, 2014 at 7:13 PM, Adam Lee <adam.yh.lee at gmail.com> wrote:
>>> Hello everyone, I thought I'd compare the performance of booting
>>> rootfs from MMC vs ramdisk (the way Android is doing it). Some says it
>>> may possibly take longer in ramdisk because the rootfs has to be first
>>> loaded into memory. I'd like to test it out myself.
>>>
>>> So I discovered core-image-minimal-initramfs, and thought it was
>>> exactly what I needed. However the build doesn't go far, because its
>>> dependency initramfs-live-install [1] only seems to support x86:
>>>
>>> COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
>>>
>>> Is this the limitation of current OE? or am I just looking at the wrong corner?
>>
>> i recently had to build an initrd too, and notice that as well... so i
>> am not sure exactly what that means. I am glad you asked... however if
>> you want to test an initrd, you can simply build *any* image and make
>> sure to build the 'cpio' from IMAGE_FSTYPES. you can then use the
>> generated cpio archive as an initrd.
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list