[rtl] Threads or Tasks?

2000-06-06 Thread WORM

Hi all

As you´d  realized, i´m a newbie rtlinux user.

I´ve been wondering during the last days, which are the differents
between using threads and using tasks. Sorry for bothering you, but I
can´t find the answer to this.
Besides, i would like to know the pros and cons of using each other.

Thanks, Worm



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] RT_TASK interface

2000-05-25 Thread WORM

I´m new in RTL, and i´ve read many many docs in the lasy two months. But
I´ve some deeper doubts. One of them is the following ...

In the documentation of the rt_task functions it says that we should not
use this functions anymore. There exists for compatibity with version 1.

I guess the functions we have to use now are the ones that have to with
threads, is it true?


Thanks, Gustavo



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Starter

2000-04-05 Thread WORM

Hi
Sorry for my english :-)

I was new until two weeks ago.
I finally installed my first kernel yesterday.
I use rtlinux-2.0 and linux-2.2.14
I use phil's installation guide, and i found some problems with some old
hardware.

I attach you a guide in spanish, i´ve no time to translate it. Sorry.
I´ll hope it´ll be helpfull.

Gustavo


Guía de instalación


Versión 0.1, Preliminar. :-)

ATENCION.!! Este tutorial supone instalado y corriendo en su PC Red Hat
6.0.

1) Bajar los kernels de la WEB.

a) Obtenga una copia de un kernel "bueno" de linux desde el site
ftp.us.kernel.org (por ejemplo, la versión 2.2.14 que utilizamos
nosotros). El archivo se llamará algo así como linux-2.2.14.tgz ó
linux-2.2.14.tar.gz.

b) Obtenga una copia de un kernel de tiempo real desde el site oficial
de Rtlinux www.rtlinux.org (por ejemplo, la versión 2.0 que utilizamos
nosotros). El archivo se llamará algo así como
rtlinux-2.0-prepatched.tgz. Es importante que se obtenga el kernel con
el prepatch para evitar hacer  el patch del kernel que nos dio algunos
problemas.

2) Copiar los kernels "frescos y buenos".

a) Muévase a /  ( cd / desde donde se encuentre)

b) Crear el directorio RTL (mkdir RTL).
Puede comprobar la existencia de RTL con los comandos ls o dir. El
directorio que recibe el nombre RTL puede nombrarse de cualquier forma
(llámelo pepe si desea).

c) Cambie los permisos en el directorio RTL (chmod 777 RTL ó chmod a+rw
RTL).

d) Copie los archivos de instalación en este directorio recién creado.
Si bajó los archivos de la WEB desde linux, solo tiene que copiar los
mismos desde el directorio donde se encuentren a /RTL.
Si bajó los archivos de la WEB desde Windows, debe montar en linux la
partición  de windows (vea mount) para ver los archivos.
Si los copia desde nuestro CDROM, monte el cdrom primero.


3) Descomprimir los kernels.

a) Una vez que tiene ambos archivos en el directorio RTL, muévase al
mismo. Es necesario descomprimir el kernel de tiempo real desde RTL (cd
/RTL).

b) Descomprima el kernel de tiempo real (tar -xvzf
rtlinux-2.0-prepatched.tgz).
Esto crea un subdirectorio de nombre rtlinux-2.0 bajo RTL.

c) Muévase al directorio rtlinux-2.0 (cd rtlinux-2.0).

d) Descomprima el kernel de linux (tar -xvzf  /RTL/linux-2.2.14.tgz).

4) Links y anda mais antes de compilar.

a) Muévase al directorio /usr/src (cd /usr/src).
b) Chequee el directorio linux (a través del comando ls -l).
Si el mismo es un link, bórrelo (rm linux).
Si es un directorio renómbrelo (mv linux oldlinux).

5) Configurar y compilar el kernel.

(Por medio del comando lsmod, listamos los módulos cargados en el
kernel. Debería configurar el kernel para los mismos módulos.)

