Embedded Operating Systems and Linux Bill Latura April
Embedded Operating Systems and Linux Bill Latura April 23, 2002
Agenda u What is an embedded Operating System u Who are the players u Linux as an embedded OS u Tools and development u Applications and products u The embedded OS market u Embedded OS Resources
OS Flavors u Desktop • Windows (9 X, XP Home, XP/2000 Pro) • Mac u Server • Windows (XP/2000 Server &Advanced Server) • Unix Varieties u Embedded • Many
What is an Embedded OS? u An "embedded system" is any computer system or computing device that performs a dedicated function or is designed for use with a specific embedded software application. u Embedded systems may use a ROM-based operating system or they may use a disk-based system, like a PC. But an embedded system is not usable as a commercially viable substitute for general purpose computers or devices.
What makes a good Embedded OS? u Modular u Scalable u Configurable u Small footprint u CPU support u Device drivers u etc, etc. . .
What is Real Time? “A real time system is one in which the correctness of the computations not only depends upon the logical correctness of the computation but also upon the time at which the result is produced. If the timing constraints of the system are not met, system failure is said to have occurred. ” - Donald Gillies
What is Real Time? “Real time in operating systems: The ability of the operating system to provide a required level of service in a bounded response time. ” - POSIX Standard 1003. 1
Hard vs. Soft Real Time u Hard • guaranteed worst-case response times • absolutely, positively, first time every time u Soft • Kinda, sorta, usually
What makes a good RTOS? u Multi-threaded and pre-emptible u Thread priority has to exist because no deadline driven OS exists u Must support predictable thread synchronization mechanisms u A system of priority inheritance must exist
Who are the Embedded OS players? u Wind River Systems • Vx. Works • p. SOS u QNX Software Systems • QNX u Green Hills Software • Integrity
Who are the Embedded OS players? u Mentor Graphics • VRTX u Palm Computing • Palm. OS u Symbian • Symbian. OS
Microsoft u Embedded NT/XP • “Real-time” control u Windows CE (CE. NET) • Internet devices u Pocket PC 2002 • Handheld PC’s and PDA’s
Commercial Embedded Linux u AMIRIX Embedded Linux • derived from Debian u Coollogic Coollinux • combines Linux and Java for Internet apps u Coventive Xlinux • kernel can be as small as 143 KB u Esfia Red. Blue Linux • 400 K, designed for wireless apps
Commercial Embedded Linux u KYZO Pizza Box Linux • SAMBA based file, print, CD server u Lineo Embedix • supports real time and high availability apps u Lynux. Works Blue. Cat • general purpose embedded solution u Monta. Vista Linux • general purpose embedded solution
Commercial Embedded Linux u Neoware Neo. Linux • Red Hat derived for information appliances u Palm Tynux • Internet appliuance and multimedia u Red Hat Embedded Linux • general purpose embedded solution u Red. Sonic Red-Ice Linux • runs from Diskon. Chip or Compact. Flash
Commercial Embedded Linux u Ridge. Run DSP Linux • for multimedia, wireless, RT on DSP u Time. Sys Linux GPL • low latency enhanced kernel u Tuxia TASTE • distro targets Internet appliances u Vital Systems v. Linux • for ARM based embedded apps
Open Source Embedded Linux u Embedded Debian Project • convert Debian to an embedded OS u ETLinux • for PC 104 SBC’s u u. CLinux • for microprocessors that don’t have MM u u. Linux (mu. Linux) • distro fits on a single floppy
Commercial Linux RTOS u FSMLabs - Open RT Linux u Lineo - Embedix Realtime u Lynux. Works - Blue. Cat RT u Monta. Vista Software - Real Time Extensions u REDSonic - REDICE Linux u Time. Sys - Linux/Real-Time
Open Source Linux RTOS u ART Linux - real time extension based on RTLinux u KURT - event schedules with 10 us resolution u Linux-SRT - for soft real time apps like multimedia u Qlinux - provides Quality of Service guarantees u RTAI - “hard” Real Time Application Interface
RTLinux u. A “hard real-time” mini operating system u runs Linux as it’s lowest priority execution thread u Linux thread completely preemptible u Real time threads and interrupt handlers never delayed by non-realtime operations u Supports user level programming u Mini. RTL implementation fits on a floppy
What’s so special about Linux? u Multiple choices vs. sole source u Source code freely available u Robust and reliable u Modular, configurable, scalable u Superb support for networking and Internet u No runtime licenses u Large pool of skilled developers
What’s so special about Linux?
What’s special about Open Source?
Flies in the Ointment u Lack of hardware device drivers u Competing and/or lacking standards u No formalized qualification testing u No single source for marketing u GPL license issues u Startup vendors with shaky futures
What CPU’s will it run on? u Intel X 86 u MIPS u ARM u Strong. ARM u Power. PC u Hitachi Super. H
Projected Target CPU’s
Single Board Computers · Little Board (5. 75 x 8. 0 in. ) -- complete systems on a single compact board, expandable with plug-on function modules · ISA "slot boards" (full-length, 13. 8 x 4. 8 in. ; half-length, 7. 1 x 4. 8 in. ) -- IBM PC plug-in cards which could function as standalone SBCs backplanes) · PC/104 modules (3. 6 x 3. 8 in. ) -- compact, rugged, self-stacking modules featuring a reliable pin-and-socket board-to-board expansion bus
Single Board Computers with PCI · PC/104 -Plus -- PCI added to PC/104 · EBX -- PC/104 -Plus added to Little Board
Target Devices
Any Development Tools Available? u QT/Embedded u Other GUI/Windowing toolkits u Arcom Control Systems u GNUPro Tools u Vendor specific u Standard Linux toolset
C or C++ for Development? u In general C is a better choice • Advanced OOP features can cause code bloat • C++ compilers can generate many routines for a single function • Virtual methods and polymorphism slow program launch times significantly u Size really does matter
What’s It Being Used For? u Control and Monitoring Applications u Industrial Controllers u TV Set Top Boxes (Ti. VO) u Handheld PDA’s u Automobile Computers u Telecomm and Networking Hardware u Myriad and sundry other uses. . .
Target Applications
Cyclades TS-100 u Netlinos OS u Dual 50 MHz Power. PC u 16 MB SDRAM 4 MB Flash u Ethernet/Serial/RS 485 u Size of a deck of cards
Sixnet Versa. TRAK IPm u Embedded Linux u Power. PC CPU u 16 MB DRAM 16 MB Flash u Serial & Ethernet Ports u Linux and IEC 1131 Programming/Modbus
Sharp Zaurus u Lineo Embedix u 206 MHz Strong. ARM u 64 MB DRAM 16 MB Flash u 3. 5” display (320 x 240) 64 K colors u Opera browser & Qtopia u QT/Embedded GUI
Cell and Web Phones Telepong Mobile Phone GITWi. T Mobile Phone Aplio/PRO IP Phone
Ti. VO Set Top Box u Home grown port of Embedded Linux u 54 MHz Power. PC u Multi GB hard disk
Axis 2120 Network Camera u u. CLinux u Built-in Ethernet port u 100 MHz ETRAX CPU u 16 MB RAM
Humanoid Robots u Univ. of Tokyo/Kawanda Ind. u Dual Pentium CPU u RT-Linux u Height: 53 inches u Weight: 121 lbs. u Isamu
Humanoid Robots u HOAP u Fujitsu u RT-Linux u Height: 48 cm u Weight: 6 kg u 100 units/yr
The Embedded OS Market 2001
The Embedded OS Market 2002
Growth of Embedded Linux
For Further Info Web Sites u Linux. Devices. com http: //www. linuxdevices. com/ u Embedded Linux Consortium http: //www. embedded-linux. org/index. php 3 u All Linux Devices http: //alllinuxdevices. com/ u Embedded Linux Star. Gate http: //linux-embedded. com/
For Further Info Web Sites/Magazines u Dr. Dobbs Embedded Systems http: //www. ddjembedded. com/about/ u Embedded Linux Journal http: //embedded. linuxjournal. com/ u Embedded Systems Programming http: //www. embedded. com/mag. htm
- Slides: 46