[Buildroot] Boot process stuck at "GRUB loading.." since 2021.02.1

Yann E. MORIN yann.morin.1998 at free.fr
Thu Oct 21 17:59:01 UTC 2021


Peter, Stefan, All,

+Köry who did some heavy works on grub2 recently...

On 2021-10-19 23:02 +0200, Peter Seiderer spake thusly:
> On Tue, 19 Oct 2021 15:17:23 +0000, "Walter, Stefan" <stefan.walter at iml.fraunhofer.de> wrote:
> The host-grub2 modules build can be fixed by the following patch:
> 
> --- a/boot/grub2/grub2.mk
> +++ b/boot/grub2/grub2.mk
> @@ -125,7 +125,9 @@ GRUB2_TUPLES-$(BR2_TARGET_GRUB2_ARM64_EFI) += arm64-efi
>  # use the cross compile variant to ensure grub2 builds
> 
>  HOST_GRUB2_CONF_ENV = \
> -       CPP="$(HOSTCC) -E"
> +       CPP="$(HOSTCC) -E" \
> +       CFLAGS="$(HOST_CFLAGS) -Os" \
> +       CPPFLAGS="$(HOST_CPPFLAGS) -Os"

Sure, but why do we even need to build the modules in the host version
to begin with?

We should probably build the host version with --with-platform=none I
think.

Yes, we do currently use cdboot.img from the host, but that is probably
a mistake and a remnant for long ago... Instead, I think we should only
used modules from the target build.

Regards,
Yann E. MORIN.

>  GRUB2_CONF_ENV = \
>         CPP="$(TARGET_CC) -E" \
> 
> Regards,
> Peter
> 
> >
> > Thank you for your help so far! I'll reference this in the issue at https://bugs.busybox.net/show_bug.cgi?id=14281.
> >
> > Best regards,
> > Stefan
> 
> _______________________________________________
> buildroot mailing list
> buildroot at 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.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list