From: Thierry Bultel <thierry.bultel@wanadoo.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] Added stage2 ldscripts
Date: Thu, 21 Nov 2013 11:04:25 +0100 [thread overview]
Message-ID: <528DDAA9.20309@wanadoo.fr> (raw)
In-Reply-To: <20131121091316.16816a89@skate>
Le 21/11/2013 09:13, Thomas Petazzoni a ?crit :
> Dear Thierry Bultel,
>
> On Wed, 20 Nov 2013 23:33:28 +0100, Thierry Bultel wrote:
>> When building stage2 with binutils >= 2.19.1, grub says it is corrupted
>> I have not tried to downgrade binutils to that version, since buildroot
>> offers 2.20.1 as oldest. The issue was reproduced with 2.23.2.
>>
>> The following patch is clearly not mine.
>> I have found it at that location https://dev.openwrt.org/ticket/10444
>> where the issue is described, and the patch offered.
>>
>> Successfully tested with an iso image in kvm, that else would hang on
>> "Loading stage2 ..."
>>
>> Signed-off-by: Thierry Bultel <thierry.bultel@wanadoo.fr>
>> ---
>> boot/grub/grub.500-add-stage2-ldscripts.patch | 58 +++++++++++++++++++++++++
>> 1 files changed, 58 insertions(+), 0 deletions(-)
>> create mode 100644 boot/grub/grub.500-add-stage2-ldscripts.patch
>
> This is weird, because I've built and run grub with the CodeSourcery
> x86 toolchain, and the Buildroot toolchain (while testing my
> http://lists.busybox.net/pipermail/buildroot/2013-November/082351.html
> patch series), and it was just working fine.
>
FYI my configuration uses Buildroot toolchain/binutils 2.23.2/gcc-4.7.x
> Note however that
> http://lists.busybox.net/pipermail/buildroot/2013-November/082365.html
> makes a number of changes in the CFLAGS used to build Grub.
>
> I've just pushed this branch (rebased on top of master) at:
>
> http://git.free-electrons.com/users/thomas-petazzoni/buildroot/log/?h=x86-stuff
>
> Could you try this branch and see if it fixes the problem for you?
I have taken your branch and compiled it. I am testing like this:
sudo kvm -cdrom rootfs.iso9660
which works with upstream + the lscript patch
However, on your branch, the grub menu does not show up, I am only
getting the grub minimal prompt. For the moment I cannot figure out why.
So that would mean that stage2 is OK but there is another extra issue.
Thierry
>
> Thanks a lot!
>
> Thomas
>
next prev parent reply other threads:[~2013-11-21 10:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 22:33 [Buildroot] [PATCH 1/1] Added stage2 ldscripts Thierry Bultel
2013-11-21 8:13 ` Thomas Petazzoni
2013-11-21 10:04 ` Thierry Bultel [this message]
2013-11-21 10:47 ` Thomas Petazzoni
2013-11-21 14:47 ` Thierry Bultel
2013-11-21 15:05 ` Thomas Petazzoni
2014-04-20 10:16 ` Thomas Petazzoni
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=528DDAA9.20309@wanadoo.fr \
--to=thierry.bultel@wanadoo.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.