I write down my experience of porting u-boot-2009, hoping it will be helpful to others.
Related reading: u-boot-2009.11 transplantation on mini2440 http://www.linuxidc.com/Linux/2011-03/33687.htm
Environment used:
u-boot: u-boot-2009.11
Ubuntu: ubuntu9.10
Cross-environment: arm-linux-gcc4.3.2
1. Download u-boot-2009.11
U-Boot source code download address http://www.linuxidc.com/Linux/2011-07/38897.htm. Download the u-boot source code provided by other websites, you can decompress it on Windows, but not on Ubuntu.
2. Establish a cross-compilation environment
Download arm-linux-gcc4.3.2, which can be downloaded from the friendly arm official website. After decompression, configure the path, as follows:
1) Modify the environment variables and add the path of the cross compiler to PATH.
Method 1: Modify the /etc/bash.bashrc file (this file is only applicable to the current user)
$sudo gedit /etc/bash.bashrc
Add export PATH=$PATH:/usr/local/arm/4.4.3/bin at the end
Method 2: Modify the /etc/profile file (this file is a system-level environment variable, and the settings in it apply to all users
$sudo gedit /etc/profile
Add export PATH=$PATH:/usr/local/arm/4.4.3/bin at the end
Method 3: Modify the /etc/environment file
$sudo gedit /etc/environment
The original file should be PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/games"
Change it to PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4. 4.3/bin" Save and exit
If you do not add the environment variable above, you need to write out the full path of arm-linux-gcc every time you want to run the program arm-linux-gcc. For example: /usr/local/arm/4.4.3/bin arm-linux-gcc file name - o output file name
This is very troublesome, so add it to the path to let the computer know where the program is.
Make the new environment variables take effect immediately without restarting the computer:
Method 1: $ source /root/.bashrc
Method 2: $ source /etc/profile
Method 3: Log out of the system (if the above is unsuccessful, it is recommended to log out of the system)
3. Follow the steps in the friendly arm u-boot transplantation complete manual.
4. Continue to understand the u-boot code and follow up.
Previous article:mini2440 uses sdram
Next article:Mini2440 bare metal program burning
Recommended ReadingLatest update time:2024-11-16 09:48
- Popular Resources
- Popular amplifiers
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
- Do you need to persist?
- What are the common reasons for LED errors?
- Need help choosing safer lithium batteries?
- STM32H743IIT6 core board schematic diagram
- C8051F full series routine code
- [BearPi-HM Nano, play Hongmeng "touch and go"] Part 1: Unboxing summary
- AD9 usage issues
- TI Blog - Tips for Debugging Audio Amplifiers
- How is the 4-20mA output circuit of a pressure sensor or temperature sensor usually implemented?
- The driver chip made by TI's LM3409 encountered a problem and the LED could not light up