* [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y @ 2026-11-15 12:04 Julien Olivain via buildroot 2026-11-15 12:04 ` [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu Julien Olivain via buildroot 2026-11-15 19:20 ` [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Peter Korsgaard 0 siblings, 2 replies; 4+ messages in thread From: Julien Olivain via buildroot @ 2026-11-15 12:04 UTC (permalink / raw) To: buildroot; +Cc: Thomas Petazzoni, Julien Olivain Buildroot commit [1] changed the default CPU architecture from i386 to Arm AArch64. The test configurations which were relying on the default i386 architecture are now failing. This commit fixes the issue by adding BR2_i386=y to the test configuration. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/18033158060 [1] https://gitlab.com/buildroot.org/buildroot/-/commit/86240fa45d11e3388968520b4a35f0a40954c132 Signed-off-by: Julien Olivain <ju.o@free.fr> --- support/testing/tests/boot/test_grub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/support/testing/tests/boot/test_grub.py b/support/testing/tests/boot/test_grub.py index 8f081f927b..92350d60f9 100644 --- a/support/testing/tests/boot/test_grub.py +++ b/support/testing/tests/boot/test_grub.py @@ -6,6 +6,7 @@ import infra.basetest class TestGrubi386BIOS(infra.basetest.BRTest): config = \ """ + BR2_i386=y BR2_x86_core2=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_CORE2_GLIBC_STABLE=y -- 2.56.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu 2026-11-15 12:04 [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Julien Olivain via buildroot @ 2026-11-15 12:04 ` Julien Olivain via buildroot 2026-11-15 19:21 ` Peter Korsgaard 2026-11-15 19:20 ` [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Peter Korsgaard 1 sibling, 1 reply; 4+ messages in thread From: Julien Olivain via buildroot @ 2026-11-15 12:04 UTC (permalink / raw) To: buildroot; +Cc: Thomas Petazzoni, Julien Olivain Since commit [1] ("tooolchain/toolchain-external: update toolchain-external-bootlin to 2026.08"), TestGrubi386BIOS is failing at runtime due to an illegal instruction in init. The error on the console is: Run /init as init process traps: init[1] trap invalid opcode ip:b7de4230 sp:bfe26040 error:0 in libc.so.6[a3230,b7d65000+188000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 This is because the test configurations selects BR2_x86_core2=y, but qemu-system-i386 is started without specifying any machine or cpu. The default machine is "pc" and the default cpu is "qemu32", which emulates less features than a Core2. The toolchain update in [1] also updated its glibc which is now including instructions not supported by the qemu emulated cpu. This commit fixes the issue by explicitly setting the qemu CPU to "core2duo". [1] https://gitlab.com/buildroot.org/buildroot/-/commit/eeec7b495f6b6127f0cf7020674f7853814a6d06 Signed-off-by: Julien Olivain <ju.o@free.fr> --- 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 92350d60f9..f006bdf7ce 100644 --- a/support/testing/tests/boot/test_grub.py +++ b/support/testing/tests/boot/test_grub.py @@ -29,7 +29,7 @@ class TestGrubi386BIOS(infra.basetest.BRTest): def test_run(self): hda = os.path.join(self.builddir, "images", "disk.img") - self.emulator.boot(arch="i386", options=["-hda", hda]) + self.emulator.boot(arch="i386", options=["-cpu", "core2duo", "-hda", hda]) self.emulator.login() -- 2.56.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu 2026-11-15 12:04 ` [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu Julien Olivain via buildroot @ 2026-11-15 19:21 ` Peter Korsgaard 0 siblings, 0 replies; 4+ messages in thread From: Peter Korsgaard @ 2026-11-15 19:21 UTC (permalink / raw) To: Julien Olivain via buildroot; +Cc: Julien Olivain, Thomas Petazzoni >>>>> "Julien" == Julien Olivain via buildroot <buildroot@buildroot.org> writes: > Since commit [1] ("tooolchain/toolchain-external: > update toolchain-external-bootlin to 2026.08"), TestGrubi386BIOS is > failing at runtime due to an illegal instruction in init. > The error on the console is: > Run /init as init process > traps: init[1] trap invalid opcode ip:b7de4230 sp:bfe26040 error:0 in libc.so.6[a3230,b7d65000+188000] > Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 > This is because the test configurations selects BR2_x86_core2=y, but > qemu-system-i386 is started without specifying any machine or cpu. > The default machine is "pc" and the default cpu is "qemu32", which > emulates less features than a Core2. The toolchain update in [1] also > updated its glibc which is now including instructions not supported > by the qemu emulated cpu. > This commit fixes the issue by explicitly setting the qemu CPU > to "core2duo". > [1] https://gitlab.com/buildroot.org/buildroot/-/commit/eeec7b495f6b6127f0cf7020674f7853814a6d06 > Signed-off-by: Julien Olivain <ju.o@free.fr> Committed, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y 2026-11-15 12:04 [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Julien Olivain via buildroot 2026-11-15 12:04 ` [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu Julien Olivain via buildroot @ 2026-11-15 19:20 ` Peter Korsgaard 1 sibling, 0 replies; 4+ messages in thread From: Peter Korsgaard @ 2026-11-15 19:20 UTC (permalink / raw) To: Julien Olivain via buildroot; +Cc: Julien Olivain, Thomas Petazzoni >>>>> "Julien" == Julien Olivain via buildroot <buildroot@buildroot.org> writes: > Buildroot commit [1] changed the default CPU architecture from i386 > to Arm AArch64. The test configurations which were relying on the > default i386 architecture are now failing. > This commit fixes the issue by adding BR2_i386=y to the test > configuration. > Fixes: > https://gitlab.com/buildroot.org/buildroot/-/jobs/18033158060 > [1] https://gitlab.com/buildroot.org/buildroot/-/commit/86240fa45d11e3388968520b4a35f0a40954c132 > Signed-off-by: Julien Olivain <ju.o@free.fr> Committed, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-15 19:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-15 12:04 [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Julien Olivain via buildroot 2026-11-15 12:04 ` [Buildroot] [PATCH 2/2] support/testing: test_grub: fix test by setting qemu cpu Julien Olivain via buildroot 2026-11-15 19:21 ` Peter Korsgaard 2026-11-15 19:20 ` [Buildroot] [PATCH 1/2] support/testing: test_grub: fix test by selecting BR2_i386=y Peter Korsgaard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox