When compiling U-boot for mini2440, to compile an executable file -bin that can be used on the ARM platform, you must first install the cross-compilation tool chain in Ubuntu. Because I use the development board of Friendly Arm, I use the tool chain that has been made. Of course, you can also make your own tool chain: if you make a tool chain based on GCC and glibc, you can use cross tools to compile;
The version of the tool chain I use is arm-linux-gcc-4.3.3, download address: Download address
1. After downloading on the PC, transfer the compressed package to Ubuntu using xftp; of course, you can also use other software to upload it; after uploading, put it in the /usr/local folder in the root directory to create a new arm folder, and then copy the compressed package to this folder; note that creating a folder before uploading can reduce a lot of workload;
Be sure to upload the compressed package and decompress it in Ubuntu;
Be sure to upload the compressed package and decompress it in Ubuntu;
Be sure to upload the compressed package and decompress it in Ubuntu;
2. Decompression command: # tar -xzf Filename.tar.gz
3. After decompression, an opt folder will appear. Keep looking down and find ./opt/FriendlyARM/toolschain/4.4.3/bin. Remember this path;
4. Add the directory where the cross-compilation tool chain is located to the environment variables of the Ubuntu system.
Modify the /etc/environment file and set it to the following:
5. Modify the ~/.bashrc file and add the following content at the end of the file:
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin
6. Save and close: Execute source ~/.bashrc in the terminal to make the environment variables take effect;
7. Execute echo $path to check whether the path added in step 4 is added successfully;
8. Execute arm-linux-gcc -v to test whether the installation is successful;
9. Congratulations, the installation is complete. Do you think it's over? No.
10. As an ARM-linux engineer, you may want to go to your U-boot directory and try the following commands:
make distclean
make mini2440_config
make
If an error occurs, it means that the arm-linux-gcc in the Makefile in the directory you executed is different from the toolchain version you installed;
Now find the Makefile you want to compile and find the error indication;
For example; when I tested, arm-9tdmi-linux-gnu-gcc appeared. . . .
Use grep to find its location in the Makefile, and then change it to the version of the toolchain you installed;
success!!!
Previous article:U-boot porting on mini2440-S3C2440 (3) - Phase 1: Exploring the boot code
Next article:U-boot porting on mini2440-S3C2440 (2)
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- What is BCD code?
- FPGA image recognition and target tracking system design.pdf
- Learn a little about msp430f149 baud rate setting
- When will the forum start its holiday?
- Antenna Selection Guide - TI Wireless Data
- RFID unattended intelligent weighing software system solution
- 【TI recommended course】#Live replay: TI's new generation of integrated PA Zigbee 3.0 and multi-protocol solutions#
- 200 Examples of Monolithic Switching Power Supply Design (2nd Edition)
- Physical Design Analysis of PCB Board in Switching Power Supply Design
- PCB Design