How to compile for imx28 on a 64bits machine ?


We are making the move from the imx28 card to the connect core 6ul card. We currently have two virtual machines with linux distributions : a recent 64 bits Ubuntu for Yocto / eclipse for imx6ul, and an old 32 bits kubuntu with the default imx28 toolchain.

We would like to easily compile the code for both platforms from the same (virtual) machine (the Ubuntu 64bits).

Do we need to recompile the imx6ul cross-compiler for it to run on the 64bits machine ? Do we need to just use a different sysroot ? (with the imx6ul compiler)
Does this seem possible, or too “hacky” ? (and we will have to keep two different machines)

Thanks in advance,
Mathieu Galle, Vitirover

I ma compiling Yocto on 64 bit Ubuntu 16.04 with no issues, using precompiled or my own generated SDK:
leonidm@leonid-Linux:~/Downloads$ uname -a
Linux leonid-Linux 4.4.0-198-generic #230-Ubuntu SMP Sat Nov 28 01:30:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

For Imx28 it should work as well. Take a look at this guide: