基于Linux的USB集成下载工具的设计和实现
2014-12-13聂涛
聂涛
摘 要: 针对嵌入式软件开发采用交叉开发模型,需要频繁把程序从宿主机下载到目标机的要求,研究设计基于Linux的USB集成下载工具。根据USB协议,开发Linux系统的USB驱动模块,基于USB驱动模块,设计出Linux文件下载程序。该工具运行于Linux系统,并利用TQ2440,OK6410,TQ210开发板进行测试。测试结果表明,该工具可以支持2440系列、6410系列、210系列的ARM开发板,并具有很好的扩展性和移植性。
关键词: USB驱动; 下载工具; Linux; ARM
中图分类号: TN915?34;TP311.1 文献标识码: A 文章编号: 1004?373X(2014)23?0087?04
Design and implementation of USB download tool based on Linux
NIE Tao
(School of Physical Electronics, University of Electronic Science and Technology of China, Chengdu 610054, China )
Abstract : The development of embedded system needs frequent software download and update, so the USB integrated download tool based on the Linux is designed. The USB driver module of Linux system was developed based on the USB protocol, and then the download process for Linux files was designed based on the USB driver module. The tool was tested on TQ2440, OK6410 and TQ210 embedded development platforms. The test results show that it can support the embedded development platforms of 2440 series, 6410 series and 210 series. It has perfect expansibility and portability.
Keywords: USB driver; download tool; Linux; ARM
0 引 言
随着数字信息技术和网络技术不断的发展,嵌入式系统以体积小、功耗低、可靠性高、性能强以及基于面向具体行业应用等突出特点, 目前已经广泛地渗透到国防、农业、消费电子、教育、信息家电、工业控制、网络通信等各个领域,对于各行各业的产品升级、技术提升、生产效率提高等方面都起到了非常重要的推动作用[1]。目前,嵌入式处理器的类型主要有ARM、MIPS、SC?400、PowerPC等系列产品。其中,采用ARM核的嵌入式处理器已广泛应用于消费类电子产品、工业控制、网络通信系统以及无线系统的各个领域。ARM核嵌入式处理器约占嵌入式处理器75%以上的市场份额,对于ARM芯片的嵌入式系统开发一般采取交叉开发模型。所谓交叉开发模型就是在嵌入式开发过程中有宿主机和目标机的角色之分,宿主机是编写、编译、链接嵌入式软件的计算机,目标机则是运行嵌入式软件的硬件平台。嵌入式系统开发过程中,需要频繁的从宿主机上下载程序来更新目标机的程序,因此需要简单、高效、方便的下载方式。……
