爱问 爱问共享资料 爱问分类
首页 > > > 嵌入式linux应用程序开发详解.pdf

嵌入式linux应用程序开发详解.pdf

嵌入式linux应用程序开发详解.pdf

上传者: 孤独寒烟
637次下载 0人收藏 暂无简介 简介 2011-09-08 举报

简介:嵌入式linux应用程序开发详解.pdf 人民邮电出版社,12章全 详细介绍linux开发

目录第1章Linux快速入门..................................................................................................................11.1嵌入式Linux基础...........................................................................................................11.1.1Linux发展概述.....................................................................................................11.1.2Linux作为嵌入式操作系统的优势.....................................................................21.1.3Linux发行版本.....................................................................................................31.1.4如何学习Linux.....................................................................................................41.2Linux安装........................................................................................................................51.2.1基础概念................................................................................................................51.2.2硬件需求................................................................................................................71.2.3安装准备................................................................................................................71.2.4安装过程................................................................................................................81.3Linux文件及文件系统...................................................................................................111.3.1文件类型及文件属性...........................................................................................111.3.2文件系统类型介绍..............................................................................................131.3.3Linux目录结构...................................................................................................141.4实验内容——安装Linux操作系统.............................................................................17本章小结..................................................................................................................................17思考与练习..............................................................................................................................18第2章Linux基础命令................................................................................................................192.1Linux常用操作命令......................................................................................................192.1.1用户系统相关命令..............................................................................................202.1.2文件目录相关命令..............................................................................................272.1.3压缩打包相关命令..............................................................................................382.1.4比较合并文件相关命令......................................................................................402.1.5网络相关命令......................................................................................................45A-PDFMERGERDEMO2嵌入式应用程序开发详解2.2Linux启动过程详解......................................................................................................502.2.1概述......................................................................................................................512.2.2内核引导阶段......................................................................................................512.2.3init阶段...............................................................................................................522.3Linux系统服务..............................................................................................................542.3.1独立运行的服务..................................................................................................552.3.2xinetd设定的服务...............................................................................................562.3.3设定服务命令常用方法......................................................................................562.4实验内容.........................................................................................................................572.4.1在Linux下解压常见软件..................................................................................572.4.2定制Linux系统服务..........................................................................................58本章小结..................................................................................................................................60思考与练习..............................................................................................................................60第3章Linux下的C编程基础...................................................................................................613.1Linux下C语言编程概述..............................................................................................613.1.1C语言简单回顾..................................................................................................613.1.2Linux下C语言编程环境概述...........................................................................623.2进入Vi............................................................................................................................633.2.1Vi的模式.............................................................................................................633.2.2Vi的基本流程.....................................................................................................633.2.3Vi的各模式功能键.............................................................................................653.3初探Emacs.....................................................................................................................663.3.1Emacs的基本操作..............................................................................................673.3.2Emacs的编译概述..............................................................................................703.4Gcc编译器.....................................................................................................................713.4.1Gcc编译流程解析..............................................................................................713.4.2Gcc编译选项分析..............................................................................................743.5Gdb调试器.....................................................................................................................773.5.1Gdb使用流程......................................................................................................783.5.2Gdb基本命令......................................................................................................813.6Make工程管理器...........................................................................................................863.6.1Makefile基本结构..............................................................................................863.6.2Makefile变量......................................................................................................873.6.3Makefile规则......................................................................................................903.6.4Make管理器的使用............................................................................................913.7使用autotools.................................................................................................................923.7.1autotools使用流程..............................................................................................923.7.2使用autotools所生成的Makefile......................................................................96第1章目录33.8实验内容.........................................................................................................................983.8.1Vi使用练习.........................................................................................................983.8.2用Gdb调试有问题的程序.................................................................................993.8.3编写包含多文件的Makefile............................................................................1013.8.4使用autotools生成包含多文件的Makefile....................................................103本章小结................................................................................................................................105思考与练习............................................................................................................................105第4章嵌入式系统基础............................................................................................................1064.1嵌入式系统概述............................................................................................................1064.1.1嵌入式系统简介................................................................................................1064.1.2嵌入式系统发展历史........................................................................................1074.1.3嵌入式系统的特点............................................................................................1084.1.4嵌入式系统的体系结构....................................................................................1084.1.5几种主流嵌入式操作系统分析........................................................................1094.2ARM处理器硬件开发平台...........................................................................................1114.2.1ARM处理器简介...............................................................................................1114.2.2ARM体系结构简介...........................................................................................1134.2.3ARM9体系结构.................................................................................................1134.2.4S3C2410处理器详解.........................................................................................1164.3嵌入式软件开发流程....................................................................................................1214.3.1嵌入式系统开发概述........................................................................................1214.3.2嵌入式软件开发概述........................................................................................1224.4实验内容——使用JTAG烧写NANDFlash...............................................................128本章小结.................................................................................................................................131思考与练习.............................................................................................................................132第5章嵌入式Linux开发环境的搭建.......................................................................................1335.1嵌入式开发环境的搭建................................................................................................1335.1.1嵌入式交叉编译环境的搭建............................................................................1335.1.2超级终端和Minicom配置及使用...................................................................1355.1.3下载映像到开发板............................................................................................1425.1.4编译嵌入式Linux内核....................................................................................1455.1.5Linux内核目录结构.........................................................................................1495.1.6制作文件系统....................................................................................................1495.2U-Boot移植...................................................................................................................1535.2.1Bootloader介绍.................................................................................................1535.2.2U-Boot概述.......................................................................................................1555.2.3U-Boot源码导读...............................................................................................1564嵌入式应用程序开发详解5.2.4U-Boot移植主要步骤.......................................................................................1635.2.5U-Boot常见命令...............................................................................................1645.3实验内容——移植Linux内核.....................................................................................164本章小结.................................................................................................................................165思考与练习.............................................................................................................................165第6章文件I/O编程................................................................................................................1666.1Linux系统调用及用户编程接口(API)...................................................................1666.1.1系统调用............................................................................................................1666.1.2用户编程接口(API).....................................................................................1676.1.3系统命令............................................................................................................1676.2Linux中文件及文件描述符概述..................................................................................1686.3不带缓存的文件I/O操作.............................................................................................1686.3.1open和close......................................................................................................1686.3.2read、write和lseek..........................................................................................1706.3.3fcntl....................................................................................................................1736.3.4select...................................................................................................................1786.4嵌入式Linux串口应用开发.........................................................................................1836.4.1串口概述............................................................................................................1836.4.2串口设置详解....................................................................................................1846.4.3串口使用详解....................................................................................................1916.5标准I/O开发.................................................................................................................1946.5.1打开和关闭文件................................................................................................1946.5.2文件读写............................................................................................................1976.5.3输入输出............................................................................................................1986.6实验内容........................................................................................................................2016.6.1文件读写及上锁................................................................................................2016.6.2多路复用式串口读写........................................................................................204本章小结.................................................................................................................................207思考与练习.............................................................................................................................207第7章进程控制开发................................................................................................................2087.1Linux下进程概述........................................................................................................2087.1.1进程相关基本概念............................................................................................2087.1.2Linux下的进程结构.........................................................................................2107.1.3Linux下进程的模式和类型.............................................................................2107.1.4Linux下的进程管理..........................................................................................2117.2Linux进程控制编程....................................................................................................2127.3Linux守护进程............................................................................................................224第1章目录57.3.1守护进程概述....................................................................................................2247.3.2编写守护进程....................................................................................................2247.3.3守护进程的出错处理........................................................................................2297.4实验内容.......................................................................................................................2327.4.1编写多进程程序................................................................................................2327.4.2编写守护进程....................................................................................................235本章小结................................................................................................................................238思考与练习............................................................................................................................239第8章进程间通信....................................................................................................................2408.1Linux下进程间通信概述............................................................................................2408.2管道通信.......................................................................................................................2418.2.1管道概述............................................................................................................2418.2.2管道创建与关闭................................................................................................2428.2.3管道读写............................................................................................................2448.2.4标准流管道........................................................................................................2468.2.5FIFO...................................................................................................................2498.3信号通信.......................................................................................................................2538.3.1信号概述............................................................................................................2538.3.2信号发送与捕捉................................................................................................2558.3.3信号的处理........................................................................................................2588.4共享内存.......................................................................................................................2648.4.1共享内存概述....................................................................................................2648.4.2共享内存实现....................................................................................................2658.5消息队列.......................................................................................................................2678.5.1消息队列概述....................................................................................................2678.5.2消息队列实现..............................

