Create a cross-compilation environment (ARM)-Linux general technology-Linux programming and kernel information. The following is a detailed description. The cross-compiling environment is mainly used to compile the kernel code, driver, and application of the target board. Now we will take REDHAT9.0 as an example to describe the steps for creating a cross-compilation environment:
1. Download The cross-3.3.2.tar.bz2 toolkit and copy the file to the/usr/local directory;
2. In the/usr/local directory, extract cross-3.3.2.tar.bz2 and run the following command: tar? Xjvf cross-3.3.2.tar.bz2;
3. Add the path of the Cross-compilation tool to the environment variable.
After decompression, the executable files in the Cross-compilation tool are in the 3.3.2/bin directory, which is not in the executable program search directory of the LINUX system. Therefore, you must manually add the files in the startup settings, the specific method is to modify/etc/bashrc or in the user's main directory. add a path to the last line of the bashrc file. The added text is as follows:
Export PATH = $ PATH:/usr/local/arm/3.3.2/bin.
So far, the cross-compilation environment has been fully established. If you want to install different versions of the Cross-compilation tool, the steps are similar. You can also refer to the "QQ2440V3 User Manual" of the friendly arm.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service