* [Buildroot] grub2
@ 2014-05-19 7:59 Tom Deblauwe
0 siblings, 0 replies; 6+ messages in thread
From: Tom Deblauwe @ 2014-05-19 7:59 UTC (permalink / raw)
To: buildroot
Hello list,
I am trying to build grub2 with the platform as x86-64-efi. I am
building on Ubuntu 14.04 64bit. My target is i386 atom. This works when
I use an external toolchain from Sourcery codebench 2012.09.
But when I try to build with an internal buildroot toolchain it fails on
the grub2 configure step with an error about gcc not having the
"-mcmodel=large" support. I tried gcc 4.9 and 4.8 and they both didn't
have it compiled in apparently. I have enabled the
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE support so I guessed that was ok then
but it's not working.
I checked out the master of today, then set the compiler, and then did
an "make toolchain" and then "make grub2". So it's a clean build.
What could be wrong with this?
Best regards,
Tom,
Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] grub2
@ 2014-05-19 8:07 Tom Deblauwe
2014-05-19 8:34 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Tom Deblauwe @ 2014-05-19 8:07 UTC (permalink / raw)
To: buildroot
Hello list,
I am trying to build grub2 with the platform as x86-64-efi. I am
building on Ubuntu 14.04 64bit. My target is i386 atom. This works when
I use an external toolchain from Sourcery codebench 2012.09.
But when I try to build with an internal buildroot toolchain it fails
on the grub2 configure step with an error about gcc not having the
"-mcmodel=large" support. I tried gcc 4.9 and 4.8 and they both didn't
have it compiled in apparently. I have enabled the
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE support so I guessed that was ok then
but it's not working.
I checked out the master of today, then set the compiler, and then did
an "make toolchain" and then "make grub2". So it's a clean build.
What could be wrong with this?
Best regards,
Tom,
Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub2_config.gz
Type: application/gzip
Size: 8067 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140519/7322ec19/attachment.bin>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] grub2
2014-05-19 8:07 [Buildroot] grub2 Tom Deblauwe
@ 2014-05-19 8:34 ` Thomas Petazzoni
2014-05-19 8:56 ` Tom Deblauwe
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2014-05-19 8:34 UTC (permalink / raw)
To: buildroot
Dear Tom Deblauwe,
On Mon, 19 May 2014 10:07:33 +0200, Tom Deblauwe wrote:
> I am trying to build grub2 with the platform as x86-64-efi. I am
> building on Ubuntu 14.04 64bit. My target is i386 atom. This works when
> I use an external toolchain from Sourcery codebench 2012.09.
>
> But when I try to build with an internal buildroot toolchain it fails
> on the grub2 configure step with an error about gcc not having the
> "-mcmodel=large" support. I tried gcc 4.9 and 4.8 and they both didn't
> have it compiled in apparently. I have enabled the
> BR2_TOOLCHAIN_BUILDROOT_LARGEFILE support so I guessed that was ok then
> but it's not working.
>
> I checked out the master of today, then set the compiler, and then did
> an "make toolchain" and then "make grub2". So it's a clean build.
> What could be wrong with this?
Can you share your Buildroot .config ?
You say that your target is i386 Atom, so I believe you've selected
i386 as the architecture. So that's 32 bits.
On the other hand, you say you've selected x86-64-efi as the grub2
platform. That's 64 bits.
It might be where the problem lies.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] grub2
2014-05-19 8:34 ` Thomas Petazzoni
@ 2014-05-19 8:56 ` Tom Deblauwe
0 siblings, 0 replies; 6+ messages in thread
From: Tom Deblauwe @ 2014-05-19 8:56 UTC (permalink / raw)
To: buildroot
In attachment my config.
I actually want to build this config that so I can run the 32-bit image
on a 64-bit efi system too.
Best regards,
Tom,
On 19-05-14 10:34, Thomas Petazzoni wrote:
> Dear Tom Deblauwe,
>
> On Mon, 19 May 2014 10:07:33 +0200, Tom Deblauwe wrote:
>
>> I am trying to build grub2 with the platform as x86-64-efi. I am
>> building on Ubuntu 14.04 64bit. My target is i386 atom. This works when
>> I use an external toolchain from Sourcery codebench 2012.09.
>>
>> But when I try to build with an internal buildroot toolchain it fails
>> on the grub2 configure step with an error about gcc not having the
>> "-mcmodel=large" support. I tried gcc 4.9 and 4.8 and they both didn't
>> have it compiled in apparently. I have enabled the
>> BR2_TOOLCHAIN_BUILDROOT_LARGEFILE support so I guessed that was ok then
>> but it's not working.
>>
>> I checked out the master of today, then set the compiler, and then did
>> an "make toolchain" and then "make grub2". So it's a clean build.
>> What could be wrong with this?
> Can you share your Buildroot .config ?
>
> You say that your target is i386 Atom, so I believe you've selected
> i386 as the architecture. So that's 32 bits.
>
> On the other hand, you say you've selected x86-64-efi as the grub2
> platform. That's 64 bits.
>
> It might be where the problem lies.
>
> Thomas
Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub2_config.gz
Type: application/gzip
Size: 8067 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140519/994acad1/attachment.bin>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Grub2
@ 2017-06-02 3:11 skenton at ou.edu
2017-06-02 11:37 ` Erico Nunes
0 siblings, 1 reply; 6+ messages in thread
From: skenton at ou.edu @ 2017-06-02 3:11 UTC (permalink / raw)
To: buildroot
A while back I tripped over a bug in Grub2 2.00 that sometimes made my
embedded system unbootable so I've been running with the code fragment
below in my build script. It still works with 2017.05 release FYI.
It builds just fine for me on x86_64 glibc but is not a general drop in
because gfxterm_background and probably other commands which were built
into the grub2 core in 2.00 are modules in 2.02 and required adjustments
to my embedded modules list. What is the best way to upgrade versions in
this sort of situation?
Steve Kenton
# To work around package bugs slip stream grub2
sed --in-place 's/2.00/2.02/' $buildrootdir/boot/grub2/grub2.mk
# Remove the hash file(s) to fool buildroot
rm --force $buildrootdir/boot/grub2/grub2.hash
$buildrootdir/boot/grub2/*.patch
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170601/5597f629/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Grub2
2017-06-02 3:11 [Buildroot] Grub2 skenton at ou.edu
@ 2017-06-02 11:37 ` Erico Nunes
0 siblings, 0 replies; 6+ messages in thread
From: Erico Nunes @ 2017-06-02 11:37 UTC (permalink / raw)
To: buildroot
Hi Steve,
On Fri, Jun 2, 2017 at 5:11 AM, <skenton@ou.edu> wrote:
> A while back I tripped over a bug in Grub2 2.00 that sometimes made my
> embedded system unbootable so I've been running with the code fragment
> below in my build script. It still works with 2017.05 release FYI.
>
> It builds just fine for me on x86_64 glibc but is not a general drop in
> because gfxterm_background and probably other commands which were built
> into the grub2 core in 2.00 are modules in 2.02 and required adjustments
> to my embedded modules list. What is the best way to upgrade versions in
> this sort of situation?
>
> Steve Kenton
>
> # To work around package bugs slip stream grub2
> sed --in-place 's/2.00/2.02/' $buildrootdir/boot/grub2/grub2.mk
> # Remove the hash file(s) to fool buildroot
> rm --force $buildrootdir/boot/grub2/grub2.hash
> $buildrootdir/boot/grub2/*.patch
I have a patchset sitting in patchwork to bump grub2 and then do more
things like ARM support:
https://patchwork.ozlabs.org/project/buildroot/list/?submitter=46481&state=&q=grub2&archive=&delegate=
Hopefully now that 2017.05 is finished it can get some attention.
If you can test that patch set and provide some review/tested-by to
the patches, maybe we can get it merged (or respinned, if needed)
faster.
Thanks
Erico
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-06-02 11:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 8:07 [Buildroot] grub2 Tom Deblauwe
2014-05-19 8:34 ` Thomas Petazzoni
2014-05-19 8:56 ` Tom Deblauwe
-- strict thread matches above, loose matches on Subject: below --
2017-06-02 3:11 [Buildroot] Grub2 skenton at ou.edu
2017-06-02 11:37 ` Erico Nunes
2014-05-19 7:59 [Buildroot] grub2 Tom Deblauwe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox