[OE-core] [PATCH 0/3] Deploy startup.nsh for wic's bootimg-efi plugin

Christopher Larson chris_larson at mentor.com
Wed May 25 20:35:05 UTC 2016


On Wed, May 25, 2016 at 1:33 PM, Christopher Larson <chris_larson at mentor.com
> wrote:

> On Wed, May 25, 2016 at 1:31 PM, Christopher Larson <kergoth at gmail.com>
> wrote:
>
>> From: Christopher Larson <chris_larson at mentor.com>
>>
>> Currently, wic EFI images don't end up with startup.nsh, so the user has
>> to
>> type in the correct bits into the EFI command-line, which isn't very
>> user-friendly. mkefidisk.sh in oe-core writes it for us, but we don't get
>> it
>> for wic images.
>>
>> Alter grub-efi.bbclass and gummiboot.bbclass to write it for the non-iso
>> case,
>> not only iso, so wic can grab and use it, and alter wic's bootimg-efi
>> plugin to
>> do so.
>
>
> I tested this with success on the MinnowMax board, but that's the only EFI
> device I have to test it on, so would appreciate testing from others on
> this, if possible.
>

I do think a better approach than this would be to make bootimg-efi
directly pull from DEPLOY_DIR_IMAGE rather than HDDDIR, since it duplicates
the bootloader config writing logic anyway, rather than using some but not
all the artifacts from image-live / HDDDIR. Either that, or it should stop
writing the bootloader config and rely entirely on the bbclass to set it
up. Currently it's partially one and partially the other, which isn't
ideal, in my opinion.

That said, I think this patch series is worthwhile for now, and we can
improve bootimg-efi further from there.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160525/6bada3c9/attachment-0002.html>


More information about the Openembedded-core mailing list