TP302
基金项目
:
国家科技重大专项基金资助项目
“
新一代宽带无线移动通信网
”(2011
ZX
03006
-
003)。
作者简介
:
杨海民
(1990
-
),
男
,
硕士研究生
,
主研方向
:
嵌入式系统
,
信息安全
;
张
涛
,
教授
;
赵
敏
、
尤
峻
、
董
民
,
讲师
。
收稿日期
:
2013
-
10
-
28
修回日期
:
2013
-
12
-
29
:
151********@
163
.
com
基于
Android
的
BSP
移植自动适配技术
杨海民
a
,
张
涛
a
,
赵
敏
a
,
尤
峻
a
,
董
民
b
(
解放军理工大学
a.
指挥信息系统学院
;
b.
通信工程学院
,
南京
210007)
摘
要
:
当前
Android
的板级支持包
(
BSP
)
移植开发人员不仅需要熟悉具体型号芯片的开发手册
,
还需要调整部
分驱动封装代码
,
工作效率较低
。
为此
,
通过对
Android
Linux
内核源代码进行重构
,
设计并实现一种基于源代码分
类管理的
Andriod
BSP
移植管理框架
。
形式化定义
Android
Linux
内核源码重构规则
,
基于该规则对
Android
Linux
内核源码按照原生
Linux
内核代码
、
Android
驱动程序
、
厂商板硬件相关
BSP
代码
3
类进行管理
,
设计
Android
BSP
移植自动适配工具
,
实现面向特定开发板和特定
Linux
内核版本的
Android
Linux
内核源代码自动生
成
。
测试结果表明
,
该管理框架能够提高
BSP
移植开发人员移植和升级开发板
Android
Linux
内核的工作效率
。
关键词
:
Linux
内核
;
Android
Linux
内核源码
;
组织结构
;
重构
;
板级支持包移植
;
自动适配技术
中文引用格式
:
杨海民
,
张
涛
,
赵
敏
,
等
.
基于
Android
的
BSP
移植自动适配技术
[
J
]
.
计算机工程
,2014,
40(11):245
-
249
.
英文引用格式
:
Yang
Haimin
,
Zhang
Tao
,
Zhao
Min
,
et
al.
BSP
Transplantation
Automatically
Adapting
Technology
Based
on
Android
[
J
]
.
Computer
Engineering
,2014,40(11):245
-
249
.
BSP
Transplantation
Automatically
Adapting
Technology
Based
on
Android
YANG
Haimin
a
,
ZHANG
Tao
a
,
ZHAO
Min
a
,
YOU
Jun
a
,
DONG
Min
b
(
a.
Institute
of
Command
Information
System
;
b.
Institute
of
Communication
Engineering
,
PLA
University
of
Science
and
Technology
,
Nanjing
210007,
China
)
【
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
,
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
DOI
:10
.
3969
/
j.
issn.
1000
-
3428
.
2014
.
11
.
049
1
概述
Android
自
2007
年
11
月首次发布以来
,
已经历了数个版本更新
,
市场上采用该系统的移动
设备数量也在飞速增长
。
为便于系统的移植和硬件
适配
,
Android
系统被设计成分层的架构
,
自
底向上分别是
Linux
内核层
、
本地层
(
Native
)
/
运行
时层
(
Runtime
)、
框
架
层
(
Framework
)
和
应
用
层
(
Application
)
[1]
。
Android
系统运行的基础是
Linux
,
所有的硬件驱动程序
、
设备管理和进程间通信机制
都在底层
Linux
内核中实现
。
为了在不同架构
、
不
同配置的硬件设备上移植运行
Android
系统
,