嵌入式开源操作系统的多处理器功能扩展及应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
RTEMS作为一款实时嵌入式操作系统,目前广泛应用于军事,工业,科研等领域。其模块化的系统结构使得用户可以根据实际应用需要对系统进行剪裁。RTEMS支持的CPU类型较多,几乎可以支持所有支持GCC编译的处理器。Nios II嵌入式软核处理器是Altera公司推出的第二代片上可编程处理器,配以价格低廉、性能优越的FPGA器件,极大地方便了嵌入式系统的开发。具有灵活配置性特点的NiosⅡ处理器与可编程FPGA器件相结合,具有较强的系统灵活性,使得FPGA器件在现代电子设计中得到广泛的应用。调试是嵌入式系统开发的一个重要过程,设计开发GDB/GDBServer工具对RTEMS进行任务级的应用调试具有较强的实际意义。在终端设备进行三维立体图形的呈现渲染也是实际应用中比较常见的,通过设置光照参数或纹理贴图显示立体图形的材质细节是OpenGL ES的重要特点。
     本文分析了开源操作系统RTEMS的基本架构和MPCI多处理器通信接口层的工作原理,修改和编写多核处理器的BSP文件、相关的Makefile文件以实现对Nios II处理器的支持,编写MPCI接口层代码以完成多处理器间的通信,实现了RTEMS在Nios II多处理器上的移植。同时对该系统进行GDB/GDBServer远程调试的功能扩展,从而可对RTEMS进行任务级的应用调试。最后,论文在分析OpenGL ES图像编程的基本原理和关键技术的基础之上,设计开发OpenGL ES应用程序,实现了发光球体的显示和立方体纹理贴图效果的展示。
RTEMS is a real-time embedded system, which is widely used in military, industry and scientific research etc. For its modular structure of system, the user can tailor the RTEMS system as required. RTEMS supports different kinds of CPU, it can support all sorts of CPU which supports GCC compilation. Altera launched the second generation of on-chip programmable embedded soft core processor Nios II, coordinated with low cost and cost-effective FPGA device, make the embedded system development become more convenient. Compared with dedicated hardware, configurable Nios II and programmable FPGA device features make FPGA device have great advantages of flexibility, thus FPGA device is widely used in modern electronic design. Debugging is an important process in the development of embedded system, design and develop GDB/GDBServer tools for RTEMS task-level debugging has strong practical significance. Rendering three-dimensional graphics in the terminal device has widely practical application, display texture details of3D graphics by setting the illumination parameters or texture mapping is the important characteristic of OpenGL ES.
     This paper analyzed the basic architecture of RTEMS open source operating system and working principle of multiprocessor communications interface, revised and wrote BSP files and related Makefile for multiprocessor to support Nios II, wrote MPCI to communicate with multiprocessor, implemented porting RTEMS to Nios II multiprocessor system. Meanwhile, the research extended GDB/GDBServer remote debugger feature to debug RTEMS task-level application. At last, on the basis of OpenGL ES principle and key technology, developed OpenGL ES applications to display luminescent sphere and cube texture mapping effect.
