New version U-boot2012.04.01 transplantation (I) (JZ2440-S3C2440)
u-boot download address: http://www.denx.de/wiki/U-Boot/
The u-boot version we want to download here is: u-boot-2012.04.01tar.bz2
The download steps are as follows:
After downloading, test it under Linux:
1. Preliminary test
Decompress: tar xjf u-boot-2012.04.01.tar.bz2
Enter the directory: cd u-boot-2012.04.01/
cd u-boot-2012.04.01/
Configure: make smdk2410_config
Compile: make
Finally, a compilation error will occur: "arm-linux-ld" is because the version of the cross-compiler is too low.
Use the "arm-linux-gcc -v" command to check the version of the cross compiler (built-in cross compiler). The version is too low.
Next, replace the previous arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 with arm-linux-gcc-4.3.2.tar.bz2.
(1) Place arm-linux-gcc-4.3.2.tar.bz2 in the /work/tools directory, and then create a /tmp directory to view its contents.
Command: mkdir tmp
tar xjf arm-linux-gcc-4.3.2.tar.bz2 -C tmp/
(2) Switch to the directory of the previous compressed package and decompress it to the root directory /.
Command: cd /work/tools/
sudo tar xjf arm-linux-gcc-4.3.2.tar.bz2 -C /
(3) Setting environment variables
You can view the path, command: echo $PATH
Set environment variables through the export command (reset each time you start the computer)
Change directory: cd /usr/local/arm/4.3.2/bin/
Check the path: echo $PATH
Configure environment variables:
export PATH=/usr/local/arm/4.3.2/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Then check the cross compiler version: arm-linux-gcc -v
Setting environment variables (permanent method)
Modify the configuration file: sudo vim /etc/environment
The original environment variable
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin"
Change to: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin/"
To take effect: source /etc/environment
2. Continue to compile the previous u-boot-2012.04.01
Re-enter the u-boot-2012.04.01 directory
Execute the command: make distclean to clear the previously unfinished compilation files.
Reconfigure: make smdk2410_config
Recompile: make
After the compilation is completed, no error is reported.
The compilation is successful and the u-boot.bin file is generated. Follow the previous method to burn u-boot. However, the size of the generated u-boot.bin is 462kB, which is too large.
The generated u-boot.bin cannot be run after being burned to the development board. The following is to analyze its startup process.
Previous article:Porting OpenCV2.0.0 to ARM9 (III) (JZ2440----S3c2440)
Next article:New version U-boot2012.04.01 transplantation (Part 2) (JZ2440-S3C2440)
Recommended ReadingLatest update time:2024-11-16 13:32
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- LPS28DFW driver and related information
- Battery Test Equipment --- Signal Chain
- Summary of basic issues of ADC
- Share: Debugging of SIM7020 and NB-IOT
- mini risc mcu source code
- The design application of TGA2509 is not particularly ideal
- Analysis of the problem that the program cannot run after F28004x online debugging reset
- Share a PD fast charging power deception chip CH224 is very practical
- Alloy sampling resistor series
- TI's Class AB car amplifier chip recommendations