[Buildroot] Building u-boot on PowerPC64 (but u-boot only supports 32 bits)
casantos at datacom.com.br
Tue Nov 13 10:52:08 UTC 2018
> From: "Alvaro Gamez" <alvaro.gamez at hazent.com>
> To: "buildroot" <buildroot at buildroot.org>
> Sent: Terça-feira, 13 de novembro de 2018 7:10:34
> Subject: [Buildroot] Building u-boot on PowerPC64 (but u-boot only supports 32 bits)
> I'm facing the same problem as discussed here [
> https://community.nxp.com/thread/376769 |
> https://community.nxp.com/thread/376769 ]
> Basically, when compiling uboot against PowerPC64 e6500, buildroot fails with
> cc1: error: -mcall not supported in this configuration
> cc1: error: -mrelocatable not supported in this configuration
> cc1: error: -meabi not supported in this configuration
> The explanation is that u-boot doesn't support 64 bits builds of (some/all?)
> PowerPC CPUs.
> Of course, the solution to this is simply to use a 32 bit toolchain, but I don't
> want to use a 32 bit toolchain on all the other parts that my root filesystem
> consists of, including both kernel and applications.
You are not alone.
> So, here's the question: is there anyway to make buildroot generate TWO
> toolchains, in 32 and 64 bit versions, and mark specific packages (in this
> case, u-boot) to use one or the other?
At the moment, no.
> I can no doubt create another project that is intended only for building u-boot,
> but then why would I use buildroot instead of simply compiling u-boot? I'd
> really like to have everything integrated on buildroot, and I guess this can be
> useful for any other packages.
Here at DATACOM our initial approach was building u-boot along with the
firmware on 32-bit projects and have separate 32-bit projects to build
it for 64-bit processors.
After some time we decided to provide u-boot as a pre-built binary for
each board. The boot loader is a very critical part of any system and
once it starts working as expected there is to reason to rebuild it over
and over again. In fact it would be risky to do that.
Carlos Santos (Casantos) - DATACOM, P&D
“Marched towards the enemy, spear upright, armed with the certainty
that only the ignorant can have.” — Epitaph of a volunteer
More information about the buildroot