Migration of Linux2.6.31.4 on TQ2440

Source: Internet
Author: User
Platform: Fedora10 kernel linux-2.6.27.5 in the terminal input uname-a can view the kernel version information cross-compiled toolchain: arm-linux-gcc4.3.2 in the terminal input arm-linux-gcc-v can view the version information here for convenience, directly modify the top-level Makefile file to specify the platform and cross-compiler: # vimMakefile #: setnu display the row number

Platform: Fedora 10 kernel linux-2.6.27.5 enter uname-a on the terminal to view kernel version information

Tool chain for cross-Compilation: Enter arm-linux-gcc 4.3.2 on the terminal to view the version information.

For convenience, modify the top-level Makefile file directly and specify the platform and Cross Compiler:

# Vim Makefile

#: Set nu display row number

Lines 183rd and 184 are changed to the following: Here, you can switch the insert and replace modes by pressing the ins key on the keyboard.

ARCH? = Arm sequence specifies the system hardware architecture

CROSS_COMPILE? = Arm-linux-compiler specifies the Cross Compiler

Save all the following modifications:

# Wq

Modify arch/arm/mach-s3c2440/mach-smdk2440.c here is the machine clock

Static void _ init smdk2440_map_io (void)

{

S3c24xx_init_io (smdk2440_iodesc, ARRAY_SIZE (smdk2440_iodesc ));

S3c24xx_init_clocks (12000000); change period to 12000000

S3c24xx_init_uarts (smdk2440_uartcfgs, ARRAY_SIZE (smdk2440_uartcfgs ));

}

Modify arch/arm/tools/mach-types. Here the machine code must be provided with the bootloader of the Development Board.

Otherwise, an error will be prompted. Because my website is 168, the modification is as follows:

#:/S3c2440 search keywords

Toto ARCH_TOTO TOTO 361

S3c2440 ARCH_S3C2440 S3C2440 168

Ks8695 P arch_ks8695 P ks8695 P 363

All right, make sure that the kernel is the most basic boot, and enter the graphical configuration interface below:

Under linux-2.6.31.4 directory:

# Make menuconfig

Select Load an Alternate Configuration File and enter the default Configuration File 2440:

Arch/arm/configs/s3c2410_defconfig

Save the default. config

 

Configure here:

In System Type

Select the items in the S3C24xx Machines and cancel the remaining items.

System Type --->

S3C2410 Machines --->

[*] SMDK2410/A9M2410

S3C2440 Machines --->

[*] SMDK2440

[*] SMDK2440 with S3C2440 CPU module

In Kernel Features, select:

[*] Use the arm eabi to compile the kernel

[*] Allow old ABI binaries to run with this kernel (EXPERIMENTA

In Boot Options, modify it to: mtdblock2 is the partition to be mounted at startup to ensure the root file system

This partition will be mentioned later. The console is the console.

Noinitrd root =/dev/mtdblock2 init =/linuxrc console = ttySAC0, 115200

Last save:

Do you wish to save your new kernel configuration?

To continue.

<Yes> <No>

# Make zImage

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.