2.embedded operating system.ppt

Upload: tamnguyen29842764

Post on 20-Feb-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 2.Embedded Operating System.ppt

    1/31

    Introduction to Embedded SoftwareIntroduction to Embedded Software

    DevelopmentDevelopment

    School of software EngineeringSchool of software Engineering

    20052005

    2.2. Embedded Operating SystemEmbedded Operating System

  • 7/24/2019 2.Embedded Operating System.ppt

    2/31

    gendagenda

    !hat is an Embedded OS"!hat is an Embedded OS"

    Embedded system OSEmbedded system OS !indows Embedded!indows Embedded

    #$!or%s#$!or%s

    Embedded &inu$Embedded &inu$

  • 7/24/2019 2.Embedded Operating System.ppt

    3/31

    gendagenda

    !hat is an Embedded OS"!hat is an Embedded OS"

    Embedded system OSEmbedded system OS !indows Embedded!indows Embedded

    #$!or%s#$!or%s

    Embedded &inu$Embedded &inu$

  • 7/24/2019 2.Embedded Operating System.ppt

    4/31

    Operating System 'lavorsOperating System 'lavors

    Des%topDes%top !indows ()*+ *, -ome+ *,2000 ,ro/!indows ()*+ *, -ome+ *,2000 ,ro/

    acac

    ServerServer !indows (*,2000 Server 1dvanced Server/!indows (*,2000 Server 1dvanced Server/

    ni$ #arietiesni$ #arieties

    EmbeddedEmbedded anyany

  • 7/24/2019 2.Embedded Operating System.ppt

    5/31

    !hat is an Embedded OS"!hat is an Embedded OS"

    n 3embedded system3 is any computern 3embedded system3 is any computersystem or computing device that performs asystem or computing device that performs adedicated function or is designed for usededicated function or is designed for usewith a specific embedded softwarewith a specific embedded software

    application.application.

    Embedded systems may use a 4ObasedEmbedded systems may use a 4Obasedoperating system or they may use a dis%operating system or they may use a dis%

    based system+ li%e a ,6. 7ut an embeddedbased system+ li%e a ,6. 7ut an embeddedsystem is not usable as a commerciallysystem is not usable as a commerciallyviable substitute for general purposeviable substitute for general purposecomputers or devices.computers or devices.

  • 7/24/2019 2.Embedded Operating System.ppt

    6/31

    !hat ma%es a good Embedded!hat ma%es a good EmbeddedOS"OS"

    odularodular ScalableScalable

    6onfigurable6onfigurable

    Small footprintSmall footprint 6, support6, support

    Device driversDevice drivers

    etc+ etc+ etc...etc+ etc+ etc...

  • 7/24/2019 2.Embedded Operating System.ppt

    7/31

    !hat ma%es a good 48OS"!hat ma%es a good 48OS"

    ultithreaded and preemptibleultithreaded and preemptible

    8hread priority has to e$ist because8hread priority has to e$ist becauseno deadline driven OS e$istsno deadline driven OS e$ists

    ust support predictable threadust support predictable threadsynchroni9ation mechanismssynchroni9ation mechanisms

    system of priority inheritance must system of priority inheritance must

    e$iste$ist

  • 7/24/2019 2.Embedded Operating System.ppt

    8/31

    !ho are the Embedded OS!ho are the Embedded OSplayers"players"

    icrosofticrosoft Embedded :8*,Embedded :8*,

    ;;4ealtime< control4ealtime< control

    !indows 6E (6E.:E8/!indows 6E (6E.:E8/ Internet devicesInternet devices

    ,oc%et ,6 2002,oc%et ,6 2002 -andheld ,6=s and ,D=s-andheld ,6=s and ,D=s

    !ind 4iver Systems!ind 4iver Systems #$!or%s#$!or%s

    pSOSpSOS

  • 7/24/2019 2.Embedded Operating System.ppt

    9/31

    !ho are the Embedded OS!ho are the Embedded OSplayers"players"6ommercial Embedded &inu$6ommercial Embedded &inu$

    I4I* Embedded &inu$I4I* Embedded &inu$

    6oollogic 6oollinu$6oollogic 6oollinu$

    6oventive *linu$6oventive *linu$

    Esfia 4ed7lue &inu$Esfia 4ed7lue &inu$

    >?@O ,i99a 7o$ &inu$>?@O ,i99a 7o$ &inu$

    &ineo Embedi$&ineo Embedi$&ynu$!or%s 7lue6at&ynu$!or%s 7lue6at

    onta#ista &inu$onta#ista &inu$

    AAAA

  • 7/24/2019 2.Embedded Operating System.ppt

    10/31

    !ho are the Embedded OS!ho are the Embedded OSplayers"players"Open Source Embedded &inu$Open Source Embedded &inu$

    Embedded Debian ,roBectEmbedded Debian ,roBect

    ETLinux

    uCLinux

    uLinux (muLinux)

  • 7/24/2019 2.Embedded Operating System.ppt

    11/31

    !ho are the Embedded OS!ho are the Embedded OSplayers"players"

    C:* Software SystemsC:* Software SystemsC:*C:*

    ,alm ,D,alm ,D

    ,alm OS,alm OS

    SymbianSymbian

    Symbian OSSymbian OS

    reen -ills Softwarereen -ills Software

    IntegrityIntegrity

    AAAA

  • 7/24/2019 2.Embedded Operating System.ppt

    12/31

    gendagenda

    !hat is an Embedded OS"!hat is an Embedded OS" Embedded system OSEmbedded system OS

    !indows Embedded!indows Embedded

    #$!or%s#$!or%s

    Embedded &inu$Embedded &inu$

  • 7/24/2019 2.Embedded Operating System.ppt

    13/31

    icrosoft obilityicrosoft obility

    ,latforms,latforms

    Increased Functionality

    :oteboo% ,6

    Complex document

    authoring, editing and

    reading

    Keyoard centric at thedes!

    Keyoard and mouse

    input methods

    Full "#ET $rame%or!

    a&ailale

    !indows *,*,E!indows *,*,E

    8ablet ,6

    Complex document

    authoring, editing andacti&e reading

    #ote ta!ing and in!

    annotating

    Keyoard centric at the

    des!, pen ' !eyoard

    a%ay $rom the des!

    Keyoard, mouse plus

    pen, in!, and speechinput methods

    Full "#ET $rame%or!

    preinstalled

    en, in!, hand%riting and

    speech recognition I*s

    !indows 6E!indows 6E

    Smart

    ,ersonal

    ObBects

    +ne%ay

    net%or!

    In$ormation

    consumption

    !indows obile!indows obile

    Smartphone

    In$ormation

    consumption

    rimarily data

    &ie%ing

    Integrated phone

    %ith - Interoperaility

    %ith Exchange

    "#ET Compact

    Frame%or!

    ."#ET moile

    controls

    ,oc%et ,6

    In$ormation

    consumption /ie% and some

    data entry

    Integrated - %ith

    phone

    Interoperaility %ith

    +$$ice, Exchange

    and .0L .er&er

    "#ET CompactFrame%or!

    ."#ET moile

    controls

  • 7/24/2019 2.Embedded Operating System.ppt

    14/31

    !indows Embedded 'amily!indows Embedded 'amily

  • 7/24/2019 2.Embedded Operating System.ppt

    15/31

    gendagenda

    !hat is an Embedded OS"!hat is an Embedded OS" Embedded system OSEmbedded system OS

    !indows Embedded!indows Embedded

    #$!or%s#$!or%s

    Embedded &inu$Embedded &inu$

  • 7/24/2019 2.Embedded Operating System.ppt

    16/31

    #$!o%s#$!o%s

    #$!or%s is a commercial#$!or%s is a commercial hard real timehard real timeoperating system developed by windoperating system developed by windriver systems.river systems.

    8he main idea use monolithic %ernel to8he main idea use monolithic %ernel toschedule user tas%s according to userschedule user tas%s according to userdefined priorities. a$imi9e %erneldefined priorities. a$imi9e %ernel

    timing predictability.timing predictability. ives the users ma$imal control.ives the users ma$imal control.

  • 7/24/2019 2.Embedded Operating System.ppt

    17/31

    #$!o%s#$!o%s

    dedicated real time system+ not dedicated real time system+ notintended as a general purpose OS.intended as a general purpose OS.

    lac%s many modern os features thatlac%s many modern os features thatinterfere with real time performanceinterfere with real time performance(flat memory model+ no paging/.(flat memory model+ no paging/.

  • 7/24/2019 2.Embedded Operating System.ppt

    18/31

    #$!o%s#$!o%s Scheduling is done using a preemptiveScheduling is done using a preemptive

    priority driven approach+ priorities arepriority driven approach+ priorities arechosen arbitrarily by the user (0255/.chosen arbitrarily by the user (0255/.

    ,riorities can be changed by the user,riorities can be changed by the user

    at runtime but this is discouraged.at runtime but this is discouraged. user can loc% a tas% so that it can=t user can loc% a tas% so that it can=t

    be preempted even by higher prioritybe preempted even by higher priority

    tas%s or interrupts.tas%s or interrupts. 8his allows the use of the fi$ed priority8his allows the use of the fi$ed priority

    response time analysis to chec%response time analysis to chec%schedulability offline.schedulability offline.

  • 7/24/2019 2.Embedded Operating System.ppt

    19/31

    #$!o%s#$!o%s

    Is resource sharing aware and has aIs resource sharing aware and has apriority inheritance built in.priority inheritance built in.

    Optimi9ations in implementation of theOptimi9ations in implementation of the

    conte$t switch and the return fromconte$t switch and the return frominterrupts.interrupts.

    8he %ernel never disables :I (non8he %ernel never disables :I (nonmas%able interrupts/ so they aremas%able interrupts/ so they are

    always available to the user.always available to the user.

  • 7/24/2019 2.Embedded Operating System.ppt

    20/31

    #$!o%s limitations#$!o%s limitations &ac%s many modern OS features.&ac%s many modern OS features.

    uaranteeing the deadlines is theuaranteeing the deadlines is theresponsibility of the user at designresponsibility of the user at designtime.time.

    Doesn=t support most modernDoesn=t support most modernapplications and ,Is (only a smallapplications and ,Is (only a smallsubset of ,OSI*/.subset of ,OSI*/.

    Despite the flat memory model dynamicDespite the flat memory model dynamicmemory allocation still cases memorymemory allocation still cases memoryfragmenting+ which increases timingfragmenting+ which increases timingunpredictability.unpredictability.

  • 7/24/2019 2.Embedded Operating System.ppt

    21/31

    #$!o%s limitations#$!o%s limitations

    dedicated and widely used real time dedicated and widely used real timesystem.system.

    Offers the user ma$imal control + butOffers the user ma$imal control + but

    also passes him responsibility for thealso passes him responsibility for thedeadlines.deadlines.

  • 7/24/2019 2.Embedded Operating System.ppt

    22/31

    8ornado FF Development tools8ornado FF Development tools

  • 7/24/2019 2.Embedded Operating System.ppt

    23/31

    D7 FF DebuggerD7 FF Debugger

  • 7/24/2019 2.Embedded Operating System.ppt

    24/31

    !ind#iew!ind#iewFF 8racer and naly9erFF 8racer and naly9er

  • 7/24/2019 2.Embedded Operating System.ppt

    25/31

    gendagenda

    !hat is an Embedded OS"!hat is an Embedded OS" Embedded system OSEmbedded system OS

    !indows Embedded!indows Embedded

    #$!or%s#$!or%s

    Embedded &inu$Embedded &inu$

  • 7/24/2019 2.Embedded Operating System.ppt

    26/31

    outlineoutline

    simple view of embedded &inu$ simple view of embedded &inu$

    Developing process of an embeddedDeveloping process of an embedded

    devices with embedded &inu$devices with embedded &inu$

    Embedded &inu$ #S windows 6EEmbedded &inu$ #S windows 6E

  • 7/24/2019 2.Embedded Operating System.ppt

    27/31

    Embedded &inu$ inEmbedded &inu$ invarious devicesvarious devices

    :S personal:S personalassistantassistant

  • 7/24/2019 2.Embedded Operating System.ppt

    28/31

    Developing ,rocessDeveloping ,rocess

    &inu$ OS&inu$ OS

    selectselect

    OS ,orting andOS ,orting and

    improvementimprovement

    Driver andDriver andpplicationpplication

    softwaresoftware

    developmentdevelopment

    'rom system'rom system

    designdesign

    ttee

    ss

    tt

    4ehat+bluecat+484ehat+bluecat+48&inu$+onta #ista&inu$+onta #ista

    &inu$+48I+A&inu$+48I+A

    httplinu$.orghttplinu$.orghttpwww.gnhttpwww.gn

    u.orgAu.orgA

    8e%ram+-,+Intel+8e%ram+-,+Intel+

    AA

  • 7/24/2019 2.Embedded Operating System.ppt

    29/31

    !indows embedded #S!indows embedded #S&inu$ Embedded&inu$ Embedded

    rgument between Gerry >rasner andrgument between Gerry >rasner and 4ic% 4ehrbraum4ic% 4ehrbraum

    4oyalty4oyalty

    DevelopmentDevelopment

    environmentenvironment'unctions'unctions

    ar%et on timear%et on time

    DevelopersDevelopers

    #ery cheap#ery cheap:ot all embedded:ot all embeddedwindows productswindows products

    betterbetter disagreedisagree

    moremore disagreedisagree

    shortershorter

    moremore

    :ot sure:ot sure

    :ot sure:ot sure-ardware-ardware

    supportsupport eHuivalencyeHuivalency &inu$ better&inu$ better

  • 7/24/2019 2.Embedded Operating System.ppt

    30/31

    !indows embedded #S!indows embedded #S&inu$ Embedded&inu$ Embedded

    Oses targeted in current and ne$tOses targeted in current and ne$t

    embedded proBects+2002+data from ED6embedded proBects+2002+data from ED6

    7oth7othonon

    strongstrong

    upta%eupta%ecurvecurve

    6ont.6ont.

  • 7/24/2019 2.Embedded Operating System.ppt

    31/31

    -omewor%-omewor%

    J.J. !hat is an embedded &inu$"ive!hat is an embedded &inu$"ivesome e$amples.some e$amples.

    2.2. !hat are the features of embedded!hat are the features of embedded

    !indows compared with embedded!indows compared with embedded&inu$"&inu$"

    K.K. !hat are the differences of the!hat are the differences of the

    development processes when you usedevelopment processes when you usewindows 6E and use embeddedwindows 6E and use embedded&inu$"&inu$"