LINUX Kernel Porting

Publisher:PeacefulOasisLatest update time:2024-09-30 Source: cnblogsKeywords:LINUX Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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

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

Modify mach-ok6410.c and replace smdk6410 with ok6410 and SMDK6410 with OK6410

:1,$s/smdk6410/ok6410/g

Modify the Makefile in this directory


obj-$(CONFIG_MACH_OK6410)    += mach-ok6410.o

Modify the Kconfig in this directory

Increase


config MACH_OK6410
    bool "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
      Machine support for the Samsung OK6410


3. Modify the /arch/arm/mach-types file, add the ok6410 machine information, and require the machine code to be consistent with that in uboot.


ok6410 MACH_OK6410 OK6410 1626


4. Configure the kernel and select OK6410 to compile and complete the initial transplantation


Keywords:LINUX Reference address:LINUX Kernel Porting

Previous article:Symptom: After arm is started, the application interface displays...
Next article:Porting OK6410 LCD driver

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号