Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => STMP1 => Topic started by: Endalvik on February 27, 2023, 05:26:09 AM

Title: STM32MP1-Olinuxino: Cross Toolchain?
Post by: Endalvik on February 27, 2023, 05:26:09 AM
I have been able to rebuild the Olinuxino Debian image from the github olimage repo.  Very nice!

Now I would like to cross-compile custom libraries and applications, for this Olinuxino image.

Is there a way to extract the cross-compiler from the olimage build?

That way, do not have to worry about matching up GNU/GLIBC/binutils version with a 3rd-party toolchain.

Thanks,
Pete
Title: Re: STM32MP1-Olinuxino: Cross Toolchain?
Post by: Endalvik on February 27, 2023, 11:05:18 PM
Another approach:  where in the olimage scripts can one go and change the GNU/GLIBC/binutils versions used in generating th Olinuxino Debian images?

Regards,
Pete
Title: Re: STM32MP1-Olinuxino: Cross Toolchain?
Post by: HeHoPMaJIeH on March 01, 2023, 02:49:07 PM
Hi,
you can use Debian Buster with  gcc-multilib package installed.

p.s gcc version 8.3

Best regards,
Dimitar
Title: Re: STM32MP1-Olinuxino: Cross Toolchain?
Post by: Endalvik on March 03, 2023, 11:12:36 PM
gcc-multilib is pretty much legacy now, so do not really view it as a long-term solution.

After digging a little further, I think the biggest roadblock is that the olimage is still built on GLIBC 2.31, which appears to have been deprecated in most modern cross-compile environments (e.g. buildroot).

Is there a way to change GLIBC version selection (and maybe GCC version as well), in the olimage build environment/scripts?

Thanks,
Pete