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