JZ2440 Development Notes (1)——arm-linux-gcc environment construction

Publisher:rnm888Latest update time:2020-02-21 Source: eefocusKeywords:JZ2440  arm-linux-gcc Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Download the arm-linux-gcc-4.4.3 installation package, http://arm9.net/download.asp


2. Unzip arm-linux-gcc-4.4.3-20100728.tar.gz, use the command tar -zxvf arm-linux-gcc-4.4.3-20100728.tar.gz


3. Rename the unzipped folder to arm, and then copy the arm folder to /usr/local, #cp -rv arm /usr/local/


4. Modify the environment variables and add the path of the cross compiler to PATH. (Method 1 is recommended)


   Method 1: Modify the /etc/bash.bashrc file


   #vim /etc/bash.bashrc


  Add at the end:


   export PATH=$PATH:/usr/local/arm/bin


   Method 2: Modify the /etc/profile file:


   # vim /etc/profile


  Add the path setting and add the following at the end, and save the /etc/profile file:


   export PATH=$PATH:/usr/local/arm/bin


   Method 3: #export PATH=$PATH:/usr/local/arm/bin


    Note: (This is only valid in the current terminal!)


5. Make the new environment variables take effect immediately without restarting the computer:


  Corresponding method 1: #source /root/.bashrc

  Corresponding method 2: # source /etc/profile


6. Check whether the path is added to PATH:

   # echo $PATH

   The displayed content contains /usr/local/arm/4.4.3/bin, which means the path of the cross compiler has been added to PATH. At this point, the cross compilation environment is installed.


7. Test whether the installation is successful


  # arm-linux-gcc -v  


  The above command will display the arm-linux-gcc information and version.


Note: If the installed Linux system is 64-bit, when executing step 7, it will be displayed that the /usr/local/arm/bin directory is not found. At this time, you need to install ia32-libs. The command is sudo apt-get install ia32-libs

Keywords:JZ2440  arm-linux-gcc Reference address:JZ2440 Development Notes (1)——arm-linux-gcc environment construction

Previous article:JZ2440 Development Notes (2) - Installation and configuration of minicom
Next article:The composition and difference of gcc, arm-Linux-gcc and arm-elf-gcc

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号