Linux kernel porting

Source: Internet
Author: User

1. Download the kernel source linux-2.6.34 and extract it to the working directory.

2. First add a SOC to the kernel and copy the mach-smdk6410.c into mach-ok6410.c under/arch/arm/mach-s3c64xx

Modify MACH-OK6410.C Replace the smdk6410 inside with ok6410, replace SMDK6410 with OK6410

: 1, $s/smdk6410/ok6410/g

Modify the Makefile in this directory

obj-$ (config_mach_ok6410)    + = MACH-OK6410.O
View Code

Modify the Kconfig in this directory

Increase

config mach_ok6410     "OK6410"     Select cpu_s3c6410    Select S3c_dev_hsmmc    Select S3C_DEV_HSMMC1    Select s3c_dev_i2c1    Select S3C_DEV_FB    Select S3c_dev_usb_host    Select S3C_DEV_USB_HSOTG    Select S3C64XX_SETUP_SDHCI    Select S3C64XX_SETUP_I2C1    Select s3c64xx_setup_fb_24bpp      Help for the Samsung OK6410      
View Code

3. Modify the/arch/arm/mach-types file, increase the ok6410 machine information, require the machine code and uboot in the same.

ok6410            mach_ok6410        OK6410            1626
View Code


4. Configure the kernel Select OK6410 compile, complete the initial migration

Linux kernel porting

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.