OK6410开发板Linux内核移植(3)

smdk4412                MACH_SMDK4412           SMDK4412                3765

ok6410                  MACH_OK6410             OK6410                  1216

(4)、配置内核

接下来配置内核:(如果有现成的配置文件更好啦,哈哈)

[root@localhost linux-2.6]# make menuconfig

HOSTCC  scripts/basic/fixdep

HOSTCC  scripts/kconfig/conf.o

*** Unable to find the ncurses libraries or the

*** required header files.

*** 'make menuconfig' requires the ncurses libraries.

***

*** Install ncurses (ncurses-devel) and try again.

***

make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1

make: *** [menuconfig] 错误 2

提示错误没有安装ncurses

[root@localhost linux-2.6]# yum –y install ncurses  ncurses-devel 安装后进入配置界面:

有耐心可以每项都看看。。。。这里附上一个配置好的文件(cp ok6410_config .config 即可)

此时文件的修改已经结束了, 。

(5)修改文件概览

看一下修改的文件有哪些:

[root@localhost linux-2.6]# git status

# On branch test

# Changed but not updated:

#   (use "git add <file>..." to update what will be committed)

#   (use "git checkout -- <file>..." to discard changes in working directory)

#

#       modified:   Makefile

#       modified:   arch/arm/mach-s3c64xx/Makefile

#       modified:   arch/arm/tools/mach-types

#

# Untracked files:

#   (use "git add <file>..." to include in what will be committed)

#

#       arch/arm/mach-s3c64xx/mach-ok6410.c

#       ok6410_config

no changes added to commit (use "git add" and/or "git commit -a")

[root@localhost linux-2.6]# git add arch/arm/mach-s3c64xx/mach-ok6410.c

[root@localhost linux-2.6]# git add ok6410_config

Commit一下做一下记录:

commit c07db86a1c7f6658958678eccb418f08bf665c6b

Author: zkaifa@VM <zkaifa@163.com>

Date:   Fri Dec 30 16:22:59 2011 +0800

config is done

lala...Prepare to "make"

commit a26c6397a3446766ed6744012b4e570e185a698e

(6)、编译内核

make  zImage

三、烧写内核

由于linux下DNW不太好用所以暂时把串口切换到windows下,使用DNW工具下载调试(大家谁有好的办法记得通知我哦, )

1、将编译好的zImage拷贝到windows下 2、用DNW下载内核

选择好内核下载到板子内存中

下载完成

3、擦除NAND内核分区 4、写入NAND

Reset一下,重启板子。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyjxgp.html