改 vnfg
OK
OK
OK
OK -6410
-6410
-6410
-6410
飞凌嵌入式
www.witech.com.cn 2010.11.3 1
LINUX2.6.28 用户手册
version1.0
目 录
第一章 前言 .................................................................................................................................................
.................................................................................................................................................
.................................................................................................................................................
................................................................................................................................................. 5
5
5
5
第二章 在主机上搭建 LINUX
LINUX
LINUX
LINUX 开发环境 ...................................................................................................
...................................................................................................
...................................................................................................
................................................................................................... 6
6
6
6
2-1 安装 Ubuntu9.10 .............................................................................................................................. 6
2-1-1 安装 Ubuntu9.10 ..................................................................................................................... 7
2-2 将 Ubuntu 设置为 root 用户自动登录 ......................................................................................... 12
2-3 设置 Ubuntu 网络参数 .................................................................................................................. 13
2-4 Ubuntu 常用应用程序 ................................................................................................................... 15
2-4-1 Linux 终端 ............................................................................................................................. 15
2-5 安装交叉编译器 ............................................................................................................................ 16
第三章 编译 UBOOT
UBOOT
UBOOT
UBOOT 和 LINUX
LINUX
LINUX
LINUX 内核 ....................................................................................................
....................................................................................................
....................................................................................................
.................................................................................................... 18
18
18
18
3-1 编译 u-boot-1.1.6 ........................................................................................................................... 18
3-2 编译 Linux-2.6.28 .......................................................................................................................... 20
3-2-1 配置内核 ............................................................................................................................... 20
3-2-2 编译内核 ............................................................................................................................... 21
3-2-3 开发板驱动源码路径 ........................................................................................................... 21
第四章 烧写 LINUX
LINUX
LINUX
LINUX 到 OK6410
OK6410
OK6410
OK6410 开发板 .................................................................................................
.................................................................................................
.................................................................................................
................................................................................................. 23
23
23
23
4-1 烧写 U-Boot ................................................................................................................................... 23
4-1-1 固化启动代码到 SD 卡中 .................................................................................................... 23
4-1-2 设置开发板从 SD 卡启动 .................................................................................................... 25
4-1-3 安装 USB 驱动程序 .............................................................................................................. 27
4-1-4 下载并烧写 u-boot 到 Nandflash .......................................................................................... 31
4-1-5 设置开发板从 Nandflash 启动 ............................................................................................. 34
4-1-6 设置 U-boot 工作参数 ......................................................................................................... 34
4-2 烧写 Kernel .................................................................................................................................... 35
4-3 烧写文件系统 ................................................................................................................................ 36
4-3-1 烧写 cramfs 文件系统 .......................................................................................................... 36
4-3-2 挂载 NFS 文件系统 .............................................................................................................. 36
4-3-3 烧写 yaffs2 文件系统 ........................................................................................................... 38
第五章 LINUX
LINUX
LINUX
LINUX 的一键烧写 ..................................................................................................................
..................................................................................................................
..................................................................................................................
.................................................................................................................. 39
39
39
39
第六章 多媒体硬件编解码 ........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................ 42
42
42
42
6-1 编译多媒体硬件编解码测试程序源码 ........................................................................................ 42
6-2 测试多媒体硬件编解码 ................................................................................................................ 43
6-3 H.264 解码 ..................................................................................................................................... 44