当前位置:主页 > 科技论文 > 计算机论文 >

基于μClinux平台的SATA硬盘控制器SIL3114驱动移植的方法研究

发布时间:2018-01-19 23:47

  本文关键词: 驱动移植 编译 测试 μClinux SATA硬盘控制器SIL3114 S3C2510 DVR 出处:《南华大学》2012年硕士论文 论文类型:学位论文


【摘要】:本课题是嵌入式数字视频录像机(DVR,Digital Video Recorder)项目中的一部分,根据项目要求,需要将标准μClinux2.4.27(以下称为源内核)中SATA硬盘控制器SIL3114的驱动代码移植到μClinux2.4.17(以下称为目标内核)中。依据课题开发要求,搭建及配置了嵌入式开发平台。对静态编译和动态编译的特点进行了分析,动态编译了SIL3114的驱动代码,之后再编译到目标内核空间,成功实现了SIL3114驱动代码在μClinux不同版本之间的移植。 在所选择的嵌入式开发平台上,配置了Windows和Linux开发环境,建立交叉编译环境,并进行了测试。Windows平台的配置包括FTP客户端以及DNW和Source Insight的软件配置。在Linux开发环境的配置过程中,进行了网络服务、VMware Tools、共享文件、FTP服务端、root用户登录以及全屏显示等配置。 根据嵌入式DVR项目的具体要求,结合内核的编译原理,,设计了SIL3114驱动代码在μClinux不同版本之间移植的流程图。依据流程图,SIL3114驱动代码的移植主要分三步来完成:首先,实现基于源内核环境下SIL3114驱动代码的动态编译;然后,实现基于目标内核环境下SIL3114驱动代码的动态编译;最后,根据静态编译原理,将SIL3114的驱动代码静态编译到目标内核,成功生成二进制内核可执行文件linux.bin。 在测试过程中,进行了启动代码ARMboot的分析,确定如何支持SATA硬盘控制器。然后,利用H-JTAG工具将ARMboot、目标内核二进制文件以及文件系统烧入Flash中,实现了理论分析与测试。 采用上述方法将μClinux2.4.27内核中SATA硬盘控制器SIL3114的驱动移植到μClinux2.4.17中,实现了驱动移植,可以明显提高效率,缩短开发周期。本文所介绍的驱动移植方法,也可以为那些不熟悉内核编码规则以及具体硬件工作原理的开发人员,提供一种有效的驱动移植途径。
[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.
【学位授予单位】:南华大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP333.35

【参考文献】

相关期刊论文 前3条

1 黄勋;唐慧强;;嵌入式平台ARM-uClinux的构建与应用开发[J];武汉理工大学学报(交通科学与工程版);2006年01期

2 章立;徐立鸿;姜磊;陈良军;;嵌入式数字视频录像机GUI系统的设计与实现[J];微电子学与计算机;2006年02期

3 杨瑞亚,肖璋;嵌入式uCLinux内核启动过程分析与设计[J];微计算机信息;2005年13期



本文编号:1445984

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1445984.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户8bef5***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com