Research and Application about USB Mass Storage Device Driver under Embedded Linux
- Author
- WangPeng
- Advisor
- XiongCongCong
- School
- Tianjin University of Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 36
- Citations
- 0
- USB Storage Device
- Gadget Driver Architecture
- Mass Storage GadgetDriver
- Access Control
- Information Security
Abstract
With advantages of high-speed,plug and play,easy to expand,etc., USB has becoming an essential interface to various system platforms.For PC has always been used as USB host device in the modle,the USB drive based on PC platform developed well,it made the drive to be used universal. Also,with various forms of USB device,people want to use the embedded devices as a USB connection. As the embedded device are far more than PC both in numbers and species,so there is great significance and commercial value to study USB driver.On the other hand,the safety issues brought with using embedded devices, are also a hot topic in the embedded field.In this paper,we studied the mass storage device driver of USB under embedded Linux (Mass Storage Gadget),aims to address the problems about designing driver and security issues while used to be a side-device.Firstly,studied the designing of Mass Storage Gadget driver,workflow and features thought analysising the key technology of Linux driver,USB bus protocol and the Linux USB subsystem architecture. From that we see,Mass Storage Gadget driver exchanges with USB host device using device files,making embedded platform functions as a storage device,the data transfertion between USB host and peripheral device need to be dealed with by the embedded platform. It posed a method for access control to USB storage device,allowing users who need to be authorized to access USB storage devices.The main work is to study the design methods of Mass Storage Gadget driver,and to solve the safety problem while using USB device.The results about the research have some useful references and values thought designing drivers and thinking of safety issues.
Table of contents
Abstract 4-5
ABSTRACT 5-8
1 Introduction 8-10
1.1 Background and Significance subject 8 <br / > Research content and structure of 1.2 papers 8-10
2 Linux operating system device drivers 10-18
2.1 Linux device driver role classification 10
2.2 Linux device drivers 10-11
2.2.1 character device 10
2.2.2 block Device 10- 11
2.2.3 network Equipment 11
2.3 Linux device driver key technology 11-18
2.3.1 memory and I / O port 11-12
2.3.2 clock 12-13
2.3.3 interrupt handling 13-15
2.3.4 kernel concurrency control 15-16
2.3.5 blocking and nonblocking I / O analysis 16-18
3 USB mass storage device driver 18-36
3.1 USB protocol research and analysis 18-23
3.1.1 USB topology 18-19
3.1.2 transfer Mode 19
3.1.3 USB device Architecture enumeration 19-22
3.1.4 USB devices 22
architecture 3.1.5 Linux USB subsystem 22-23
3.2 Bulk-Only transport Protocol 23-25 ??
3.3 Linux SCSI subsystem 25-28
3.3.1 SCSI systems constitute 25
3.3.2 SCSI command 25-27
3.3.3 Linux SCSI subsystem layered architecture 27-28
3.4 Linux in a USB mass storage device 28-30
3.4.1 USB mass Storage device Class 28-29
3.4.2 USB mass storage device works 29-30 <br / > 3.5 Linux USB Gadget subsystem research and analysis 30-33
3.5.1 Linux USB Gadget subsystem 30-31
3.5.2 Linux Gadget related structures 31-33
3.6 Mass Storage Gadget driver 33-36
build four embedded Linux development platform 36-43
hardware platform design 4.1 36-37
4.1.1 ARM S3C2410 Profile 36
4.1.2 S3C2410 processor USB port analysis 36-37
4.2 build cross-compiler environment 37
4.3 Linux system migration 37-43
4.3.1 kernel configuration and compilation 37-38
4.3.2 NandFlash address space is divided 38-39
4.3.3 build root file system 39-40
4.3.4 USB drive migration ( to achieve development board mounted as U disk ) 40- 43
5 USB mass storage device security policy design and implementation of 43-53
5.1 access Control Mechanism Research and Design 43-45
5.1.1 access Control strategy 43-45
5.1.2 USB storage device access control mechanism design plus 45
5.2 USB storage device to decrypt 45-47
5.2 .1 RC4 algorithm 46
5.2.2 encryption module design 46-47
5.3 user authentication design 47-50
5.3.1 hardware interrupt 48-49
5.3.2 call_usermodehelper () function 49-50
5.3.3 module reference 50
5.4 system implementation 50-53
5.4.1 software architecture design achieve 50-51
5.4.2 authentication Module 51-52
5.4.3 certification application design (Qt) 52-53
6 Conclusion 53-54
7 prospect 54-55
8 References 55-61
study published during the nine Masters thesis 61-62
10 Acknowledgements 62
Related dissertations
- Research on Usage Control Model in Dynamic Openly Systems
- Research on Security Control of File System
- Research and Achievement of Service-based Single Identity Access Control System
- Information Security Technology Research in B2B E-commerce Application System
- The model of collaborative project access control in networked manufacturing environment
- Researches on Authentication Protocals and Applications in Network Security Systems
- Research on Attribute Mark Based Access Control Model
- The Research of Access Control Model Based on EUCON
- The Key Technologies Research of Ubiquitous Learning System Based on CMS
- Access Control Mechanisms in Power System Based on Unified Platform: Research and Implementation
- Research on Key Issues in Network-Centric Geometric Modeling
- Study on Attribute Restricted Delegation Model in Role Based Access Control (RBAC)
- Research on the Issues of Information System Security Architecture for Information Operation
- Research on the Information Security Management of Commercial Bank Branches
- Study of Information Security Risks Control in IT Outsourcing about a Insurance Company
- Study on Information Security Risk Management System of Our Banks
- Research of the Information Security Management Strategy in A Company
- ISO27001Information Security Management System Diagnosis and Analysis for Boshi Company
- Design and Implementation of A Network Access Monitoring System for User
- Design and Implementation of Secure Industrial Ethernet Based on Cortex-A8