There was indeed a second issue but wanted to perform a clean build before
voicing it :)

The first wic image produced by bitbake appeared to have the 1st partition
empty: the efibootguard binary was not there. I wanted to do a clean build
because our BSP layer was initialing setting EFI_PROVIDER conditionally:

EFI_PROVIDER ?= "efibootguard"

I then noticed that systemd-boot was compiled. I then changed the
assignment to:

EFI_PROVIDER = "efibootguard"

I don't think that's going to make a difference in the output but felt that
I should check first

Cedric

On 5 September 2017 at 15:46, Jan Kiszka <[email protected]> wrote:

> On 2017-09-05 15:31, [email protected] wrote:
> > Hello,
> >
> > I tried to use efibootguard on the Siemens IOT2020 but using Mentor
> > Embedded Linux (instead of Yocto).
> > I used the meta-efibootguard layer that Andreas kindly posted last week.
> >
> > efibootguard was built and shows its prompt but it is then unable to
> > find a supported watchdog device
> > (see below for a boot log)
> >
> > I eventually traced this problem to be a difference in the compiler
> output.
> > The init() function of the driver is expected to be registered in the
> > .init_array section
> >
> > This is definitely the case with GCC 6.3
> > It unfortunately isn't with GCC 6.2.
> >
> > I checked this by compiling a single line compilation unit:
> > void __attribute__ ((constructor)) test (void) {}
> >
> > readelf shows an .init_array with 6.3 but I get a .ctors section with 6.2
>
> Thanks for analysing. Interestingly, I can reproduce with gcc 4.8.5 of
> my distro. Neither is init_array empty nor is there a ctors section. Is
> there some switch that controls this?
>
> >
> > Jan advised me to check here as Andreas may have some hints for me ;)
>
> There was also a second issue, and that's where the hints were primarily
> targeting.
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT RDA ITP SES-DE
> Corporate Competence Center Embedded Linux
>

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/CAKbb94dHGC_Zq15Ane7v-TaijefHSAZBFJDsmW%2BQjPqyLSPRhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to