Based on the Linux USB 2.0 OTG IP core host -driven research and
- Author
- ZhuYu
- Advisor
- LinShuiSheng
- School
- University of Electronic Science and Technology
- Major
- Communication and Information System
- Classification
- TP334.7 Interface devices,plug-in
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 144
- Citations
- 1
Abstract
USB is widely used in wired communication area, but the USB interface does not support direct communication between two peripherals generally. With the release of OTG supplement, this problem is resolved. The USB OTG dual device which support OTG supplement can be either host or device, so the direct communication between two dual devices can be achieved. This paper introduces USB2.0 OTG IP core based on ARM. And it is mainly about the design of the Host Controller Driver based on Linux.The USB2.0 OTG IP core supports USB2.0 specification, OTG supplement, and UTMI+ specification. This IP core is located between the memory controller of ARM and the PHY which designed to communicate with USB device. The USB2.0 OTG IP core mainly includes OTG Controller, Enhanced Host Controller, Open Host Controller and Device Controller. This IP core has following specialties. First this IP contains OTG controller, and it contains both full-speed and high-speed host controller which is a unique design. Second this IP, which does not have the bus control capability, is independent with MCU, and data transfer between its buffer and MCU is achieved through the interrupt which initiated by the IP core.USB Host function is implemented by USB Host Controller and USB Host Driver. USB Host Driver is complex software architecture. It contains several layers which are USB Device Class Driver, USB core, and Host Controller Driver. HCD, which is researched deeply in this paper, is the communication channel between USB driver above and host controller bellow. HCD mainly manages the HC, data transfer, the USB device, and so on.Before developing of the USB HCD, the driver designer has to analyze the USB protocol stack integrated in Linux operating system, and then build USB driver architecture. Then the driver designer can implement USB full-speed and high speed HCD based on Linux according to the IP hardware design and the interface between the IP and ARM. Because of the specialties of the IP design, driver designer should consider the route switch between the high-speed and the full speed controller, access to shared buffer, and the mode of ARM accessing the IP core as a slave. Finally run this driver as a module in Linux kernel on the ARM test board and test.This IP core implement the Mass Storage function of the full-speed and high-speed host controller, and can switch between them successfully.
Table of contents
Abstract 4-6
ABSTRACT 6-15
Chapter Introduction 15-19
1.1 USB Development and subject background 15-17
1.2 thesis subject design goals 17
The main work of
1.3 I 17
1.4 Thesis structure arrangements 17-19
embedded systems and Linux device driver development 19-28
2.1 embedded Linux developers Overview 19-24
2.1.1 embedded systems definition and characteristics of 20-21
2.1.2 embedded technology development history 21-22
2.1.3 Embedded Linux advantage 22-23
2.1.4 embedded Linux kernel functions divided 23-24
2.2 Device Driver Overview 24-26
2.2.1 device driver in the operating system 24-26
2.2.2 Linux driver. 26
2.3 Embedded Linux driver development process 26-27
2.4 This chapter summarizes the 27-28
Chapter III of ARM-based embedded system hardware analysis and interface design 28-35
3.1 S3C2410 embedded system introduced 28
3.2 system hardware design 28-29
3.3 USB 2.0 OTG IP nuclear hardware analysis 29-32
3.3.1 IP core systems framework 29-31
3.3.2 IP core systems routing switching mechanism 31-32
3.4 IP core and ARM system interface design 32-34
3.4.1 Chip Select signal interface design 33
3.4.2 address interface design 33
3.4.3 interrupt interface design 33-34
3.5 This chapter summarizes the 34-35
USB interface protocol and the Linux USB protocol stack analysis 35-55
4.1 USB 2.0 OTG interface protocol of the study 35-44
4.1.1 USB system structure 35-37
4.1.2 USB transfer type 37-38
4.1.3 OTG supplement specification 38
4.1.4 USB host system 38-39
4.1.5 OHCI protocol specification 39-42
4.1.6 EHCI protocol specification 42-44
4.2 Linux2.6 the USB host protocol stack analysis 44-54
4.2.1 Mass Storage driver layer analysis 44-45
4.2.2 USBD driver layer analysis 45-53
4.2.3 HCD driver layer analysis 53
4.2.4 Linux USB driver protocol stack working mechanism 53-54
4.3 This chapter summarizes the 54-55
the OTG USB 2.0 IP core host controller driver design and implementation 55-79
5.1, USB 2.0 OTG IP core host control-driven design ideas 55-57
5.2 full speed host controller driver data structure design 57-59
5.2.1 data structures otgip_ohc achieve 57-59
5.2.2 data structures otgip_ohc_ep achieve 59
5.3 full speed host Registry Platform the equipment drive (platform_driver,) to achieve 59-64
5.3.1 full speed host platform device registration and resources to apply 60-62
5.3.2 full speed host platform devices access to resources and the destruction of 62-64
5.4 full speed host interrupt service function (otgip_ohc_irq,) 64-65
5.5 Root Hub driver to achieve 65-68
5.5.1 otgip_ohc_hub_status_data function is 65-66
5.5.2 otgip_ohc_hub_control function to achieve 66-67
5.5.3 Root driver to run the process 67-68
5.6 full speed host controller driver to achieve 68-69
5.6.1 otgip_ohc_start function to achieve 68
5.6.2 otgip_ohc_stop function to achieve 68-69
5.6.3 otgip_ohc_reset function to achieve 69
5.7 Full-Speed ??OHCI driver to achieve 69-76
5.7.1 OHCI driver data transfer analysis 69-71
5.7.2 OHCI driver function call 71-72
5.7.3 otgip_ohc_urb_enqueue function to achieve 72-73
5.7.4 otgip_ohc_urb_dequeue function to achieve 73
5.7.5 otgip_ohc_start_atl_transfers function implementation 73-74
5.7.6 otgip_ohc_finish_atl_transfers function implementation 74-75
5.7.7 otgip_ohc_finish_request function to achieve 75-76
5.8 high-speed host-driven design 76-77
5.8.1 Express Root the Hub driver design considerations 76-77
5.8.2 EHCI driver design considerations 77
5.9 This chapter summarizes the 77-79
Chapter VI host controller driver debugging 79-86
6.1 Root Hub driver debugging 79-81
6.2 the OHCI driver debugging 81-83
6.3 character device drivers, embedded debugging method 83-85
6.4 This chapter summarizes the 85-86
Chapter VII of the test based on the FPGA USB 2.0 OTG IP core host driver 86-98
7.1 system hardware test platform to build 86-89
7.2 system software test platform to build 89-90
7.3 host driver test demonstrates 90-96
7.4 system test results analysis 96-97
7.4.1 full speed host controller and the drive test results 96-97
7.4.2 high-speed host controller and the drive test results 97
7.5 This chapter summarizes the 97-98
Chapter VIII Summary and Outlook 98-100
8.1 summarize 98
8.2 Looking 98-100
thank 100-101
References 101-103
resume, academic papers published in the school during the research and 103-104
Related dissertations
- Multi functional comprehensive test instrument based on Virtual Instrument Technology
- Embedded Fingerprint Identification System and Storage Technology
- The Designand Realization of Embedded USB Mass Storage System
- Research and Implementation of Embedded Remote Monitoring System Based on ARM
- CANopen gate winding hoist machine experiment platform based on design and research
- The Designand Implement of Fingerprint Access Controlsystem Based on ARM and Linux
- Linux USB OTG IP - based nuclear device driver development technology
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Remote Monitor System for Oil Wells Working Condition Based on GPRS
- Engine Room Monitoring System Based on the Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Research and Design of Embedded Graphic Remote Monitor Terminal
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Design of Remote Monitoring System Based on ARM
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Study on Embedded Data Acquisition System Application
- The Study of Physiological Parameters Monitoring and Remote Wireless Alarming System Based on ARM
- Study on ARM-based Embedded Monitoring and Measuring System of Refrigerated Vehicle for Fresh-keeping of Fruit and Vegetable
- Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM