基于CK810的Android系統(tǒng)移植研究
本文選題:Android 切入點:系統(tǒng)移植 出處:《浙江大學(xué)》2014年碩士論文
【摘要】:Android是Google公司針對嵌入式領(lǐng)域推出的一款操作系統(tǒng),因其開源和開放的特性,在一推出不久就備受推崇,今年來更是移動終端設(shè)備的裝機數(shù)量上占據(jù)著絕對的領(lǐng)先優(yōu)勢。而CK810是由杭州中天微系統(tǒng)有限公司和浙江大學(xué)超大規(guī)模集成電路研究所聯(lián)合研發(fā)的、全自主知識產(chǎn)權(quán)高性能32位嵌入式CPU,有著極其廣闊的發(fā)展前景。本課題的目標(biāo)是在對Android系統(tǒng)進(jìn)行深入和詳細(xì)的研究和分析的前提下,基于CK810的SOC平臺進(jìn)行Android4.0.3版本的系統(tǒng)移植和優(yōu)化,為國產(chǎn)嵌入式CPU在市場上的推廣添磚加瓦,從而加快CK810產(chǎn)業(yè)化進(jìn)程。本文首先對Android系統(tǒng)和基于CK810的SOC平臺進(jìn)行簡單的概述,并對Android系統(tǒng)的發(fā)展、架構(gòu)和開發(fā)方向等進(jìn)行詳細(xì)說明。其次,本文針對移植工作的原理和機制進(jìn)行系統(tǒng)性剖析,主要移植模塊包括Linux內(nèi)核、Bionic庫以及Dalvik虛擬機。再次,本文重點描述了Android系統(tǒng)移植的具體實現(xiàn),涉及關(guān)鍵技術(shù):1)Linux內(nèi)核移植,包括CK810新體系結(jié)構(gòu)的內(nèi)核實現(xiàn)、Android的專用驅(qū)動等;2) Bionic的移植,包括動態(tài)鏈接器等;3)Dalvik虛擬機移植,包括針對CK810新體系結(jié)構(gòu)的Mterp解釋器、JNI調(diào)用橋和JIT編譯模塊,Dalvik虛擬機的移植和優(yōu)化也是本課題的重點,特別是JIT模塊的移植更是整個課題的關(guān)鍵難點。同時,通過對機器碼的分析,提出并實現(xiàn)了針對JIT模塊的Trace合并和寄存器優(yōu)化。最后,本文對成功移植的Android系統(tǒng)進(jìn)行性能評估和測試,結(jié)果表明Mterp匯編型解釋器的性能是Dalvik自帶的C語言版本解釋器1.3倍,再加上JIT編譯模塊后性能上更是達(dá)到了C語言版本解釋器的3.8倍,而優(yōu)化后的Dalvik可以提高性能8.9%。
[Abstract]:Android, an operating system launched by Google for the embedded world, has been highly admired for its open source and open features. This year, the number of mobile terminal devices occupies an absolute leading position. And CK810 is jointly developed by Hangzhou Zhongtian Microsystem Co., Ltd and the Institute of VLSI of Zhejiang University. Full-independent intellectual property rights with high performance 32-bit embedded CPUs have a very broad prospect of development. The goal of this project is to study and analyze the Android system in depth and in detail. The SOC platform based on CK810 is used to transplant and optimize the system of Android4.0.3 version, which contributes to the promotion of domestic embedded CPU in the market and speeds up the process of CK810 industrialization. Firstly, this paper gives a brief overview of the Android system and the SOC platform based on CK810. And the development, architecture and development direction of Android system are described in detail. Secondly, this paper systematically analyzes the principle and mechanism of the transplantation work. The main migration modules include the Linux kernel Bionic library and the Dalvik virtual machine. This paper focuses on the implementation of Android system porting, which involves the key technology of Android kernel transplantation, including the kernel implementation of the new CK810 architecture, the special driver of CK810, etc.) the migration of Bionic, including dynamic linker and so on, includes the transplanting of Dalvik virtual machine. The transplantation and optimization of Dalvik virtual machine, including the Mterp interpreter for the new architecture of CK810 and the JIT compiler module, are also the key points of this thesis, especially the transplantation of JIT module is the key and difficulty of the whole project. Through the analysis of machine code, the Trace merge and register optimization for JIT module are proposed and realized. Finally, the performance of successfully transplanted Android system is evaluated and tested in this paper. The results show that the performance of the Mterp assembler is 1.3 times higher than that of the C version interpreter with Dalvik, and the performance of the JIT compiler is 3.8 times higher than that of the C language interpreter, and the optimized Dalvik can improve the performance of the C language interpreter by 8.9 times.
【學(xué)位授予單位】:浙江大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP311.54
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 王立冬,張凱;Java虛擬機分析[J];北京理工大學(xué)學(xué)報;2002年01期
2 胡偉;;Android系統(tǒng)架構(gòu)及其驅(qū)動研究[J];廣州廣播電視大學(xué)學(xué)報;2010年04期
3 武建平;時龍興;凌明;曹聞世;;Unicore架構(gòu)下的Dalvik虛擬機優(yōu)化[J];東南大學(xué)學(xué)報(自然科學(xué)版);2013年01期
4 葉云;李春強;胡軍山;;基于CK610的Dalvik虛擬機移植與優(yōu)化[J];計算機工程;2011年16期
5 江健勇;李春強;胡軍山;;基于CK-CPU的Linux2.6實時性能優(yōu)化[J];計算機工程;2011年17期
6 吳少剛;鄒國民;;Dalvik虛擬機在龍芯平臺上的移植與實現(xiàn)[J];計算機工程;2011年22期
7 雷鳴;靳婷;徐曉亮;齊錦;;面向龍芯平臺的Android系統(tǒng)移植研究[J];計算機工程與應(yīng)用;2012年22期
8 張藍(lán)博;張善從;陳蔚薇;;嵌入式系統(tǒng)中的代碼動態(tài)鏈接模型[J];計算機工程與設(shè)計;2008年16期
9 倪紅軍;周巧扣;李霞;葛云峰;;基于“軟件工廠”的Android開發(fā)工程師培養(yǎng)模式探討[J];實驗技術(shù)與管理;2013年09期
10 周毅敏;陳榕;;Dalvik虛擬機進(jìn)程模型分析[J];計算機技術(shù)與發(fā)展;2010年02期
,本文編號:1654641
本文鏈接:http://sikaile.net/falvlunwen/zhishichanquanfa/1654641.html