public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Luca Boccassi <luca.boccassi@gmail.com>,
	Richard Purdie <richard.purdie@linuxfoundation.org>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v8] systemd: update to v254
Date: Tue, 8 Aug 2023 02:51:44 +0200	[thread overview]
Message-ID: <202308080051444293001a@mail.local> (raw)
In-Reply-To: <CAMKF1srqMkp3LrS0wY=K=MbQLnVjbtvczGa9jC4YKcOs+Cpmew@mail.gmail.com>

On 07/08/2023 17:01:02-0700, Khem Raj wrote:
> Can you try this patch on top
> 
> https://git.yoctoproject.org/poky-contrib/commit/?h=yoe/mut&id=0defb14c600170434befe8c94dad4732041a3513
> 

I have those two patches on top of master:

systemd-boot: Ensure EFI_LD is also passed to compiler driver
systemd: fix efi dependency


> On Mon, Aug 7, 2023 at 3:48 PM Luca Boccassi <luca.boccassi@gmail.com> wrote:
> >
> > On Mon, 7 Aug 2023 at 23:37, Alexandre Belloni
> > <alexandre.belloni@bootlin.com> wrote:
> > >
> > > On 07/08/2023 16:40:25+0200, Alexandre Belloni wrote:
> > > > Hello,
> > > >
> > > > I've been looking a bit more at this. there is definitively another
> > > > issue here which is the first one I found:
> > > >
> > > > x86_64-poky-linux-objcopy: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: file format not recognized
> > > >
> > > > This is the main issue here.
> > > >
> > > > $ file /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub
> > > > /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: MS-DOS executable PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
> > > > $ objdump -p /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub (.reloc): section flag STYP_GROUP (0x4) ignored
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub (.reloc): section flag STYP_COPY (0x10) ignored
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: warning: ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .reloc
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub (.reloc): section flag STYP_GROUP (0x4) ignored
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub (.reloc): section flag STYP_COPY (0x10) ignored
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: warning: ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .reloc
> > > > objdump: /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: file format not recognized
> > > >
> > > > I tested with v253.7 and I properly get:
> > > >
> > > > $ file /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub
> > > > /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
> > > > $ ./build-st/tmp/sysroots-components/x86_64/binutils-cross-x86_64/usr/bin/x86_64-poky-linux/x86_64-poky-linux-objdump -h /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub
> > > >
> > > > /home/alexandre/poky/build-st/tmp/deploy/images/qemux86-64/linuxx64.efi.stub:     file format pei-x86-64
> > > >
> > > > Sections:
> > > > Idx Name          Size      VMA               LMA               File off  Algn
> > > >   0 .text         0000d7f0  0000000000004000  0000000000004000  00000400  2**4
> > > >                   CONTENTS, ALLOC, LOAD, READONLY, CODE
> > > >   1 .reloc        0000000c  0000000000012000  0000000000012000  0000dc00  2**2
> > > >                   CONTENTS, ALLOC, LOAD, READONLY, DATA
> > > >   2 .data         00002ab0  0000000000013000  0000000000013000  0000de00  2**4
> > > >                   CONTENTS, ALLOC, LOAD, DATA
> > > >   3 .dynamic      00000100  0000000000016000  0000000000016000  00010a00  2**2
> > > >                   CONTENTS, ALLOC, LOAD, DATA
> > > >   4 .rela         00000630  0000000000017000  0000000000017000  00010c00  2**2
> > > >                   CONTENTS, ALLOC, LOAD, READONLY, DATA
> > > >   5 .dynsym       00000018  0000000000018000  0000000000018000  00011400  2**2
> > > >                   CONTENTS, ALLOC, LOAD, READONLY, DATA
> > > >   6 .sdmagic      0000002a  000000000001a460  000000000001a460  00011600  2**2
> > > >                   CONTENTS, ALLOC, LOAD, READONLY, DATA
> > > >
> > > > I really believe the recipe is not generating a working efi.stub. Can
> > > > you check?
> > > >
> > >
> > > I've built systemd-boot v254 outside of YP and it generated a proper
> > > linuxx64.efi.stub. I still don't get why the recipe doesn't generate a
> > > working binary.
> > >
> > > The issue seems to be at the linuxx64.elf.stub generation as I took the
> > > one from my YP build, ran it through elf2efi.py on my PC and this didn't
> > > generate a working linuxx64.efi.stub
> >
> > Strange - do you see a difference in compiler/linker flags? That would
> > be the only thing I can think of

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2023-08-08  0:51 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28 20:44 [PATCH] systemd: update to v254 luca.boccassi
2023-07-30  8:06 ` [OE-core] " Alexandre Belloni
2023-07-30 12:36   ` Luca Boccassi
2023-07-30 12:43     ` Alexander Kanavin
2023-07-30 15:23       ` Luca Boccassi
2023-07-30 12:40 ` [PATCH v2] " luca.boccassi
2023-07-30 15:22 ` [PATCH v3] " luca.boccassi
2023-07-31 11:27 ` [PATCH v4] " luca.boccassi
2023-07-31 16:40   ` [OE-core] " Alexandre Belloni
2023-07-31 16:41     ` Alexandre Belloni
2023-07-31 16:56     ` Luca Boccassi
2023-07-31 17:13       ` Alexandre Belloni
2023-07-31 17:22         ` Luca Boccassi
2023-07-31 17:33           ` Alexander Kanavin
     [not found]           ` <1777043202ABE7FB.4565@lists.openembedded.org>
2023-07-31 17:37             ` Alexander Kanavin
2023-07-31 18:00               ` Luca Boccassi
2023-08-02  8:12                 ` Luca Boccassi
2023-08-02 17:14                   ` Khem Raj
2023-08-02 17:21                     ` Luca Boccassi
2023-08-02 17:42                       ` Khem Raj
2023-08-02 18:55                         ` Luca Boccassi
2023-07-31 17:21 ` [PATCH v5] " luca.boccassi
2023-07-31 18:00 ` [PATCH v6] " luca.boccassi
2023-08-02 18:54 ` [PATCH v7] " luca.boccassi
2023-08-02 19:27   ` Khem Raj
2023-08-02 23:16     ` Luca Boccassi
2023-08-03 18:34       ` Luca Boccassi
2023-08-03 19:29         ` Khem Raj
2023-08-04 10:38         ` [OE-core] " Alexandre Belloni
2023-08-02 23:16 ` [PATCH v8] " luca.boccassi
2023-08-06 12:38   ` [OE-core] " Alexandre Belloni
2023-08-06 13:15     ` Luca Boccassi
2023-08-06 13:22       ` Alexandre Belloni
2023-08-06 13:34         ` Luca Boccassi
2023-08-06 13:50           ` Richard Purdie
2023-08-06 13:56             ` Luca Boccassi
2023-08-07 14:40               ` Alexandre Belloni
2023-08-07 22:37                 ` Alexandre Belloni
2023-08-07 22:48                   ` Luca Boccassi
2023-08-08  0:01                     ` Khem Raj
2023-08-08  0:51                       ` Alexandre Belloni [this message]
2023-08-08 16:10                         ` Jose Quaresma
2023-08-09 15:01                           ` Luca Boccassi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202308080051444293001a@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=luca.boccassi@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox