ARM-Linux cross-retrieval environment

xiaoxiao2021-03-06  39

1. Applications under different architectures cannot be run cross-platform, such as programs written under X86, if the link is used to add links with X86, and cannot run on the system of the ARM architecture. 2, ARM-Linux is a Linux operating system that can run on the ARM architecture system, usually we can run on an embedded system of the ARM architecture. 3. When developing embedded platform applications, in order to save resources, it is generally not directly installed on the embedded platform, but installs the ARM-Linux reader on the X86-PC relatively rich in resources. In this way, the developer writes a program on the X86 platform and uses the ARM-Linux sector to complete the link into executable. In this way, the executable file can be run on the ARM platform. 4. Required resources: 1, X86 architecture PC, equipped with Linux operating system. 2, ARM-Linux-Toolchain, cross-retrieval tool chain, different tool chains can support different languages ​​(C, C ), architecture, etc. 3. The network cable connected to the ARM platform is used to transfer the finished executable to the ARM platform. 5, build steps: 1. Download the Toolchain of ARM-Linux-for-x86, such as: arm-linux-for-x86.tar.gz 2, unzip the package and installed. % TAR ZXVF ARM-Linux-for-x86.tar.gz% CD ARM-Linux-for-x86% ./configure% make 3, post-installation programming program test (Hello.c)% ARM-Linux-gcc hello.c -o Hello 4, copy the executable Hello to the ARM platform.

转载请注明原文地址:https://www.9cbs.com/read-71222.html

New Post(0)