From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] grub problems since upgrading build host to CentOS 6.3
Date: Tue, 13 Nov 2012 22:31:23 +0100 [thread overview]
Message-ID: <50A2BC2B.2000607@mind.be> (raw)
In-Reply-To: <50A17C01.1010109@plexxi.com>
On 12/11/12 23:45, Joe Lorenz wrote:
> We updated our build host to CentOS 6.3 which apparently has a newer host gcc.
>
> Our crosstools are set for x86_64 target, and we know about grub not being supported for 64-bit compiler (Bug 5024).
> This newer gcc and/or binutils might be to blame.
>
> The problem shows when we try to install it - we see this:
>
> grub> device (hd0) /dev/sdb
> grub> root (hd0,1)
> Filesystem type is ext2fs, partition type 0x83
> grub> setup (hd0)
> Checking if "/boot/grub/stage1" exists... no
> Checking if "/grub/stage1" exists... no
>
> Error 15: File not found
> grub>
>
> But 'stage1' and all the others are indeed present on the root partition at /boot/grub/.
Let me try to understand what you're doing.
- You have a buildroot config that includes grub.
- You build on a pre-6.3 machine, boot the resulting image, run grub.
- grub finds /boot/grub/stage1 on /dev/sdb
- You build on a 6.3 machine, boot the resulting image, run grub.
- grub doesn't find /boot/grub/stage1 on /dev/sdb
Is that correct? Sounds weird... Can grub find any files on
(hd0,1)?
>
> It's important to us to be able to build grub as needed in case we have to modify any networking hardware support, so
> falling back to using older binaries is not optimal. We're wondering if anyone else has gotten around this in a CentOS
> 6.3 build environment.
You could add grub2 to your local buildroot - see
http://patchwork.ozlabs.org/patch/191813/
Needs work, of course, but worked for me. grub2 is much better at cross-
compiling than grub.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-11-13 21:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 22:45 [Buildroot] grub problems since upgrading build host to CentOS 6.3 Joe Lorenz
2012-11-13 21:31 ` Arnout Vandecappelle [this message]
2012-11-13 23:24 ` Joe Lorenz
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=50A2BC2B.2000607@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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