24
Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Embed Size (px)

Citation preview

Page 1: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Embedded Linux

Sandeep SirpatilGraduate StudentUniversity of North Carolina CharlotteFeb 7, 2005

Page 2: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Contents: What is Linux? What is an Embedded OS ? Features of Embedded OS. Flavors of Embedded OS. Features Linux Development tools Market and applications

Page 3: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

What is Linux? Red Hat, Debian or Suse? GNU software? Gnome , KDE or Ximian?

Page 4: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Linux is … Linux refers to the kernel

maintained by Linus Torvalds and distributed under the same name

The current version of kernel is 2.6

Page 5: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

What makes a good Embedded OS ?

Modular Configurable Scalable Wide CPU support Device Drivers Small size Etc…

Page 6: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Real Time in OS The ability of the operating system

to provide a required level of service in a bounded response time. – POSIX standard 1003.1

Hard & Soft Real Time.

Page 7: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

What makes a good RTOS?

Multi-threaded and pre-emptible Must support predictable thread

synchronization mechanisms A system of priority inheritance

must exist

Page 8: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Some Embedded OS flavors VxWorks pSOS QNX Integrity Palm OS Symbian OS

Embedded XP Pocket PC Linux

Page 9: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Commercial Embedded Linux & RTOS

MontaVista Linux Lineo - Embedix Neoware - NeoLinux Red Hat Embedded Linux FSMLabs - Open RT Linux LynuxWorks - BlueCat RT TimeSys - Linux/Real-Time

Page 10: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Open source Embedded Linux & RTOS

ART Linux KURT Embedded Debian Project uCLinux – For CPU’s without MMU RTAI Etc.

Page 11: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Special features of Linux Source code freely available Robust and reliable Modular, configurable, scalable Good support for Networking No runtime licenses Large pool of skilled developers Free software and tools

Page 12: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Core features of Linux

CPU support (x86, ARM, PowerPC, MIPS,Etc. )

Busses & Interfaces ( ISA, PCI, PCMCA, VME, Parallel, SCSI, USB, IEEE1394, I2C)

I/O (Keyboard, mouse, Display)

Storage (ATA-ATAPI, DiskOnChip, CFI, RAM, ROM)

File Systems (JFFS, FAT, EXT, NFS, Etc.)

Networking (Ethernet, IrDa, 802.11x)

Page 13: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Architecture of Linux

Page 14: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

RTLinux A “hard real-time” mini operating system runs Linux as it’s lowest priority

execution thread Linux thread completely preemptible Real time threads and interrupt handlers

never delayed by non-realtime operations

Supports user level programming

Page 15: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

RTLinux Architecture

Page 16: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Development tools Compiler, assembler, linker, etc.. Commercial Open Source.

Page 17: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Open Source Tool chain Kernel headers gcc – Compiler

binutils – assembler,linker,debugger etc..

glibc – Libraries

Patches if any

Page 18: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Package version combinations

Host Target Kernel binutils gcc glibc Patchesi386 PPC 2.10.1 2.95.3 2.2.1 NoPPC i386 2.10.1 2.95.3 2.2.3 NoPPC i386 2.13.2.1 3.2.1 2.3.1 No

i386 ARM2.4.1-rmk1 2.10.1 2.95.3 2.1.3 Yes[3]

PPC ARM 2.10.1 2.95.3 2.2.3 Yes[3]

i386 MIPS 2.8.1egcs-1.1.2 2.0.6 Yes[4]

i386 SuperH 2.11.2 3.0.1 2.2.4 Yes[5]Sparc (Solaris) PPC 2.4.0 2.10.1 2.95.2 2.1.3 No

Page 19: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Applications Industrial Controllers Mobiles, PDA, Media Centers. Telecomm and Networking Hardware Automobile Computers Robotics Vision Systems Etc.

Page 20: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

The Embedded OS market 2004

Market Survey done by www.linuxdevices.com

Page 21: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Linux choices - 2004

Page 22: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Some hiccups… Competing and/or lacking

standards No formalized qualification testing GPL license issues Lack of hardware device drivers

Page 23: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

References http://www.linuxdevices.com http://www.embedded-linux.org http://embedded.linuxjournal.com http://embedded.com “Building Embedded Linux Systems” – Karim

Yaghmour Etc.

Page 24: Embedded Linux Sandeep Sirpatil Graduate Student University of North Carolina Charlotte Feb 7, 2005

Thank you!