摘 要:為了能夠在硬件基礎之上,按照產(chǎn)品要求或者研究需要進行各種嵌入式應用程序的開發(fā),在介紹ARM和Linux特點的基礎上,通過宿主機和開發(fā)板的對接模式,成功地將嵌入式Linux操作系統(tǒng)移植到32位微處理器S3C2410A上,從而建立所需的嵌入式開發(fā)平臺。簡要討論幾種調(diào)試方法,并提出一種整體打包的方法,最后以一個簡單的Qtopia菜單程序為例,說明嵌入式應用程序的開發(fā)過程。關鍵詞:ARM; 嵌入式系統(tǒng); Linux; Qtopia
中圖分類號:TN911-34; TP316 文獻標識碼:A
文章編號:1004-373X(2010)18-0030-05
Establishment and Application of Embedded System Development Platform Based on Linux
LIN Ji-min, WU Yi, LIN Xiao
(School of Physics and Optoelectronics Technology, Fujian Normal University, Fuzhou 350007, China)
Abstract: As the mass application of embedded products and particular dominance of Linux system, the development and study about embedded systems have become a main topic of discussion. In order to develop various embedded applications based on hardware according to the requirement of products and the need of study, the embedded Linux system is transplanted into the 32 bit micro-processor S3C2410A successfully with the docking mode of the host and development board according to the characters of ARM and Linux, and then the needed embedded development platform is set up. Several debugging methods are discussed and a overall package method is put forward. Taking a Qtopia application as an example, the development process of an embedded application program is depicted.Keywords: ARM; embedded system; Linux; Qtopia
0 引 言
嵌入式系統(tǒng)是以應用為中心,以計算機技術為基礎,并且軟硬件可裁減,適用于應用系統(tǒng)對功能、可靠性、 成本、功耗有嚴格要求的專用計算機系統(tǒng),通常由嵌入式微處理器、 外圍硬件設備、嵌入式操作系統(tǒng)、及用戶應用程序四部分組成,用于實現(xiàn)對其他設備的控制、監(jiān)視或者管理等功能[1],類似于PC機上的Windows XP系統(tǒng)。嵌入式操作系統(tǒng)是一種更加精簡、功能相對完整的操作系統(tǒng),目前比較流行的嵌入式操作系統(tǒng)主要有Linux,Windows CE,Vxworks,μC/OS-Ⅱ等。Linux操作系統(tǒng)是一個免費并且源代碼開放的操作系統(tǒng),用戶可以免費獲得Linux源代碼,然后根據(jù)自己的應用需求對系統(tǒng)進行定制和改造[2]。
本文選用的32位ARM920T內(nèi)核微處理器是三星公司的S3C2410A-20[3],它可以支持2.4版本和2.6版本內(nèi)核的Linux操作系統(tǒng)。本文把2.4版本內(nèi)核的Linux操作系統(tǒng)嵌入到ARM體系結(jié)構中,并在此基礎上搭建嵌入式開發(fā)平臺,然后進行各種應用程序的開發(fā)。
1 硬件平臺
本文使用的硬件平臺是杭州立宇太電子有限公司的ARMSYS系列嵌入式系統(tǒng)開發(fā)板。……