Académique Documents
Professionnel Documents
Culture Documents
4JLG Enseirb PDF
4JLG Enseirb PDF
email : kadionik@enseirb.fr
Patrice KADIONIK http : http://www.enseirb.fr/~kadionik
Pour pouvoir ensuite se poser les bonnes questions avant d oprer le bon
choix.
http://user-mode-linux.sourceforge.net/
http://www.mvista.com/products/hardware.html
http://www.metrowerks.com/embedded/
Rich Networking
Extensive complement of clients and servers
Rich support for the TCP/IP Suite
Broad support for routing, security, tunneling
cPCI backplane networking
Development Hosts
Linux (Red Hat, Mandrake, SuSE)
Solaris 7.0, 8.0
Windows 2000/XP (command-line and VMWare)
LynuxWorks/BlueCat :
Solution gnrale pour lembarqu
http://www.bluecat.com/
kit d valuation disponible (cible x86)
Caractristiques de LynuxWorks/BlueCat :
Packages that are tailored to your varying requirements for tools and technical support
A comprehensive set of tools and board support packages for developing, debugging
and deploying Linux into embedded environments
Based on the Linux 2.4.18 kernel, BlueCat Linux scales from small consumer-type
devices to large-scale, multi-CPU systems.
Clinux :
Pour processeur 32 bits sans MMU.
http://www.uclinux.org
Caractristiques de Clinux :
Lineo's uClinux is the ideal OS for non-MMU microprocessors and high-volume
embedded systems featuring posix-4, real-time functions, and TCP/IP. uClinux includes a
complete TCP/IP stack supporting Ethernet, PPP and SLIP as well as many wireless
protocols. uClinux is perfect for remote sensing, monitoring and control applications. And,
because uClinux is an open source product, you will never be stuck on a dead end
development path.
Clinux
ELW
Embedded Debian Project, PeeWeeLinux
LRP
Montavista/Professional Edition
Metrowerks/Creation Suite for Linux
LynuxWorks/Bluecat
Ceci est li la loi empirique de Moore qui dit que pour une surface
de silicium donn, on double le nombre de transistors intgrs tous les
18 mois !
Property
10-100K
Behavioral
VHDL/Verilog
RTL
1K-5K
Schematics
Equations
1
1991 1993 1995 1997 1999 2001 2003 2005
Logic Memory
High-
Performance
I/O
Core
20
NIOS
CPU
Core
NIOS
System
BUS
BUS
UART
On parle de Temps Rel mou (Soft Real Time) quand les vnements
traits trop tardivement ou perdus sont sans consquence
catastrophique pour la bonne marche du systme.
Dans la trs grande majorit des cas, les contraintes de temps sont
respects.
On peut dire qu'un systme temps rel doit tre prvisible (predictible
en anglais), les contraintes temporelles pouvant allant jusqu
quelques micro-secondes (s).
Il existe des solutions Linux Temps Rel dur pour une ractivit de
quelques dizaines de s
Linux
1x 4x 3x
MAUVAIS
OK
<n <n
ISR ISR
time
Interrupt Interrupt
n: dlai maximum
int ioperm();
outb(0x00, LPT);
usleep(50000);
}
return(0);
}
On remarque que l'on n'a pas une priode de 100 ms mais de 119,6 ms
d au temps supplmentaire d'excution des appels systme.
Linux standard
Application TR
RTOS
Hardware
Applications Applications TR
Extension
OS standard
TR
Hardware
Le principe est un peu diffrent car au lieu d'opter pour une stratgie
systmatique du noyau tout premptif, les dveloppeurs du patch ont
prfr effectuer une analyse du code source du noyau afin d'ajouter
des points de premption obligatoire (appel de schedule()) subtilement
placs dans les sources du noyau afin de casser des boucles non
premptibles trop longues.
Une fusion des deux patchs est intgre dans le futur noyau 2.6.
eCOS
http://sources.redhat.com/ecos/
KURT. Kansas University Real-Time Linux
http://www.ittc.ku.edu/kurt/
ADEOS
http://www.nongnu.org/adeos/
The purpose of Adeos is to provide a flexible environment for sharing hardware
resources among multiple operating systems, or among multiple instances of a single
OS.
Networking
Tornado II embedded development platform
QNX :
Highly reliable
all generic x86 based processors(386+)
Scalable (modules)
Deterministic
"QNX Neutrino real-time OS, "the most advanced RTOS on the market
Networking
Graphical development tools and debugger
Visual design tools (C code form cut and paste)
Plus d infos :
http://www.linuxdevices.com/articles/AT4185744181.html
Le patch kpreempt de Montavista est sous licence GPL :
http://www.tech9.net/rml/linux/
LynuxWorks/BlueCat RT:
Extension Temps Rel de BlueCat
http://www.bluecat.com/products/bluecat-rt/bluecat-rt.php3
Caractristiques de LynuxWorks/BlueCat RT :
RTlinux/Free Pro :
Solution libre et commerciale dextension TR de Linux. Systme
TR. FSM Labs
http://www.rtlinux.org
Mise en place d une couche d abstraction.
Mise en service sous forme de modules Linux.
Linux apparat comme la tche de fond de plus faible priorit.
RTLinux propose une API cohrente pour une programmation TR.
Existe en une version tenant sur une disquette : projet miniRTL.
GPL
RTLinux V3
PROfessionnel
Non GPL
RT Fifo
User Process
RT Fifo
/* Priode de sollicitation de 50 ms */
int period=50000000;
while (1){
/* Ecriture de la valeur sur le port // */
outb(nibl,LPT);
/* Attente du rveil */
pthread_wait_np();
}
}
Linux embarqu. Linux Temps Rel
pk/2003 v 2.1 Reproduction et exploitation des fins commerciales interdites sans l'accord exprs des auteurs - 122 -
LA PETITE EXPERIENCE. SUITE ET FIN
int init_module(void)
{
pthread_attr_t attr;
struct sched_param sched_param;
/* Priorit 1 */
pthread_attr_init (&attr);
sched_param.sched_priority = 1;
pthread_attr_setschedparam (&attr, &sched_param);
return 0;
}
Patch kpreempt
Patch low lat Temps Rel mou qq 100 s
Montavista
Metrowerks
TimeSys
BlueCat RT
Temps Rel dur qq 10 s
Montavista
RTLinux, RTAI
TimeSys
Application de patch au noyau Linux standard
BlueCat RT Installation de modules Linux spcifiques
Montavista API spcifique ou POSIX
RTLinux, RTAI COMPLEXE
La page de l auteur :
http://www.enseirb.fr/~kadionik/embedded/embedded.html