The Design and Implementation of EZ-USB Device Driver on Linux System
- Author
- LiuKe
- Advisor
- LeiYueMing
- School
- Chongqing University
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 422
- Citations
- 0
Abstract
Linux system is an outstanding open-source operating system, and it takes up a high positon in contemporary development of embedded products because of the open-source and transportation.As a new-type computer bus, Universal Serial Bus (USB) has already become a part of peripheral equipment of PC. Cypress’s EZ-USB FX2 is the world’s first USB 2.0 integrated microcontroller. By integrating the USB 2.0 transceiver, SIE, enhanced 8051 microcontroller, and a programmable peripheral interface in a single chip, Cypress has created a very costeffective solution that provides superior time-to-market advantages. The Cypress Smart SIE handles most of the USB1.1 and USB2.0 protocols in hardware, thus it decreases development time and ensures USB’s compatibility.Because Cypress corporation don’t provide the EZ-USB FX2 device driver on linux system, so our subject is that we need to design and implement the EZ-USB FX2 device driver on linux system, and provide a identical firmware download interface for a application named Medical Image Conllecting System which had been built on windows system. Firstly, this thesis analyse the architecture of EZ-USB FX2 device and the driver program model of linux 2.6 kernel, then give a blue print of EZ-USB FX2 device driver and identical interface, and take it into implementation.These design and implementation of my subject involve three aspects included Linux device driver, firmware download and indentical interface. In implementation of Linux device driver, I take the linux kernel source which’s version is 2.6.20 to surpport the development of device driver as source tree. 2.6.20 version kernel is not only a stable version but also provide some new traits for developers to upgrade efficiency. The firmware download utility which invokes the device driver to finish the firmware download task is built in user space, this design not only minimize the cost of kernel resource but also the difficulty of debugging. The interface of firmware download is identical to the interface of Medical Image Conllecting System built on windowns, moreover, the function named DeviceIoControl which is in charge of communication between host and device, and these works is a base of transportation of whole application.In the design of Linux device driver and interface, i have used Unified Modeling Language (UML), obeying basic software engineering rules. Finally, some difficulties and insufficiency are considered, and prospect the Linux devicer driver program model and USB On-The-Go (OTG).
Table of contents
Abstract 3-4
ABSTRACT 4-8
1 Introduction 8-12
1.1 USB technology development status 8 <br / > 1.2 USB controller chip's current development status 8-9
1.3 project background 9
1.4 research significance of this topic 9-11
1.5 main work 11-12
2 Technical Background 12-21
2.1 EZ-USB FX2 Features Summary 12-17
2.2 USB Technology Overview 17-21
3 kernel preparations 21-25
3.1 kernel environment and development tools to prepare the establishment of 21-25
3.1.1 in Linux kernel space and user space 21-22
3.1.2 kernel compile preparation before 22-23
3.1.3 kernel configuration, compile and install 23-25 ??
4 EZ-USB FX2 driver design and implementation 25-51
4.1 LINUX driver model and important data structures 25-32
4.1.1 kobject data structure 25-27
4.1.2 kobj_type data structure 27
4.1.3 kset data structure 27-28
4.1 .4 subsystem data structure 28-29
4.1.5 Description of the system bus 29
4.1.6 device data structure 29-30
4.1.7 driver data structures 30-31
4.1.8 Linux driver model summary 31-32
4.2 LINUX USB device driver framework design 32-51
4.2.1 Linux USB driver architecture 32-33
4.2.2 Linux USB device driver in the core data structure 33-35
4.2.3 EZ-USB FX2 device structure 35-38
4.2.4 driver registration and cancellation of 38-40
4.2.5 Detection and disconnect function 40-41
4.2.6 device file read and write 41-51
5 firmware download and interface package 51-58
5.1 EZ-USB FX2 memory distribution 51
5.2 firmware download process 51-54
5.3 download function used CTRL_MSG 54-56
5.4 DEVICEIOCONTROL function implementation 56-58
6 Summary and Outlook 58-61
6.1 Work Summary 58-59
6.2 improve and perfect 59
6.3 USB technology outlook 59-61
Thanks 61-62
References 62-64
Appendix 64
Related dissertations
- Real-time Operating System Customization of Linux and Development of Device Driver
- Research and Design of Online Monitoring System of Metal Sawing Machine Saw Blade Displacement
- Design of Embedded 8 Channels High Speed Data Acquisition System
- Design and implementation of remote control system based on Embedded Intelligent Home Furnishing
- Analysis and reliability of Linux device driver
- Research and Implementation of User Mode Driver for Network Device Based on Embedded Linux
- Design and Implementation of Driver Module Based on Android System
- The System Migration and Development of Embeded Linux Based on MagicARM2410
- Design and Implementation of Software System of Industrial Controlling Display Device
- The Design and Implementation of EZ-USB Device Driver in Windows CE
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Research and Design of Embedded Building Security System
- The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Design of Security Surveillance System Based on Intelligent Video Analysis
- Study on Embedded Data Acquisition System Application