Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] grub2 failure with gcc-4.9
@ 2015-02-05 12:54 Thierry Bultel
  2015-02-05 13:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Bultel @ 2015-02-05 12:54 UTC (permalink / raw)
  To: buildroot

Hi,

I just figured out that my PC target was failing to boot,
because I upgraded the compiler from (buildroot toolchain) gcc-4.8.x to 
gcc-4.9.x

The configuration is:
BR2_TARGET_GRUB2_I386_PC=y
BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat part_msdos 
part_gpt part_bsd normal biosdisk sleep echo video videoinfo help jpeg 
uhci ehci usb usb_keyboard usbms usbtest gfxterm gfxmenu vbe vga 
video_bochs video_cirrus font search search_fs_file search_label test 
test_blockarg keylayouts at_keyboard cat configfile loadenv eval serial 
regexp"

(I know, that makes a lot but work like a charm with gcc-4.8.2)

The symptom is :
-------------------------------
'' is already set
Aborted. Press any key to exit.
-------------------------------

After some (printf) debugging, I found out that when 'loading' the 
builtin modules at startup, some modules names are corrupted.
I am about to get into deeper investigation, but has anyone
encountered it ?

Best regards
Thierry

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Buildroot] Fwd: Re:  grub2 failure with gcc-4.9
@ 2015-02-19 16:03 Steve Kenton
  2015-02-20 16:34 ` [Buildroot] " tbultel at free.fr
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Kenton @ 2015-02-19 16:03 UTC (permalink / raw)
  To: buildroot

On 02/19/2015 09:46 AM, Thierry Bultel wrote:

>>>>  ... grub hangs.
>> I'm not sure if it's related but I think we are mixing host and
>> target grub2. When you run ~output/host/usr/sbin/grub-install
>> any scripts it runs such as grub-mkimage are run from the
>> build hosts /usr/... and not buildroot HOSTDIR or TARGETDIR
>> I have been getting elf header mismatches which I think are
>> differences between grub 2.00 and grub 2.01-beta
> 
> Thanks Steve,
> 
> FYI,
> I am not using grub-install, but instead:
> 
> sudo ./host/usr/sbin/grub-bios-setup \
> -b ./host/usr/lib/grub/i386-pc/boot.img \
> -c ./images/grub.img -d . /dev/sde
> 
> I have notified the grub mailing list, this seems to be an unknown issue and I need to fill a bug report. (and first try with 2.01-beta ...)
> 
> Thierry
> 
Yep, that's the correct way, I just wanted to mention that grub-install
is an easy trap to fall into if you let your fingers run on auto-pilot.
And it can produce subtle and hard to recognize problems which sounded
familiar :-)

Steve

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

end of thread, other threads:[~2015-02-20 16:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 12:54 [Buildroot] grub2 failure with gcc-4.9 Thierry Bultel
2015-02-05 13:20 ` Thomas Petazzoni
2015-02-05 14:16   ` Thierry Bultel
2015-02-05 14:56     ` Thierry Bultel
2015-02-05 16:15   ` Thierry Bultel
2015-02-05 16:16     ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2015-02-19 16:03 [Buildroot] Fwd: " Steve Kenton
2015-02-20 16:34 ` [Buildroot] " tbultel at free.fr

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