Implemeting Block Device Driver for Real Time

Implemeting Block Device Driver for Real Time

IMPLEMETING BLOCK DEVICE DRIVER FOR REAL TIME OPERATING SYSTEM DISSERTATION-II Submitted in partial fulfilment of the Requirement of the award of Degree of MASTER OF TECHNOLOGY IN ELECTRONICS AND ELECTRICAL ENGINEERING (EMBEDDED SYSTEM) Submitted by GEETIKA Registration No: 11501196 Under the Guidance of MR. KRANTHI KUMAR PULLURI School of Electronics and Electrical Engineering Lovely Professional University Punjab APRIL-2017 TOPIC APPROVAL PERFORMA School of Electronics and Electrical Engineering Program : P175::M.Tech. (Electronics and Communication Engineering) [Full Time] COURSE CODE : ECE521 REGULAR/BACKLOG : Regular GROUP NUMBER : EEERGD0205 Supervisor Name : Kranthi Kumar Pulluri UID : 14907 Designation : Assistant Professor Qualification : ________________________ Research Experience : ________________________ SR.NO. NAME OF STUDENT REGISTRATION NO BATCH SECTION CONTACT NUMBER 1 Geetika 11501196 2015 E1514 08556036511 SPECIALIZATION AREA : Embedded Systems Supervisor Signature: ___________________ PROPOSED TOPIC : Design of Device Driver using RTOS. Qualitative Assessment of Proposed Topic by PAC Sr.No. Parameter Rating (out of 10) 1 Project Novelty: Potential of the project to create new knowledge 7.00 2 Project Feasibility: Project can be timely carried out in-house with low-cost and available resources in 7.33 the University by the students. 3 Project Academic Inputs: Project topic is relevant and makes extensive use of academic inputs in UG 7.33 program and serves as a culminating effort for core study area of the degree program. 4 Project Supervision: Project supervisor’s is technically competent to guide students, resolve any issues, 7.33 and impart necessary skills. 5 Social Applicability: Project work intends to solve a practical problem. 8.00 6 Future Scope: Project has potential to become basis of future research work, publication or patent. 7.67 PAC Committee Members PAC Member 1 Name: Anshul Mahajan UID: 11495 Recommended (Y/N): Yes PAC Member 2 Name: Dushyant Kumar Singh UID: 13367 Recommended (Y/N): Yes PAC Member 3 Name: Cherry Bhargava UID: 12047 Recommended (Y/N): NA PAC Member 4 Name: Anshul Mahajan UID: 11495 Recommended (Y/N): Yes DAA Nominee Name: Manie Kansal UID: 15692 Recommended (Y/N): NA Final Topic Approved by PAC: Design of Device Driver using RTOS. Overall Remarks: Approved PAC CHAIRPERSON Name: 11211::Prof. Bhupinder Verma Approval Date: 15 Oct 2016 4/28/2017 1:28:19 PM CANDIDATE'S DECLARATION I Geetika, student of M.tech (Electronics and Electrical Engineering) under school of Electronics and Electrical Engineering of Lovely Professional University, Punjab, hereby declare that all the information furnished in this dissertation report is an authentic record of my own work carried out under the supervision of “Mr. Kranthi Kumar Pulluri” Assistant Professor, School of Electronics and Electrical Engineering. The matter presented in this dissertation has not been submitted to Lovely Professional University or to any other university or institute for the award of any degree. Signature of the Student Reg. No. 11501196 Date: This is to certify that the above statement made by the candidate is correct to the best of my knowledge. Signature of the Supervisor The M.tech Viva-Voce Examination of (Dissertation-II) has been held on __________ and found satisfactory/Not satisfactory. Signature of the Internal Examiner Signature of the External Examiner i AСKNOWLEDGEMENT I would like to express my sincere gratitude to my mentor “Mr. Kranthi Kumar Pulluri” Assistant Professor for her guidance, encouragement, and support throughout the course of this work. It was an invaluable learning experience for me to be one of her students. From her, I have gained not only extensive knowledge but also a sincere research attitude. I express my gratitude to Mr. Kranthi Kumar Pulluri (Assistant Professor), of Electronics and Electrical Engineering for his invaluable suggestions and constant encouragement all through the research work. My thanks are extended to my friends in “Embedded System” who built an academic and friendly research environment that made my study at Lovely Professional University, Phagwara most memorable and fruitful. I would also like to acknowledge the entire teaching and non-teaching staff of Electronics and Electrical Department for establishing a working environment and for сonstruсtive discussions. Finally, I am always indebted to all my family members especially my parents, for their endless love and blessings. NAME: GEETIKA REG. NO: 11501196 ii СERTIFIСATE This is to certify that the declaration statement made by this student is сorreсt to the best of my knowledge and belief. She is doing Dissertation-II work under my guidance and supervision. The present work is the result of their original investigation, effort, and study. No part of the work has ever been submitted for any other degree at any University. The Dissertation-II work is fit for the submission and partial fulfilment of the conditions for the award of M.Teсh degree in Electronics and Electrical Engineering from Lovely Professional University, Phagwara. Signature and Name of the Mentor: Designation: School of Electronics & Electrical Engineering Lovely Professional University Phagwara, Punjab Date: iii ABSTRACT In this we review and discuss the implementation of block device driver using real time operating system. Real-time systems play a considerable role in our society, and they cover a spectrum from the very simple to the very complex. Examples of current real-time systems include the control of domestic appliances like washing machines and televisions, the control of automobile engines, telecommunication switching systems, military command and control systems, industrial process control, flight control systems, and space shuttle and aircraft avionics. All of these involve gathering data from the environment, processing of gathered data, and providing timely response. A concept of time is the distinguishing issue between real-time and non-real-time systems. When a usual design goal for non-real-time systems is to maximize system's throughput, the goal for real-time system design is to guarantee, that all tasks are processed within a given time. The taxonomy of time introduces special aspects for real-time system research. All the domestic systems that we use in the society are real-time systems and these follow timeliness. Real-time Operating system is to be designed for these real-time systems. These systems get the external inputs and process these into output with time constraints. If the timeliness is not maintained, then the system is said to be failure. As a programmer, you are able to make your own choices about your driver, and choose an acceptable trade-off between the programming time required and the flexibility of the result. Though it may appear strange to say that a driver is “flexible,” we like this word because it emphasizes that the role of a device driver is providing mechanism, not policy. And there are three types of time constraints i) Hard ii) Soft iii) Firm. Real-time Programme is p and it gets inputs in every t interval of time and event requires c computational time. Dead line for completing the computation is D. Predictability is a main concept in real-time system. Design issues in Real-time system: All the behaviour of the system must be predictable. To achieve this all the components must be time bounded. All the inputs are received by the systems and processed for outputs within a specified time else the system results in failure. Real-time behaviour is mandatory while designing a critical safety system. iv LIST OF FIGURES Figure No Figure Name Page No 1.1 Real time operating system 2 1.2 Block diagram of RTOS 5 1.3 Classification of RTOS 6 1.4 Architecture of RTOS 8 1.5 Real time KERNEL 11 1.6 Monolithic Kernel 13 1.7 Microkernel 16 1.8 RTOS Kernel Serivces 16 1.9 States Transition 19 5.1 Device Driver Interface 29 5.2 Principle interface between a device driver 29 and Linux kernel 5.3 Buffer cache Block Device request 32 5.4 Linked List of Disks 35 7.1 Module inserted 44 7.2 List of inserted modules 45 7.3 Sbd module inserted 45 7.4 Format the drive 46 7.5 Name the drive 46 7.6 Mount the Drive 47 7.7 New Drive Created 47 7.8 Unmount the drive 48 7.9 Removable module 49 7.10 Check Module using cat /proc/devices 49 v 7.11 Module removed 50 7.12 Drive removed 50 7.13 Permanent Drive Created 51 7.14 User and Group that can access the drive is 52 geetika 7.15 Make group drivenew 53 7.16 Add users to group 54 7.17 Provide accessibility and permission 55 vi CONTENTS CANDIDATE'S DECLARATION I AСKNOWLEDGEMENT II СERTIFIСATE III ABSTRACT IV LIST OF FIGURES V-VI CHAPTER-1 INTRODUCTION .................................................................................... (1-21) 1.1 Evolution of real time operating system …………………………………………… 1 1.2 Method ……………………………………………………………………………... 2 1.3 Similarities between rtos and gpos………………………………………………….. 3 1.4 Difference between rtos and gpos……………………………………………………3 1.5 What is rtos………………………………………………………………………….. 3 1.6 Why RTOS …………………………………………………………………………..4 1.7 Classification of RTOS …………………………………………………………….. 5 1.8 Misconceptions of RTOS…………………………………………………………… 6 1.9 Features of RTOS …………………………………………………………………… 7 1.10 RTOS architecture …………………………………………………………………... 8 1.11 Kernel……………………………………………………………………………....... 8 1.12 Task management ………………………………………………………………........18 1.13 Building modern rtos ………………………………………………………………...19 1.13.1 Strategic decision……………………………………………………………..20

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    68 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us