Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: "Walter, Stefan" <stefan.walter@iml.fraunhofer.de>
Cc: "buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] Boot process stuck at "GRUB loading.." since 2021.02.1
Date: Tue, 19 Oct 2021 00:22:55 +0200	[thread overview]
Message-ID: <20211019002255.165e5e00@gmx.net> (raw)
In-Reply-To: <DB6P194MB0022C662CECD3D29EB4BA064B7B59@DB6P194MB0022.EURP194.PROD.OUTLOOK.COM>

Hello Stefan,

On Mon, 11 Oct 2021 17:29:19 +0000, "Walter, Stefan" <stefan.walter@iml.fraunhofer.de> wrote:

> Hi,
>
> > > Maybe try to 'bisect' the problem as you mentioned it worked before
> > > 2021.02.1 (did you test 2021.02.0?), not much grub related patches in
> > > between...
> >
> > Buildroot 2021.02(.0) does boot, the following releases on the 2021.02.x
> > branch don't. I just tested 2021.08 with the same configuration file, and it
> > doesn't boot, either.
> >
> > I haven't actually bisected, yet, but looking at the commit log, ...
> >
> > >   e840f2d469 boot/grub2: Backport 2021/03/02 securify fixes
> >
> > ...this looks like the most likely culprit, because it's the only commit to
> > boot/grub2 I see that makes any changes to the GRUB sources between
> > 2021.02 and 2021.02.1.
>
> I can now confirm that this is the commit that introduced the problem. What baffles me is that you say you have a working configuration using GRUB and i386. Could you send it to me or try mine for comparison?

Can you try instead of your original

/path/to/buildroot-sdk/host/bin/grub-mkimage \
	--config=grub_early.cfg \
	--directory=/path/to/buildroot-sdk/host/lib/grub/i386-pc \
	-o ./genimage_input_tmp/grub_core.img \
	--format=i386-pc \
	--prefix==/boot/grub \
	biosdisk part_msdos ext2 normal linux configfile

the following one (makes the difference here for me with the qemu test):

/path/to/buildroot-sdk/host/bin/grub-mkimage \
	--config=grub_early.cfg \
	--directory=/path/to/buildroot-sdk/build/grub2-2.04/build-i386-pc/grub-core \
	-o ./genimage_input_tmp/grub_core.img \
	--format=i386-pc \
	--prefix==/boot/grub \
	biosdisk part_msdos ext2 normal linux configfile

Note the --directory change from the '.../host/lib/grub/i386-pc' (installed) directory to
'.../build/grub2-2.04/build-i386-pc/grub-core' build directory (as the original buildroot
grub2 install step uses to create images/grub.img...

Suspect the host/lib/grub/i386-pc provided modules are from the build/host-grub2-2.04 build
(instead of the build/grub2-2.04 for the target) and therefore without the '-Os' fix
(or they are mangled during the install step)...

Regards,
Peter

>
> Best regards,
> Stefan

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-10-18 22:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-07 20:36 [Buildroot] Boot process stuck at "GRUB loading.." since 2021.02.1 Walter, Stefan
2021-10-07 21:50 ` Peter Seiderer
2021-10-08 14:27   ` Walter, Stefan
2021-10-08 17:25     ` Peter Seiderer
2021-10-11 12:23       ` Walter, Stefan
2021-10-11 17:29         ` Walter, Stefan
2021-10-18 22:22           ` Peter Seiderer [this message]
2021-10-19 15:17             ` Walter, Stefan
2021-10-19 21:02               ` Peter Seiderer
2021-10-21 17:59                 ` Yann E. MORIN
2021-10-22  9:48                   ` Köry Maincent
2021-10-22 17:42                     ` Peter Seiderer
2021-10-08 16:53 ` Alexander Dahl

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=20211019002255.165e5e00@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@buildroot.org \
    --cc=stefan.walter@iml.fraunhofer.de \
    /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