基于μClinux平臺的SATA硬盤控制器SIL3114驅(qū)動移植的方法研究
發(fā)布時間:2018-01-19 23:47
本文關(guān)鍵詞: 驅(qū)動移植 編譯 測試 μClinux SATA硬盤控制器SIL3114 S3C2510 DVR 出處:《南華大學(xué)》2012年碩士論文 論文類型:學(xué)位論文
【摘要】:本課題是嵌入式數(shù)字視頻錄像機(DVR,Digital Video Recorder)項目中的一部分,根據(jù)項目要求,需要將標(biāo)準(zhǔn)μClinux2.4.27(以下稱為源內(nèi)核)中SATA硬盤控制器SIL3114的驅(qū)動代碼移植到μClinux2.4.17(以下稱為目標(biāo)內(nèi)核)中。依據(jù)課題開發(fā)要求,搭建及配置了嵌入式開發(fā)平臺。對靜態(tài)編譯和動態(tài)編譯的特點進(jìn)行了分析,動態(tài)編譯了SIL3114的驅(qū)動代碼,之后再編譯到目標(biāo)內(nèi)核空間,成功實現(xiàn)了SIL3114驅(qū)動代碼在μClinux不同版本之間的移植。 在所選擇的嵌入式開發(fā)平臺上,配置了Windows和Linux開發(fā)環(huán)境,建立交叉編譯環(huán)境,并進(jìn)行了測試。Windows平臺的配置包括FTP客戶端以及DNW和Source Insight的軟件配置。在Linux開發(fā)環(huán)境的配置過程中,進(jìn)行了網(wǎng)絡(luò)服務(wù)、VMware Tools、共享文件、FTP服務(wù)端、root用戶登錄以及全屏顯示等配置。 根據(jù)嵌入式DVR項目的具體要求,結(jié)合內(nèi)核的編譯原理,,設(shè)計了SIL3114驅(qū)動代碼在μClinux不同版本之間移植的流程圖。依據(jù)流程圖,SIL3114驅(qū)動代碼的移植主要分三步來完成:首先,實現(xiàn)基于源內(nèi)核環(huán)境下SIL3114驅(qū)動代碼的動態(tài)編譯;然后,實現(xiàn)基于目標(biāo)內(nèi)核環(huán)境下SIL3114驅(qū)動代碼的動態(tài)編譯;最后,根據(jù)靜態(tài)編譯原理,將SIL3114的驅(qū)動代碼靜態(tài)編譯到目標(biāo)內(nèi)核,成功生成二進(jìn)制內(nèi)核可執(zhí)行文件linux.bin。 在測試過程中,進(jìn)行了啟動代碼ARMboot的分析,確定如何支持SATA硬盤控制器。然后,利用H-JTAG工具將ARMboot、目標(biāo)內(nèi)核二進(jìn)制文件以及文件系統(tǒng)燒入Flash中,實現(xiàn)了理論分析與測試。 采用上述方法將μClinux2.4.27內(nèi)核中SATA硬盤控制器SIL3114的驅(qū)動移植到μClinux2.4.17中,實現(xiàn)了驅(qū)動移植,可以明顯提高效率,縮短開發(fā)周期。本文所介紹的驅(qū)動移植方法,也可以為那些不熟悉內(nèi)核編碼規(guī)則以及具體硬件工作原理的開發(fā)人員,提供一種有效的驅(qū)動移植途徑。
[Abstract]:This subject is a part of the project of embedded digital video recorder (DVR) digital Video recorder, according to the requirements of the project. The driver code for the SATA hard disk controller SIL3114 in the standard 渭 Clinux 2.4.27 (hereafter referred to as the source kernel) needs to be ported to 渭 Clinux 2.4.17 (. The following is referred to as the target kernel). Build and configure the embedded development platform, analyze the characteristics of static compilation and dynamic compilation, compile the driver code of SIL3114 dynamically, then compile to the target kernel space. The porting of SIL3114 driver code between different versions of 渭 Clinux is successfully realized. On the selected embedded development platform, the development environment of Windows and Linux is configured, and the cross-compiling environment is established. The configuration of. Windows platform includes FTP client and software configuration of DNW and Source Insight. In the process of Linux development environment configuration. The network service VMware tools, shared file and FTP server user login and full-screen display are configured. According to the specific requirements of the embedded DVR project, combined with the kernel compiling principle, the flow chart of SIL3114 driver code porting between different versions of 渭 Clinux is designed. The migration of SIL3114 driver code is mainly divided into three steps: firstly, the dynamic compilation of SIL3114 driver code based on source kernel environment is realized; Then, the dynamic compilation of SIL3114 driver code based on the target kernel environment is realized. Finally, according to the principle of static compilation, the driver code of SIL3114 is compiled statically to the target kernel, and the binary kernel executable file linux.bin. In the process of testing, the startup code ARMboot is analyzed to determine how to support the SATA hard disk controller. Then, the H-JTAG tool will be used to ARMboot. The target kernel binary file and file system are burned into Flash to realize theoretical analysis and test. The driver of SATA hard disk controller (SIL3114) in 渭 Clinux2.4.27 kernel is transplanted to 渭 Clinux2.4.17 by the method mentioned above. The driver porting method introduced in this article can also be used by developers who are not familiar with kernel coding rules and how the hardware works. To provide an effective way to drive transplantation.
【學(xué)位授予單位】:南華大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP333.35
【參考文獻(xiàn)】
相關(guān)期刊論文 前3條
1 黃勛;唐慧強;;嵌入式平臺ARM-uClinux的構(gòu)建與應(yīng)用開發(fā)[J];武漢理工大學(xué)學(xué)報(交通科學(xué)與工程版);2006年01期
2 章立;徐立鴻;姜磊;陳良軍;;嵌入式數(shù)字視頻錄像機GUI系統(tǒng)的設(shè)計與實現(xiàn)[J];微電子學(xué)與計算機;2006年02期
3 楊瑞亞,肖璋;嵌入式uCLinux內(nèi)核啟動過程分析與設(shè)計[J];微計算機信息;2005年13期
本文編號:1445984
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1445984.html
最近更新
教材專著