嵌入式linux应用程序开发详解.pdf

嵌入式linux应用程序开发详解.pdf

上传者: 孤独寒烟
637次下载 0人收藏 暂无简介 简介 2011-09-08 举报

简介:嵌入式linux应用程序开发详解.pdf 人民邮电出版社,12章全 详细介绍linux开发

目录第1章Linux快速入门..................................................................................................................11.1嵌入式Linux基础...........................................................................................................11.1.1Linux发展概述.....................................................................................................11.1.2Linux作为嵌入式操作系统的优势.....................................................................21.1.3Linux发行版本.....................................................................................................31.1.4如何学习Linux.....................................................................................................41.2Linux安装........................................................................................................................51.2.1基础概念................................................................................................................51.2.2硬件需求................................................................................................................71.2.3安装准备................................................................................................................71.2.4安装过程................................................................................................................81.3Linux文件及文件系统...................................................................................................111.3.1文件类型及文件属性...........................................................................................111.3.2文件系统类型介绍..............................................................................................131.3.3Linux目录结构...................................................................................................141.4实验内容——安装Linux操作系统.............................................................................17本章小结..................................................................................................................................17思考与练习..............................................................................................................................18第2章Linux基础命令................................................................................................................192.1Linux常用操作命令......................................................................................................192.1.1用户系统相关命令..............................................................................................202.1.2文件目录相关命令..............................................................................................272.1.3压缩打包相关命令..............................................................................................382.1.4比较合并文件相关命令......................................................................................402.1.5网络相关命令......................................................................................................45A-PDFMERGERDEMO2嵌入式应用程序开发详解2.2Linux启动过程详解......................................................................................................502.2.1概述......................................................................................................................512.2.2内核引导阶段......................................................................................................512.2.3init阶段...............................................................................................................522.3Linux系统服务..............................................................................................................542.3.1独立运行的服务..................................................................................................552.3.2xinetd设定的服务...............................................................................................562.3.3设定服务命令常用方法......................................................................................562.4实验内容.........................................................................................................................572.4.1在Linux下解压常见软件..................................................................................572.4.2定制Linux系统服务..........................................................................................58本章小结..................................................................................................................................60思考与练习..............................................................................................................................60第3章Linux下的C编程基础...................................................................................................613.1Linux下C语言编程概述..............................................................................................613.1.1C语言简单回顾..................................................................................................613.1.2Linux下C语言编程环境概述...........................................................................623.2进入Vi............................................................................................................................633.2.1Vi的模式.............................................................................................................633.2.2Vi的基本流程.....................................................................................................633.2.3Vi的各模式功能键.............................................................................................653.3初探Emacs.....................................................................................................................663.3.1Emacs的基本操作..............................................................................................673.3.2Emacs的编译概述..............................................................................................703.4Gcc编译器.....................................................................................................................713.4.1Gcc编译流程解析..............................................................................................713.4.2Gcc编译选项分析..............................................................................................743.5Gdb调试器.....................................................................................................................773.5.1Gdb使用流程......................................................................................................783.5.2Gdb基本命令......................................................................................................813.6Make工程管理器...........................................................................................................863.6.1Makefile基本结构..............................................................................................863.6.2Makefile变量......................................................................................................873.6.3Makefile规则......................................................................................................903.6.4Make管理器的使用............................................................................................913.7使用autotools.................................................................................................................923.7.1autotools使用流程..............................................................................................923.7.2使用autotools所生成的Makefile......................................................................96第1章目录33.8实验内容.........................................................................................................................983.8.1Vi使用练习.........................................................................................................983.8.2用Gdb调试有问题的程序.................................................................................993.8.3编写包含多文件的Makefile............................................................................1013.8.4使用autotools生成包含多文件的Makefile....................................................103本章小结................................................................................................................................105思考与练习............................................................................................................................105第4章嵌入式系统基础............................................................................................................1064.1嵌入式系统概述............................................................................................................1064.1.1嵌入式系统简介................................................................................................1064.1.2嵌入式系统发展历史........................................................................................1074.1.3嵌入式系统的特点............................................................................................1084.1.4嵌入式系统的体系结构....................................................................................1084.1.5几种主流嵌入式操作系统分析........................................................................1094.2ARM处理器硬件开发平台...........................................................................................1114.2.1ARM处理器简介...............................................................................................1114.2.2ARM体系结构简介...........................................................................................1134.2.3ARM9体系结构.................................................................................................1134.2.4S3C2410处理器详解.........................................................................................1164.3嵌入式软件开发流程....................................................................................................1214.3.1嵌入式系统开发概述........................................................................................1214.3.2嵌入式软件开发概述........................................................................................1224.4实验内容——使用JTAG烧写NANDFlash...............................................................128本章小结.................................................................................................................................131思考与练习.............................................................................................................................132第5章嵌入式Linux开发环境的搭建.......................................................................................1335.1嵌入式开发环境的搭建................................................................................................1335.1.1嵌入式交叉编译环境的搭建............................................................................1335.1.2超级终端和Minicom配置及使用...................................................................1355.1.3下载映像到开发板............................................................................................1425.1.4编译嵌入式Linux内核....................................................................................1455.1.5Linux内核目录结构.........................................................................................1495.1.6制作文件系统....................................................................................................1495.2U-Boot移植...................................................................................................................1535.2.1Bootloader介绍.................................................................................................1535.2.2U-Boot概述.......................................................................................................1555.2.3U-Boot源码导读...............................................................................................1564嵌入式应用程序开发详解5.2.4U-Boot移植主要步骤.......................................................................................1635.2.5U-Boot常见命令...............................................................................................1645.3实验内容——移植Linux内核.....................................................................................164本章小结.................................................................................................................................165思考与练习.............................................................................................................................165第6章文件I/O编程................................................................................................................1666.1Linux系统调用及用户编程接口(API)...................................................................1666.1.1系统调用............................................................................................................1666.1.2用户编程接口(API).....................................................................................1676.1.3系统命令............................................................................................................1676.2Linux中文件及文件描述符概述..................................................................................1686.3不带缓存的文件I/O操作.............................................................................................1686.3.1open和close......................................................................................................1686.3.2read、write和lseek..........................................................................................1706.3.3fcntl....................................................................................................................1736.3.4select...................................................................................................................1786.4嵌入式Linux串口应用开发.........................................................................................1836.4.1串口概述............................................................................................................1836.4.2串口设置详解....................................................................................................1846.4.3串口使用详解....................................................................................................1916.5标准I/O开发.................................................................................................................1946.5.1打开和关闭文件................................................................................................1946.5.2文件读写............................................................................................................1976.5.3输入输出............................................................................................................1986.6实验内容........................................................................................................................2016.6.1文件读写及上锁................................................................................................2016.6.2多路复用式串口读写........................................................................................204本章小结.................................................................................................................................207思考与练习.............................................................................................................................207第7章进程控制开发................................................................................................................2087.1Linux下进程概述........................................................................................................2087.1.1进程相关基本概念............................................................................................2087.1.2Linux下的进程结构.........................................................................................2107.1.3Linux下进程的模式和类型.............................................................................2107.1.4Linux下的进程管理..........................................................................................2117.2Linux进程控制编程....................................................................................................2127.3Linux守护进程............................................................................................................224第1章目录57.3.1守护进程概述....................................................................................................2247.3.2编写守护进程....................................................................................................2247.3.3守护进程的出错处理........................................................................................2297.4实验内容.......................................................................................................................2327.4.1编写多进程程序................................................................................................2327.4.2编写守护进程....................................................................................................235本章小结................................................................................................................................238思考与练习............................................................................................................................239第8章进程间通信....................................................................................................................2408.1Linux下进程间通信概述............................................................................................2408.2管道通信.......................................................................................................................2418.2.1管道概述............................................................................................................2418.2.2管道创建与关闭................................................................................................2428.2.3管道读写............................................................................................................2448.2.4标准流管道........................................................................................................2468.2.5FIFO...................................................................................................................2498.3信号通信.......................................................................................................................2538.3.1信号概述............................................................................................................2538.3.2信号发送与捕捉................................................................................................2558.3.3信号的处理........................................................................................................2588.4共享内存.......................................................................................................................2648.4.1共享内存概述....................................................................................................2648.4.2共享内存实现....................................................................................................2658.5消息队列.......................................................................................................................2678.5.1消息队列概述....................................................................................................2678.5.2消息队列实现..............................

相关资料推荐

  • 名称/格式
  • 下载次数
  • 资料大小

用户评论(1)

0/200
  • szyq 2011-09-20 00:19:03

    很好,谢谢

上传我的资料

该用户的其它资料

关闭

请选择举报的类型

关闭

提示

提交成功!

感谢您对爱问共享资料的支持,我们将尽快核实并处理您的举报信息。

关闭

提示

提交失败!

您的举报信息提交失败,请重试!

关闭

提示

重复举报!

亲爱的用户!感觉您对爱问共享资料的支持,请勿重复举报噢!

全屏 缩小 放大
收藏
资料评价:

/ 440
所需积分:2 立即下载
返回
顶部
举报
资料
关闭

温馨提示

感谢您对爱问共享资料的支持,精彩活动将尽快为您呈现,敬请期待!