Evaluation of Open Source Operating Systems for Safety-Critical Applications Master’S Thesis in Embedded Electronic System Design

Evaluation of Open Source Operating Systems for Safety-Critical Applications Master’S Thesis in Embedded Electronic System Design

Evaluation of open source operating systems for safety-critical applications Master’s thesis in Embedded Electronic System Design Petter Sainio Berntsson Department of Computer Science and Engineering CHALMERS UNIVERSITY OF TECHNOLOGY UNIVERSITY OF GOTHENBURG Gothenburg, Sweden 2017 MASTER’S THESIS 2017 Evaluation of open source operating systems for Safety-critical applications Petter Sainio Berntsson Department of Computer Science and Engineering Chalmers University of Technology University of Gothenburg Gothenburg, Sweden 2017 Evaluation of open source operating systems for safety-critical applications Petter Sainio Berntsson © Petter Sainio Berntsson, 2017 Examiner: Per Larsson-Edefors Chalmers University of Technology Department of Computer Science and Engineering Academic supervisor: Jan Jonsson Chalmers University of Technology Department of Computer Science and Engineering Industrial supervisors: Lars Strandén RISE Research Institutes of Sweden Dependable Systems Fredrik Warg RISE Research Institutes of Sweden Dependable Systems Master’s Thesis 2017 Department of Computer Science and Engineering Chalmers University of Technology University of Gothenburg SE-412 96 Gothenburg Telephone +46(0) 31 772 1000 Abstract Today many embedded applications will have to handle multitasking with real-time time constraints and the solution for handling multitasking is to use a real-time operating system for scheduling and managing the real-time tasks. There are many different open source real-time operating systems available and the use of open source software for safety-critical applications is considered highly interesting by industries such as medical, aerospace and automotive as it enables a shorter time to market and lower development costs. If one would like to use open source software in a safety-critical context one would have to provide evidence that the software being used fulfills the requirement put forth by the industry specific standard for functional safety, such as the ISO 26262 standard for the automotive industry. However, the standards for functional safety do not provide a clear method for how one would go about certifying open source software. Therefore, in this thesis we present identified important characteristics that can be used for comparing the suitability of open source based real-time operating systems for use in safety-critical applications together with a proposed outline for a methodology that can be used for certifying an open source real-time operating system. A case study has been done where we compared two open source operating systems for small microcontrollers with the previously mentioned characteristics in order to see which of the two is most suitable for use in safety- critical applications. The most suitable candidate is then assessed in order to see to what degree it can adhere with the requirements put forth in the widely used functional safety standards IEC 61508 and ISO 26262. Keywords: Functional safety, open source software, real-time operating systems, software quality Contents 1. Introduction .............................................................................................................................................................. 1 1.1. Background ........................................................................................................................................................................ 1 1.2. Purpose ................................................................................................................................................................................ 2 1.3. Scope and Limitations .................................................................................................................................................... 2 1.4. Document structure ......................................................................................................................................................... 3 2. Project Workflow ................................................................................................................................................... 4 2.1. Literature Survey ............................................................................................................................................................. 4 2.2. IEC 61508 Compliance .................................................................................................................................................. 4 2.3. ISO 26262 Compliance .................................................................................................................................................. 4 2.4. Quality Assessment ......................................................................................................................................................... 4 2.5. Case Study.......................................................................................................................................................................... 5 3. Technical Background .......................................................................................................................................... 6 3.1. Functional Safety ............................................................................................................................................................. 6 3.1.1. IEC 61508...................................................................................................................................................................... 7 3.1.2. ISO 26262...................................................................................................................................................................... 9 3.2. Open Source Software ................................................................................................................................................. 11 3.2.1. Support ........................................................................................................................................................................ 12 3.2.2. Maintainability .......................................................................................................................................................... 12 3.3. Software Quality ........................................................................................................................................................... 13 3.3.1. Capgemini Open Source Maturity Model ........................................................................................................ 15 3.3.2. QualOSS ..................................................................................................................................................................... 16 3.4. Real-Time Operating System .................................................................................................................................... 17 3.4.1. Scheduling .................................................................................................................................................................. 17 3.4.2. Synchronization ........................................................................................................................................................ 17 3.4.2.1. Deadlock ................................................................................................................................................................ 18 3.5. MISRA C ......................................................................................................................................................................... 19 3.6. Software Metrics ........................................................................................................................................................... 20 4. Method for OSS Assessment ............................................................................................................................ 21 4.1. Safety Requirements for Operating Systems ....................................................................................................... 21 4.2. Characteristics for Comparison ................................................................................................................................ 24 4.3. Methodology for Certification .................................................................................................................................. 25 5. Case Study: Evaluation of OSS RTOS .......................................................................................................... 27 5.1. ChibiOS ........................................................................................................................................................................... 27 5.2. ContikiOS ........................................................................................................................................................................ 28 5.3. Quality Assessment of OSS ....................................................................................................................................... 28 5.4. Comparison of RTOS Characteristics .................................................................................................................... 31 5.5. Assessment of ChibiOS .............................................................................................................................................. 31 5.5.1. IEC

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    60 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