|
文件: | linux_development_guide_CN-20090903.pdf |
大小: | 840KB |
下载: | 下载 |
|
建立开发环境 ............................................................................................................................................... 5
2
安装交叉编译工具链 ........................................................................................................................... 5
2.1
启动TFTP和NFS服务........................................................................................................................... 5
2.2
3 U-BOOT的开发和使用 ............................................................................................................................... 7
U-BOOT源码.......................................................................................................................................... 7
3.1
配置和编译U-BOOT .............................................................................................................................. 8
3.2
烧录U-BOOT到目标板.........................................................................................................................11
3.3
U-BOOT命令.........................................................................................................................................11
3.4
U-BOOT使用举例................................................................................................................................ 12
3.5
U-BOOT映像类型................................................................................................................................ 13
3.6
4 LINUX内核和驱动 .................................................................................................................................... 15
LINUX源码的目录结构....................................................................................................................... 15
4.1
配置和编译LINUX ............................................................................................................................... 17
4.2
由U-BOOT启动LINUX内核.................................................................................................................. 18
4.3
测试LINUX内核和驱动....................................................................................................................... 18
4.4
LINUX 2.6 音频驱动 ............................................................................................................................ 22
4.5
OSS音频驱动 .............................................................................................................................. 22
4.5.1
ALSA音频驱动 ............................................................................................................................ 23
4.5.2
5 LINUX根文件系统 .................................................................................................................................... 25
根文件系统的内容 ............................................................................................................................. 25
5.1
编译BUSYBOX ..................................................................................................................................... 25
5.2
编译和配置UDEV ................................................................................................................................ 25
5.3
创建INITRAMFS .................................................................................................................................... 26
5.4
如何在只有SD卡的情况下构建一个完整的系统 .................................................................................... 28
6
测试LINUX内核和驱动 ............................................................................................................................ 30
7
运行LINUX内核................................................................................................................................... 30
7.1
测试LINUX设备驱动........................................................................................................................... 30
7.2
LINUX 2.6 音频驱动 ................................................................................................................................. 35
8
8.1 OSS音频驱动...................................................................................................................................... 35
8.2 ALSA音频驱动................................................................................................................................... 35
8.3 ALSA音频测试................................................................................................................................... 35
9 NAND FLASH文件系统 ........................................................................................................................... 37
NAND FLASH 驱动............................................................................................................................. 37
9.1
i
Linux 2.6 Kernel Developer Guide
Copyright® 2005-2009 Ingenic Semiconductor Co., Ltd. All rights reserved.
NAND FLASH文件系统类型............................................................................................................... 38
9.2
9.3 MTD分区............................................................................................................................................. 38
创建YAFFS2 文件系统....................................................................................................................... 40
9.4
创建FAT和EXT2 文件系统 ................................................................................................................ 41
9.5
9.6 UBI设备............................................................................................................................................... 42
9.6.1 UBIFS........................................................................................................................................... 43
UBI Block设备 ............................................................................................................................. 44
9.6.2
制作UBI镜像文件 ....................................................................................................................... 45
9.6.3
用ubiupdatevol更新卷的内容 ..................................................................................................... 47
9.6.4
用UBIFS创建根文件系统 ........................................................................................................... 48
9.6.5
10 LINUX电源管理..................................................................................................................................... 49
动态变频管理.................................................................................................................................. 49
10.1
在主机上的交叉编译和安装 ...................................................................................................... 49
10.1.1
在目标板上安装cpufreqd............................................................................................................ 53
10.1.2
在目标板上运行cpufreqd............................................................................................................ 53
10.1.3
睡眠和唤醒管理.............................................................................................................................. 56
10.2
开关机管理...................................................................................................................................... 56
10.3
无线设备配置.......................................................................................................................................... 59
11
内核配置.......................................................................................................................................... 59
11.1
WLAN模块驱动加载 ............................................................................................................................ 59
11.2
加载VT6656 驱动: .................................................................................................................... 59
11.2.1
加载ZD1211 驱动: .................................................................................................................... 59
11.2.2
加载GSPI8686 驱动: ................................................................................................................ 60
11.2.3
加载SD8686 驱动: .................................................................................................................... 60
11.2.4
加载AR6000 驱动: .................................................................................................................... 60
11.2.5
无线网络配置工具 ................................................................................................ 61
11.3 WIRELESS-TOOLS,
配置无线网络步骤.......................................................................................................................... 62
11.4
IPERF网络测试工具: ......................................................................................................................... 63
11.5