a) Muévase al directorio /RTL/rtlinux-2.0/linux, y ejecute el comando
patch -p1  .. /kernel_patch

b) Chequee que no existen archivos del tipo *.rej (archivos del tipo
reject).
Ejecute find ./ -name *.rej  , no deberían existir archivos de este
tipo.

c) Ejecute pwd y asegúrese que se encuentra en el directorio /RTL/
rtlinux-2.0/linux.
Ejecute make menuconfig o make config y defina la funcionalidad de su
kernel.

d) Ejecute, make dep y tómese un mate.
e) Ejecute make clean, esto no le bçva a dar tiempo para cebar otro.
Espere y haga ...
f) Cree un nuevo link para linux (ln -s /RTL/rtlinux-2.0/linux  linux).

g)  make bzImage. Ahora si, tómese unos cuantos mates mientras espera, y
ve pasar por su monitor un montón de jeroglíficos (y si es creyente
entregue su alma a su dios).

6) Construir los módulos e instalarlos.

a) Ejecute make modules.
b) Ejecute make modules_install.
Debería aparecer lo siguiente  

7) LILO y arranque.

a) Copie la nueva imagen al lugar correcto.
cp /RTL/ rtlinux-2.0/linux/arch/i386/boot/bzImage   /boot/bzImageRTL20
cp /RTL/ rtlinux-2.0/linux/System.map   /boot/System.mapRTL20

b) Posiciónese en /boot  (cd /boot )
Borre el link System.map y creelo de nuevo apuntando al nuevo map.
rm System.map
ln -s System.mapRTL20   System.map

c) Edite el archivo /etc/lilo.conf

Agregue

image=/boot/bzImageRTL20
label=RTL20
root=/dev/hda1 (o lo que corresponda)
...

d) Corra lilo para que actualice el MBR.

e) REINICIE, REBOOT, CTRL+ALT+DEL.


8) Construya los módulos de rtl.

a) Ejecute
cd  /RTL/ rtlinux-2.0/rtl
make
make install

b) Chequee que estén corriendo los módulos con el comando lsmod.


9) Ejecute los ejemplos.









Muhammad Ali Imran escribió:

 Hello every one I am a new one in the field of Linux and want to start
 with Real time linux.Can any body suggest me a roadmap to quickly
 install and get running RTLinux on my PentiumII AMD processor with
 64MB Ram.any help would be appreciated. ThanksAli Imran

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] INSTALLATION PROBLEM

2000-03-28 Thread WORM

hi people of the RTL world

I´m writing to you from Uruguay. Do you know Uruguay? Have you ever been
here?
This is my first experience in RTL, so i need some helps from you the
gurus
Please, be free to tell me whatever you feel, but you must know that
i´ve no experience at all. So be patients.
Besides, i apologize for my english. It´s bad, but I hope it´ll good
enough to make me understand.

Now, the problem ...

I´ve installed red hat 6.0 with kernel version 2.2.5-15
and gcc 2.91.66
i used rtlinux-2.2a-prepatch.tar.gz, and i didn´t patch the kernel, is
it rigtht?

I´ve just follow the instructions in the installation guide that appears
in the docs, and i encountered a problem in the last make, make zImage
The following lines are a copy of the message that appears in my
monitor.

-
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include scripts/split-include.c
In file included from /usr/include/errno.h:36,
 from scripts/split-include.c:26:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1
-

Can you help?? I´m new in RTL and this is the first time i install the
RT kernel.
You can image that i´ve a poor experience in writing makefiles.


Is there any secure and rigth way of installing the kernel, without
having any problems? I mean, can you tell me to download the kernel
2.2.x.y.w.z of ftp.us.kernel.org and use file
rtlinux-2.2a-prepatch.tar.gz, for i.e. to not have to worry. Is it
possible ?

Thanks.

Gustavo

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/