Official linux-2.6 Kernel file Zimage compilation
by Hyh | January 1, 2018 5:34
I. Description
1. Compiling the Linux kernel requires the cross-compilation toolchain (GCC) of make and arm, as the linux-2.6 is older, use the friendly arm of the official GCC, do not use the latest GCC.
2. The ncurses and zlib support libraries are required during the compilation process. For the Debian system Linux use the instructions:
Apt-get Install Ncurses-dev Zlib1g-dev
3. Tar and any text editor (Vim,nano, etc.) may also be used during the compilation process.
Two. Compiling
1. Unzip
TAR-XF linux-2.6.32.2-mini2440*.tgz
CD linux-2.6.32.2
2. Configuration
In the Linux kernel directory there are many config_mini2440_* (different places are the screen models, the main difference between the LCD driver).
Copy your own screen with the configuration file named. config
CP config_mini2440_*. config
Make Menuconfig
Press a few ESC to return to the terminal
If you want to adjust the default kernel parameters (easy debugging), you can edit the. config by using the text editor.
Config_cmdline= "Adjusted kernel boot parameters"
3. Compiling
Make Zimage
If there is no error, after a period of time can be found in arch/arm/boot/Zimage, after the successful compilation, you can debug or modify the Linux kernel after the recompile.
4. Fix some bugs
1) If you encounter the following error
Edit kernel/timeconst.pl
Replace 373 rows of defined (@val) with (@val)
and then recompile.
Three. Effects
Because there is no root file system, the QEMU simulation cannot enter the final interface, only the kernel boot interface.
https://hyhsystem.cn/wordpress/
Copyright 2018 He Yahong's blog unless otherwise noted.
mini2440 official linux-2.6 Kernel file Zimage compilation