引文
[1]On-Line Applications Research Corporation.RTEMS C User's Guide Edition 4.9.2, for RTEMS 4.9.2[Z].2010
    [2]On-Line Applications Research Corporation.Getting Started with RTEMS Edition 4.9.2, for RTEMS 4.9.2[Z].2010
    [3]张昆峰,常进.RTEMS操作系统在SPARC-V8处理器上的应用[J].微计算机信息,第25卷第9-2期,2009年:10-12
    [4]宋伟,杨学军.嵌入式操作系统RTEMS基于多处理器的优化[J].计算机工程,第33卷第17期,2007年9月:71-76
    [5]Altera Corporation.Creating Multiprocessor Nios II Systems Tutorial[Z].2007
    [6]David Blythe.et.OpenGL ES Common/Common-Lite Profile Specification Version 1.1.12[Z].2008
    [7]OpenGL体系结构审核委员会等著,邓郑祥译.OpenGL编程指南(第四版)[M].北京:化学工业出版社,2010年
    [8]和克智.OpenGL编程技术详解[M].北京:人民邮电出版社,.2005年
    [9]Neil Wong.建立RTEMS的PC开发环境[Z].2005年
    [10]On-Line Applications Research Corporation.RTEMS Porting Guide Edition 4.9.2, for RTEMS 4.9.2[Z].2010
    [11]杨云,李言俊.RTEMS移植到SAILINGS698处理器的BSP开发[J].计算机工程与应用,第45卷第26期,2009年:61-64
    [12]王晓庆.嵌入式系统硬件平台设计及操作系统间的移植[D].长沙,国防科学技术大学,2004年
    [13]刘明博,邓中亮.基于ARM的嵌入式Linux操作系统移植的研究[J].计算机系统应用,第11期,2006年:44-88
    [14]张纪胜,陈香兰,周学海.RTEMS下Firewire协议栈的设计与实现[J].计算机工程,第36卷第8期,2010年4月:264-266
    [15]许海波.车载信息平台的操作系统移植及应用研究[D].武汉,武汉理工大学,2007年
    [16]张忠民,李鸿林.ADSP21160的多处理器系统在雷达信号处理器中的应用[J].信息技术,第8期,2005年:19-45
    [17]周先谱,童朝南,尹晓杰.基于21554的无主多处理器系统实现[J].微计算机系统,第21卷第10-2期,2005年:124-170
    [18]Dai Zhitao, Niu Yingxiang, Kuang Jian:NIOS II-based RTEMS Multiprocessor System Porting Solution[C].2012 2nd IEEE International Conference on Cloud Computing and Intelligence Systems.2012:70-74
    [19]张娟,苏海冰,蒋和松.基于FPGA片上PowerPC的RTEMS移植分析[J].微计算机信息:第25卷第11-2期,2009年:161-165
    [20]http://www.nios2rtems.com/[Z].2009
    [21]杨延军等.嵌入式系统开发原理与实验[M].北京:北京大学出版社,2011年:746-74
    [22]扈啸,陈书明,李杰等.片上trace:嵌入式处理器的有效调试和优化技术[J].国防科大学学报,第30卷第2期,2008年:46-51
    [23]胡伟彬.基于GDB的无线传感网络调试器的设计与实现[D].杭州,浙江大学,2008年
    [24]党建勋,尚利宏,李红兵.RTEMS任务级别调试技术研究[J].单片机与嵌入式系统应用第3期,2009年:8-10
    [25]陈必泉,黄承慧.GDBSERVER原理分析及应用[J].计算机工程与设计,第26卷第三期2005年3月:746-749
    [26]Mark Snyder, Quantum3D, Glendale.et.Solving the Embedded OpenGL Puzzle-Makii Standards, Tools, and APIs Work Together in Highly Embedded and Safety Critic Environments[C].IEEE International Conference,2005
    [27]和平鸽工作室OpenGL高级编程与可视化系统开发高级编程篇[M].北京:中国水利电出版社,2005年
    [28]Richard S.Wright, Jr., Nicholas Haemel.et.OpenGL超级宝典(第5版)[M].北京:人邮电出版社,2012年
    [29]Hwanyong Lee, Nakhoon Baek.Implementing OpenGL ES on OpenGL[C].The 13th IEE International Symposium on Consumer Electronics,2009:999-1003
    [30]王瑞永,乔江,袁清.OpenGL与Windows坐标相互转换的实现[J].地理空间信息第卷第4期,2011年8月:78-80
    [31]Gan Xinbiao, Dai Kui, Wang Zhiying.Low-Level Component for OpenGL ES Orient Heterogeneous Architecture with Optimization[C].The 9th International Conference (?) Young Computer Scientists.2008:200-205

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700