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

计算机工程

• 开发研究与工程应用 • 上一篇    下一篇

基于Android 的BSP 移植自动适配技术

杨海民a,张 涛a,赵 敏a,尤 峻a,董 民b   

  1. (解放军理工大学a. 指挥信息系统学院;b. 通信工程学院,南京210007)
  • 收稿日期:2013-10-28 出版日期:2014-11-15 发布日期:2014-11-13
  • 作者简介:杨海民(1990 - ),男,硕士研究生,主研方向:嵌入式系统,信息安全;张 涛,教授;赵 敏、尤 峻、董 民,讲师。
  • 基金资助:
    国家科技重大专项基金资助项目“新一代宽带无线移动通信网”(2011ZX03006-003)。

BSP Transplantation Automatically Adapting Technology Based on Android

YANG Haimin  a ,ZHANG Tao  a ,ZHAO Min  a ,YOU Jun  a ,DONG Min  b   

  1. (a. Institute of Command Information System;b. Institute of Communication Engineering, PLA University of Science and Technology,Nanjing 210007,China)
  • Received:2013-10-28 Online:2014-11-15 Published:2014-11-13

摘要: 当前Android 的板级支持包(BSP)移植开发人员不仅需要熟悉具体型号芯片的开发手册,还需要调整部分驱动封装代码,工作效率较低。为此,通过对Android Linux 内核源代码进行重构,设计并实现一种基于源代码分类管理的Andriod BSP 移植管理框架。形式化定义Android Linux 内核源码重构规则,基于该规则对Android Linux内核源码按照原生Linux 内核代码、Google Android 驱动程序、厂商板硬件相关BSP 代码3 类进行管理,设计Android BSP 移植自动适配工具,实现面向特定开发板和特定Linux 内核版本的Android Linux 内核源代码自动生 成。测试结果表明,该管理框架能够提高BSP 移植开发人员移植和升级开发板Android Linux 内核的工作效率。

关键词: Linux 内核, Android Linux 内核源码, 组织结构, 重构, 板级支持包移植, 自动适配技术

Abstract: Considering the fact that,Android Board Support Package(BSP) transplantation personnel not only needs to be familiar with the specific model chip development manual over again,but also needs to adjust the package code of some parts of the drivers and other issues,this paper reconstructs Android Linux source code to design and implement a framework of Android BSP transplantation based on the classified management of source code. The framework defines Android Linux kernel source code reconstruction rules. Based on the rules,it manages Android Linux kernel source code in accordance with the native Linux kernel code,Google Android drivers and BSP code associated with manufacturer board. In addition,an Android BSP transplantation automatic adaptation tool is designed which implements the automatic constitution of Android Linux kernel source code. Test result proves that the framework can significantly improve work efficiency of transplanting and upgrading board Android Linux kernel.

Key words: Linux kernel, Android Linux kernel source code, organizational structure, reconstruction, Board Support Package(BSP) transplantation, automatically adapting technology

中图分类号: