2. Install Ubuntu
3. Set Ubuntu to automatically log in as the root user
Embedded cross-compilation often requires root user privileges. Change the default user of the terminal after logging in to root.
If similar privilege issues occur during the compilation process, be sure to check the current user privileges.
� Create a new terminal in Ubuntu (click here to view the method for creating a new terminal), and enter:
#sudo –s
#sudo passwd
Enter the password to be set, so that we can log in as the root user in the future.
� Enter in the terminal:
#sudo gedit /etc/gdm/custom.conf
A text editor will pop up at this time, modify the content of 'custom.conf' to the following content (if the original file is empty,
enter these contents), save and close, restart Ubuntu, and you will find that you have automatically logged in as the root user.
[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimedLogin=root
AutomaticLogin=root
TimedLoginDelay=30
4. Install the cross compiler
Copy the arm-linux-gcc-4.3.2.tgz file to the /forlinx directory of Ubuntu. The file is located in
the "Utilities" folder of the User Basics CD. Create a new terminal in Ubuntu and enter the following command to install the cross
compiler:
#cd /forlinx (enter the /forlinx directory)
#mkdir /usr/local/arm (create a directory, if the directory already exists, an error will be prompted, just skip it)
#tar zxvf arm-linux-gcc-4.3.2.tgz -C /
(unzip the compiler to /usr/local/arm)
After completion, the "4.3.2" directory will be generated in the /usr/local/arm/ directory.
In this way, the kernel or other applications all use /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc
to specify the use of the cross compiler.
For example, to check the version of this compiler, we can run
#/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc -v. If
the compiler is installed correctly, the compiler version and other information will be displayed.
Previous article:stm32f firmware library download and simple use
Next article:TinyOS porting of CC2430 microcontroller (windows platform)
Recommended ReadingLatest update time:2024-11-16 14:38
- Popular Resources
- Popular amplifiers
- Semantic Segmentation for Autonomous Driving: Model Evaluation, Dataset Generation, Viewpoint Comparison, and Real-time Performance
- Machine Learning and Embedded Computing in Advanced Driver Assistance Systems (ADAS)
- Intelligent program synthesis framework and key scientific problems for embedded software
- arm_embedded_machine_learning_design_dummies_guide
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
- The Problem with UUIDs
- A heating unit power supply scheme with constant and adjustable output power based on TPS61022
- AMIC110 SoC makes industrial communications simple
- STM32F446 NUCLEO 3.5 inch TFT LCD driver
- Allegro reports an error when drilling files
- Digital clock design based on FPGA (video source code)
- ARM bare metal program vs. MCU - personal feelings
- Crystal oscillator is an important component in computers
- 【ST NUCLEO-G071RB Review】——by donatello1996
- What are the maskable interrupts of MSP430?