From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Romain Naour <romain.naour@smile.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] support/testing: TestGrubX8664EFI: use Nehalem cpu emulation
Date: Mon, 5 Feb 2024 17:04:40 +0100 [thread overview]
Message-ID: <ZcEHGGPViIgpsLL7@landeda> (raw)
In-Reply-To: <20240205133530.1188319-1-romain.naour@smile.fr>
Romain, All,
On 2024-02-05 14:35 +0100, Romain Naour spake thusly:
> Following the Bootlin toolchain bump to 2023.11-1 [1], the
> TestGrubX8664EFI failed with this error:
As we discussed IRL, I've reworded the commit log with your input.
> # efivar -l
> traps: efivar[86] trap invalid opcode ip:7fc187f4c7f4 sp:7fff9bbaa930 error:0 in libefivar.so.1.38[7fc187f4c000+16000]
> Illegal instruction
>
> Actually this error can be reproduced by installing other packages like
> "file" because the qemu emulation doesn't provide all assembler
> instruction emulation required by x86-64-core-i7 target used by
> TestGrubX8664EFI.
>
> A similar issue has been fixed in toolchain-builder by adding Nehalem
> cpu emulation on the qemu command line [2].
>
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/6093853712
>
> [1] 7e0e6e3b8618ab942f25b11ee72fbc5a4deefdf1
> [2] https://gitlab.com/buildroot.org/toolchains-builder/-/commit/f2b253732b4d1fc5b87badba7c2d48f12a197f76
>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> support/testing/tests/boot/test_grub.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/testing/tests/boot/test_grub.py b/support/testing/tests/boot/test_grub.py
> index 9f3a6a8495..5315fa23ba 100644
> --- a/support/testing/tests/boot/test_grub.py
> +++ b/support/testing/tests/boot/test_grub.py
> @@ -120,7 +120,7 @@ class TestGrubX8664EFI(infra.basetest.BRTest):
> # https://github.com/tianocore/edk2/commit/bf5678b5802685e07583e3c7ec56d883cbdd5da3
> # http://lists.busybox.net/pipermail/buildroot/2023-July/670825.html
> qemu_fw_cfg = "name=opt/org.tianocore/X-Cpuhp-Bugcheck-Override,string=yes"
> - self.emulator.boot(arch="x86_64", options=["-bios", bios, "-hda", hda, "-fw_cfg", qemu_fw_cfg])
> + self.emulator.boot(arch="x86_64", options=["-bios", bios, "-cpu", "Nehalem", "-hda", hda, "-fw_cfg", qemu_fw_cfg])
> self.emulator.login()
>
> cmd = "modprobe efivarfs"
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-02-05 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 13:35 [Buildroot] [PATCH] support/testing: TestGrubX8664EFI: use Nehalem cpu emulation Romain Naour
2024-02-05 16:04 ` Yann E. MORIN [this message]
2024-02-05 17:37 ` Romain Naour
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=ZcEHGGPViIgpsLL7@landeda \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=romain.naour@smile.fr \
/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