作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (9): 69-71. doi: 10.3969/j.issn.1000-3428.2009.09.024

• 软件技术与数据库 • 上一篇    下一篇

嵌入式Linux系统中的多层次驱动程序

赵利娜,贾豫东,欧 攀   

  1. (北京航空航天大学仪器科学与光电工程学院,北京100083)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-05-05 发布日期:2009-05-05

Deep Directory Drivers in Embedded Linux System

ZHAO Li-na, JIA Yu-dong, OU Pan   

  1. (School of Instrument Science and Opto-electronics Engineering, Beihang University, Beijing 100083)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-05-05 Published:2009-05-05

摘要: 嵌入式Linux设备驱动程序随着设备应用领域的扩展而愈来愈复杂,其相应的配置和编译脚本开发成为重点。简述驱动程序开发的基本原理和过程,针对多层次的驱动程序,分析其配置和编译脚本Kbuild,包括内核配置语言和内核Makefile文件。将源代码加入到Linux内核中,开发出各目录下相应的Config.in和Makefile文件,以增加内核配置菜单选项并得到遵从配置的编译结果。对构建的模块按照层叠顺序加载,模块运行良好。

关键词: 配置编译脚本, 多层次, 设备驱动程序, 模块

Abstract: Embeded Linux device drivers becomes more and more complicated in the movement of widespread usages of embedded applications, the configuration and compiling command investigation turns into its outline and difficulty. This paper simply explains the elements and flow of device drivers programming, emphasizes on the configuration and compiling command Kbuild about deep directory drivers, involving kernel configuration language and kernel Makefile file, investigates the Config.in and Makefile under each directories. It joins the source code in the Linux kernel in order to increase the kernel configuration options and gain corresponding compilation result. Loading modules orderly according to the modules dependence, modules run well.

Key words: configuration and compiling command, deep directory, device drivers, modules

中图分类号: