Problems building basic Yocto image with EFIBootguard

8 views
Skip to first unread message

Tom Steer

unread,
Apr 29, 2020, 11:36:49 AM4/29/20
to efibootg...@googlegroups.com
Hello,

I am trying to build a simple Yocto image using EFIBootguard.

I am using Yocto version "zeus". Steps are simply:

$ git clone -b zeus git://git.yoctoproject.org/poky
$ cd poky
$ git clone https://github.com/siemens/meta-efibootguard.git

Then edit local.conf to add:
MACHINE ?= "genericx86-64"
EFI_PROVIDER="efibootguard"

Edit bblayers.conf to add the meta-efibootguard layer

Add my own recipe with the suggested .wic image info

Then run : bitbake core-image-minimal

On build I get:
Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/home/tom/testyocto/poky/build/tmp/work/genericx86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/bg_setenv'

It seems like bg_setenv is not being installed correctly - is there a
dependency that needs to be added somewhere?

Thanks,

Tom

Jan Kiszka

unread,
Apr 29, 2020, 11:48:05 AM4/29/20
to Tom Steer, efibootg...@googlegroups.com
I don't recall such an issue, but I did succeed building ebg for zeus,
see https://github.com/siemens/meta-iot2000/commits/jan/zeus

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Tom Steer

unread,
Apr 29, 2020, 1:24:42 PM4/29/20
to Jan Kiszka, Tom Steer, efibootg...@googlegroups.com
Ah, thanks for the example! The part I was missing was that there needs to
be a core-image-minimal.bbappend that adds
DEPENDS += "gptfdisk-native efibootguard-native"

Now I can compile. Thanks!
Reply all
Reply to author
Forward
0 new messages