qoriq: Problem with u-boot compilation (dual arch issue)
Torsten Duwe
duwe at lst.de
Fri Oct 7 00:48:06 PDT 2022
On Wed, 5 Oct 2022 16:13:30 +0200
Paweł Dembicki <paweldembicki at gmail.com> wrote:
> Hi everybody,
>
> I am preparing support for the T4240RDB board. But I'm stuck with one problem:
>
> Qoriq target is powerpc64. But T4240RDB in u-boot is supported as
> mpc85xx family and requires a 32-bit compiler.
>
> I tried setting OpenWrt config: EXTRA_TARGET_ARCH to y and
> EXTRA_TARGET_ARCH_NAME to powerpc32. But it didn't work:
Depending on the context, the name may also be something like "ppc", "ppc64" or
"ppc64le", JFYI.
[...]
> I see two possible solutions:
> 1. Compile u-boot with regular powerpc compiler
> 2. Fix settings in powerpc64 linker to allow build 32-bit arch binary.
>
> Can I ask for help with it?
Without looking at the details (makes suggestions easier ;-) you may get by
with dropping "-m32" or "-m64" into CFLAGS here and there, presumed your toolchain
has support for both.
Torsten
More information about the openwrt-devel
mailing list