Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Grub2 changes since 2021.10.2
@ 2021-10-23 16:20 David Laight
  2021-10-24 12:23 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: David Laight @ 2021-10-23 16:20 UTC (permalink / raw)
  To: 'Peter Seiderer', Köry Maincent
  Cc: Yann E. MORIN, Walter, Stefan, buildroot@buildroot.org

Do the recent changes to grub2 make it any easier to install
the version of grub2 built by buildroot?
I'm pretty sure the commands in the scripts I inherited install
grub from the host system.
This is made much more likely because the actual boot disks
are made on a second system (by production, not development).

I've tried setting the BR option to include the grub objects
in the built 'root' filesystem.
While this adds files to the image, even when booted from the
disk the grub install program fails - IIRC due to missing files.

Either the host's own 'grub install' program needs to install
these files from somewhere (I could parcel them up somewhere else)
or I need to get the 'host' version of the required binaries
into my release (they should run on production's system, the
ones from the image itself won't).

This is all x86_64 using MBR disks (EFI causes too much grief).
I understand all about the x86 boot process (I rewrote NetBDS's
MBR and PBR code many years ago), but where grub2 installs anything
(and which programs update what) seems to have been deleted
from any user documentation.
AFAICT grub writes all over parts of the disk (like the rest of
track 0?) that aren't actually reserved for boot code.

I've also got a problem where the grub build objects to /usr/bin/gcc
being earlies that gcc 5.1 (it is 4.8.5 on a Centos 7 system).
I expected everything to be built with the gcc 10 I specified.
Has this been fixed by the recent changes to the CC path in the
grub package?

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-24 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-23 16:20 [Buildroot] Grub2 changes since 2021.10.2 David Laight
2021-10-24 12:23 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox