[Buildroot] aarch64 + armhf multiarch support?

Jens Maus mail at jens-maus.de
Fri Feb 9 19:35:07 UTC 2018


> Am 09.02.2018 um 19:01 schrieb Markus Mayer <markus.mayer at broadcom.com>:
> 
>> On 9 February 2018 at 05:02, Jens Maus <mail at jens-maus.de> wrote:
>> Hi Dagg,
>> 
>>>> Am 09.02.2018 um 13:29 schrieb daggs <daggs at gmx.com>:
>>>> 
>>>> Apart from that, are there really no possibilities to build a multiarch (aarch64+armhf) buildroot environment that allows to run 64bit and 32bit binaries at the same time? Or am I missing something?
>>> 
>>> sorry it didn't helped you, I wonder, can you compile the 32 bit bins yourself? if so why not compile the bins you need statically, place it on a nfs server, mount it on the c2 boards and run the bins? will that work for you?
>> 
>> No, I can’t compile the 32bit bins myself as they are closed source. The point is really that it would be great if buildroot could be setup to support 64bit compilation (aarch64) with multiarch support so that 32bit libraries (libc, etc.) are automatically in place that 32bit binaries (armhf) will run out-of-the-box. Does anyone know how much effort it would take to add such multiarch support into buildroot and where to start implementing it in a nice and proper way?
> 
> I had to solve this issue recently, since we just recently switched to
> buildroot in our division. The reason we needed to be able to run
> aarch32 binaries on aarch64 builds was the same as yours: 32-bit
> binaries that can't be re-compiled and that need to be available on
> 64-bit builds.
> 
> The good news is that it works now. The bad news that it likely can't
> be incorporated upstream unmodified.
> 
> The result can be seen here. Unfortunately, this doesn't break out my
> changes specifically, which makes it not all that helpful.
> 
> https://github.com/Broadcom/stblinux-4.9/tree/master/buildroot
> 
> I'll see if I can publish a tree where my changes haven't been all
> squashed together.

Indeed. It really would be helpful if you could at least point your finger at the changes as I am really curious how you actually solved that problem an implemented multiarch support. Best would be, of course, a diff file with your changes against upstream buildroot.

Regards,
Jens



More information about the buildroot mailing list