Página 1 de 1

Prebuilt Toolchain gcc 9.2.0-softfp-linux2.6.32-armv4t

MensagemEnviado: 28 Abr 2020 21:25
por Rodrigo_P_A
Prebuilt toolchain para usar com placas ARM com processador antigo ( exemplo: mini2440 da FriendlyARM).

Eu não encontrei gcc novo para uso com esse modelo de processador, então compilei essa. Nas minhas aplicações funcionaram.

Segue o link para download:

https://www.asm51.com.br/downloads/gcc-mcut-9.2.0-linux-softfp-linux-2.6.32-armv4t_x86-64.tar.gz

Palavras chave: gcc toolchain mini2440 armv4t prebuilt binary

Re: Prebuilt Toolchain gcc 9.2.0-softfp-linux2.6.32-armv4t

MensagemEnviado: 28 Abr 2020 21:35
por Rodrigo_P_A
Prebuilt toolchain for use in x86_64-linux

gcc version: 9.2.0

Target:
armv4t with kernel 2.6.32
Example board: mini2440

Creatte using crosstol-ng

How use:
0) download

1) extract:
tar -xf gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi.tar.xz

2) setup path
export PATH=$PATH:/path/gcc-mcut-9.2.0-linux-2.6.32-armv4t-softfp/arm-mcut-linux-gnueabi/bin/

3) create a test file:
nano main.cpp
#include <stdio.h>

int main()
{

#ifdef __GNUC__
fprintf(stdout,"Crosstool test\nTest compiler\nVersion: %d %d %d\n",__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__);
#else
fprintf(stdout,"Teste\n");
#endif

return 0;
}

4) compile:
arm-mcut-linux-gnueabi-gcc main.cpp -static

5) check:
readelf -A a.out

File is armv4t format.
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "4T"
Tag_CPU_arch: v4T
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_align_preserved: 8-byte, except leaf SP
Tag_ABI_enum_size: int

6) Now put in your board and test.

Enjoy.