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
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Free evaluation | Ateli AT-START-F403A helps you explore and discover ARM Cortex-M4F with FPU core
- How to configure the input and output of a GPIO in the TMS320C6000 series DSP?
- Working conditions and working characteristics of switching power supply
- Let’s discuss some common misunderstandings about GaN.
- RISC-V MCU Development (IV): Compilation Configuration
- [Synopsys IP Resources] One data cable goes everywhere, USB4 fully accelerates the next generation of chips
- 【CH579M-R1】+ driving LCD5110 display
- Import 3D footprints into PCB library
- What technology does 5G network use? Why is 5G network faster than 4G network?
- [N32L43X Review] 7.PWM Test