Today I finally completed the kernel compilation on Ubuntu, and the process is now recorded as follows.
First, install some Qt-related software packages. If there are errors later, it is likely that some software packages are missing.
Then use the sudo apt-get install ** command to download and install. . . .
1.sudo-i
Enter root
2. Copy the cross-compilation tool to /work/tools/, and decompress arm-linux-gcc-3. 4. 1.tar .bz2. The steps are omitted, as shown in the figure below.
2. Add the cross-compiler path to the system path:
Add the following line to the last line of bashrc:
PATH=$PATH:/work/tools/usr/local/arm/3.4.1/bin
The screenshot is as follows:
Start the new system path:
#source /root/.bashrc
Display the new system path:
# echo $PATH
View the cross-compiler version number
# arm-Linux-gcc -v
3. Modify the makfile file in the root directory of Linux-2.6.8:
Enter the Makefile:
As shown in the screenshot above, modify the following content:
ARCH : = arm
CROSS_COMPILE =/work/tools/usr/local/arm/3.4.1/bin
4.
An error occurred when running #make menuconfig: scripts/kconfig/mconf.c:91: error : static declaration of 'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
Solution:
Modify the scripts/kconfig/mconf.c file and solve the problem by commenting the relevant lines of code:
Find this line: static struct menu *current_menu;
After modified comment
//static struct menu *current_menu;
struct menu *current_menu;
5. Make menuconfig again
success
Previous article:Corrected the cramfs production description in the YLP2410 user manual
Next article:Steps to burn .bin using SJF2410 and jtag and its problems
Recommended ReadingLatest update time:2024-11-15 07:07
- 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
- 【Silicon Labs Development Kit Review】+PG22 Hardware Resources
- "Play Board" + Shared Bicycle Control Panel-Hardware Modification
- How is this dead time calculated?
- MSP430fr6989 serial port DMA sending experimental routine
- Live FAQ|Microchip's Trusted Platform for CryptoAuthentication Series
- 【Qinheng Trial】7. TouchKey
- Former Chairman explains the new PCIe5.0 specification. Tektronix invites you to watch and win prizes
- Today I thought of the "collection economy", office workers are very busy
- In adjustment
- RISC-V MCU Development (Part 14): Help and Feedback