mini2440 official linux-2.6 Kernel file Zimage compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.